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

Version Path
Empact-roxml-2.5.1 spec/spec_helper.rb
Empact-roxml-2.5.2 spec/spec_helper.rb
Empact-roxml-2.5.3 spec/spec_helper.rb
doxo-roxml-2.5.3 spec/spec_helper.rb
roxml-2.5.1 spec/spec_helper.rb
roxml-2.5.0 spec/spec_helper.rb
roxml-2.5.3 spec/spec_helper.rb
roxml-2.5.2 spec/spec_helper.rb