Sha256: 7e2dad7795b431ced0d200529bbe328621b080f4c712d81721c102e5167940f5
Contents?: true
Size: 1006 Bytes
Versions: 3
Compression:
Stored size: 1006 Bytes
Contents
module WebMock class WebMockMatcher def initialize(method, uri) @request_execution_verifier = RequestExecutionVerifier.new @request_execution_verifier.request_profile = RequestProfile.new(method, uri) end def once @request_execution_verifier.expected_times_executed = 1 self end def twice @request_execution_verifier.expected_times_executed = 2 self end def with(options) @request_execution_verifier.request_profile.with(options) self end def times(times) @request_execution_verifier.expected_times_executed = times.to_i self end def matches?(webmock) @request_execution_verifier.matches? end def does_not_match?(webmock) @request_execution_verifier.does_not_match? end def failure_message @request_execution_verifier.failure_message end def negative_failure_message @request_execution_verifier.negative_failure_message end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webmock-0.8.2 | lib/webmock/adapters/rspec/webmock_matcher.rb |
webmock-0.8.1 | lib/webmock/adapters/rspec/webmock_matcher.rb |
webmock-0.8.0 | lib/webmock/adapters/rspec/webmock_matcher.rb |