Sha256: 6118bd554473460734045b792941069ec73472a4af3be71ab9fcf1a26bb8ec49
Contents?: true
Size: 676 Bytes
Versions: 8
Compression:
Stored size: 676 Bytes
Contents
require 'pathname' module ROXML SILENCE_XML_NAME_WARNING = true end DIR = Pathname.new(__FILE__ + '../..').expand_path.dirname LOAD_PATH = DIR.join('lib').to_s $LOAD_PATH.unshift(LOAD_PATH) unless $LOAD_PATH.include?(LOAD_PATH) || $LOAD_PATH.include?(File.expand_path(LOAD_PATH)) require 'roxml' require File.join(File.dirname(__FILE__), 'shared_specs') def example(name) DIR.join("examples/#{name}.rb") end 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 def xml_for(name) DIR.join("examples/xml/#{name}.xml") end
Version data entries
8 entries across 8 versions & 3 rubygems