Sha256: c4713ee9f6d75fdad5de121ed72f09e9ff91eb7016b451649c1fdc144df4f970

Contents?: true

Size: 269 Bytes

Versions: 8

Compression:

Stored size: 269 Bytes

Contents

module Fixtures
  
  def load_fixture(name, ext = :xml)
    
    file_name = File.join("spec/fixtures/", "#{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

8 entries across 8 versions & 1 rubygems

Version Path
trackerific-0.3.5 spec/support/fixtures.rb
trackerific-0.3.4 spec/support/fixtures.rb
trackerific-0.3.3 spec/support/fixtures.rb
trackerific-0.3.2 spec/support/fixtures.rb
trackerific-0.3.1 spec/support/fixtures.rb
trackerific-0.3.0 spec/support/fixtures.rb
trackerific-0.2.1 spec/support/fixtures.rb
trackerific-0.2.0 spec/support/fixtures.rb