Sha256: e7370d086b4ef988a6d8023fdabff4ac19fb4a9668d4a304c586bd3d81a42c48

Contents?: true

Size: 196 Bytes

Versions: 7

Compression:

Stored size: 196 Bytes

Contents

def fixture(name)
  File.read(fixture_path(name))
end

def xml_fixture(name)
  ROXML::XML::Parser.parse_file(fixture_path(name)).root
end

def fixture_path(name)
  "test/fixtures/#{name}.xml"
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
roxml-3.1.5 test/support/fixtures.rb
roxml-3.1.4 test/support/fixtures.rb
roxml-3.1.3 test/support/fixtures.rb
roxml-3.1.2 test/support/fixtures.rb
roxml-3.1.1 test/support/fixtures.rb
roxml-3.1.0 test/support/fixtures.rb
ROXML-3.0.0 test/support/fixtures.rb