Sha256: 57dc00426387bf423e70ab3734ba28cc4cae2b9d6dc3dd2c63e2cbb65b6546b2

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

RSpec::Matchers.define :equal_xml_structure do |expected|
  match do |actual|
    TestXml::MatcherMethods.xml_structure_equal(actual, expected)
  end

  failure_message_for_should do |actual|
    "the xml:\n#{actual}\nshould exactly match xml structure:\n#{expected}"
  end

  failure_message_for_should_not do |actual|
    "the xml:\n#{actual}\nshould not exactly match xml structure:\n#{expected}\nbut it does"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_xml-0.1.2 lib/test_xml/spec/matchers/equal_xml_structure.rb
test_xml-0.1.1 lib/test_xml/spec/matchers/equal_xml_structure.rb
test_xml-0.1.0 lib/test_xml/spec/matchers/equal_xml_structure.rb