Sha256: b986a00ab3a162f5bda140dc055f21e3ee096fb7c5a87338e626d2391a742aaa

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

module Fixtures
  
  FIXTURES_PATH = "spec/fixtures/"
  
  def load_fixture(name, ext = :xml)
    
    file_name = File.join(FIXTURES_PATH, "#{name.to_s}.#{ext.to_s}")
    f = File.open(file_name, 'r')
    data = "";
    f.lines.each { |line| data += line }
    f.close
    return data
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trackerific-0.1.2 spec/support/fixtures.rb
trackerific-0.1.1 spec/support/fixtures.rb