blob: 20963261b1a49952bae4fbbcba57aacbf11d44dd (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | module Support
  module FixturesHelper
    def fixtures_path *segments
      Rails.root.join( fixture_path, *segments )
    end
    def open_fixture *segments
      File.open(fixtures_path(*segments))
    end
    def read_fixture *segments
      File.read(fixtures_path(*segments))
    end
  end
end
RSpec.configure do |c|
  c.include Support::FixturesHelper
end
 |