Method: WebMock::API#assert_requested
- Defined in:
- lib/webmock/api.rb
#assert_requested(*args, &block) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/webmock/api.rb', line 22 def assert_requested(*args, &block) if not args[0].is_a?(WebMock::RequestStub) args = (args[0], args[1], args[2], &block) elsif block raise ArgumentError, "assert_requested with a stub object, doesn't accept blocks" end assert_request_requested(*args) end |