Sha256: 858e56d5181871d39f212d6798a07b752d5b78d51ed898f44529f3b2a9de1bd2
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
RSpec::Matchers.define :contain do |expected| match do |actual| expect(actual.xml_response).to include expected end end RSpec::Matchers.define :have_element_at_xpath do |expected| match do |soap_class| expect(soap_class.xml_doc.at_xpath(expected, Soaspec::Environment.api_handler.namespaces).content).not_to be_empty end end RSpec::Matchers.define :have_xpath_value do |expected_hash| match do |soap_class| expect(soap_class.xml_doc.at_xpath(expected_hash.keys.first, Soaspec::Environment.api_handler.namespaces).content).to eq expected_hash.values.first end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soaspec-0.0.5 | lib/soaspec/matchers.rb |