lib/savon/mock/expectation.rb in savon-2.9.0 vs lib/savon/mock/expectation.rb in savon-2.10.0

- old
+ new

@@ -52,11 +52,11 @@ "Received a request to the #{@actual[:operation_name].inspect} operation instead." end end def verify_message! - return if @expected[:message] == :any - unless @expected[:message] == @actual[:message] + return if @expected[:message].eql? :any + unless @expected[:message] === @actual[:message] expected_message = " with this message: #{@expected[:message].inspect}" if @expected[:message] expected_message ||= " with no message." actual_message = " with this message: #{@actual[:message].inspect}" if @actual[:message] actual_message ||= " with no message."