lib/webmock/webmock.rb in webmock-0.7.3 vs lib/webmock/webmock.rb in webmock-0.8.0

- old
+ new

@@ -11,16 +11,16 @@ RequestProfile.new(method, uri) end def assert_requested(method, uri, options = {}) expected_times_executed = options.delete(:times) || 1 - request = RequestProfile.new(method, uri, options[:body], options[:headers]) + request = RequestProfile.new(method, uri, options) verifier = RequestExecutionVerifier.new(request, expected_times_executed) assertion_failure(verifier.failure_message) unless verifier.matches? end def assert_not_requested(method, uri, options = {}) - request = RequestProfile.new(method, uri, options[:body], options[:headers]) + request = RequestProfile.new(method, uri, options) verifier = RequestExecutionVerifier.new(request, options.delete(:times)) assertion_failure(verifier.negative_failure_message) unless verifier.does_not_match? end def allow_net_connect!