Module: Jets::SpecHelpers::Fixtures

Included in:
Jets::SpecHelpers
Defined in:
lib/jets/spec_helpers/fixtures.rb

Instance Method Summary collapse

Instance Method Details

#fixture_file(filename) ⇒ Object



7
8
9
# File 'lib/jets/spec_helpers/fixtures.rb', line 7

def fixture_file(filename)
  File.new(fixture_path(filename))
end

#fixture_path(filename) ⇒ Object



3
4
5
# File 'lib/jets/spec_helpers/fixtures.rb', line 3

def fixture_path(filename)
  "#{Jets.root}/spec/fixtures/#{filename}"
end