File: fixtures.rb

package info (click to toggle)
ruby-roxml 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 800 kB
  • sloc: ruby: 4,133; xml: 1,013; makefile: 7
file content (11 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
def fixture(name)
  File.read(fixture_path(name))
end

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

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