Sha256: 02e21a5cd5250d94d5556f33d8e06570c857ad7adb68e2b2d530912f5cac8e88

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

require 'pathname'

module FixtureHelpers

  def fixture_file(file_name)
    fixtures_path = Pathname.new('./spec/support/fixtures/')
    File.open(fixtures_path + file_name)
  end

  def fixture_file_content(file_name)
    fixture_file(file_name).read
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fandango-2.1.0 spec/support/fixture_helpers.rb
fandango-2.0.0 spec/support/fixture_helpers.rb