Sha256: 73c98beda7de6691497871b9a49cbcfbcce9b47c7cc8c90c06246afa08f7a0b2
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
RSpec::Matchers.define :contain_xml do |expected| match do |actual| TestXml::MatcherMethods.xml_contain(actual, expected) end failure_message_for_should do |actual| "the xml:\n#{actual}\nshould match xml:\n#{expected}" end failure_message_for_should_not do |actual| "the xml:\n#{actual}\nshould not 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/contain_xml.rb |
test_xml-0.1.1 | lib/test_xml/spec/matchers/contain_xml.rb |
test_xml-0.1.0 | lib/test_xml/spec/matchers/contain_xml.rb |