Sha256: 6e4e733de99726bfe3a33397e1f3832f00d4e707d109396dbe45700d868125cd

Contents?: true

Size: 237 Bytes

Versions: 4

Compression:

Stored size: 237 Bytes

Contents

module FixturesHelper
  def self.read_file(filename)
    path = File.join(File.dirname(__FILE__), "..", "fixtures", filename)
    File.read(path)
  end
  
  def self.parse_json_file(filename)
    JSON.parse(read_file(filename))
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chillfile-0.1.0 spec/support/fixtures_helper.rb
chillfile-0.0.3 spec/support/fixtures_helper.rb
chillfile-0.0.2 spec/support/fixtures_helper.rb
chillfile-0.0.1 spec/support/fixtures_helper.rb