File: fixtures_helper.rb

package info (click to toggle)
ruby-http-form-data 1.0.1%2Bgemwatch-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 176 kB
  • ctags: 46
  • sloc: ruby: 366; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 230 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding: utf-8

require "pathname"

module FixturesHelper
  def fixture(filename)
    fixtures_root.join filename
  end

  def fixtures_root
    @fixtures_root ||= Pathname.new(__FILE__).join("../../fixtures").realpath
  end
end