lib/savon/mock/expectation.rb in savon-2.2.0 vs lib/savon/mock/expectation.rb in savon-2.3.0
- old
+ new
@@ -52,9 +52,10 @@
"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]
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]