Sha256: 4a708db7c5d7bac3a6876bc2e1affe752b36e1f10f3dd48c554c40df073dc261

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

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

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

  failure_message_for_should_not do |actual|
    "the xml:\n#{actual}\nshould not exactly match xml:\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.rb
test_xml-0.1.1 lib/test_xml/spec/matchers/equal_xml.rb
test_xml-0.1.0 lib/test_xml/spec/matchers/equal_xml.rb