File: fixtures.rb

package info (click to toggle)
ruby-roxml 3.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 824 kB
  • ctags: 557
  • sloc: ruby: 4,066; xml: 1,013; makefile: 5
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