lib/soaspec/matchers.rb in soaspec-0.0.24 vs lib/soaspec/matchers.rb in soaspec-0.0.25

- old
+ new

@@ -5,10 +5,10 @@ # TODO: Mathcers are specific to SOAP. Make generic for REST and others by using actual.api_class # Whether response has any element with the provided value RSpec::Matchers.define :contain_value do |expected| match do |actual| - expect(actual.response.body.include_value?(expected)).to be true + expect(actual.api_class.include_value?(actual.response, expected)).to be true end failure_message do |actual| "expected that #{actual.response.body} would contain value #{expected}" end \ No newline at end of file