Parent

Files

WebMock::WebMockMatcher

Public Class Methods

new(method, uri) click to toggle source
   # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 4
4:     def initialize(method, uri)
5:       @request_execution_verifier = RequestExecutionVerifier.new
6:       @request_execution_verifier.request_pattern = RequestPattern.new(method, uri)
7:     end

Public Instance Methods

does_not_match?(webmock) click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 33
33:     def does_not_match?(webmock)
34:       @request_execution_verifier.does_not_match?
35:     end
failure_message() click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 37
37:     def failure_message
38:       @request_execution_verifier.failure_message
39:     end
matches?(webmock) click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 29
29:     def matches?(webmock)
30:       @request_execution_verifier.matches?
31:     end
negative_failure_message() click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 42
42:     def negative_failure_message
43:       @request_execution_verifier.negative_failure_message
44:     end
once() click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 9
 9:     def once
10:       @request_execution_verifier.expected_times_executed = 1
11:       self
12:     end
times(times) click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 24
24:     def times(times)
25:       @request_execution_verifier.expected_times_executed = times.to_i
26:       self
27:     end
twice() click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 14
14:     def twice
15:       @request_execution_verifier.expected_times_executed = 2
16:       self
17:     end
with(options = {}, &block) click to toggle source
    # File lib/webmock/adapters/rspec/webmock_matcher.rb, line 19
19:     def with(options = {}, &block)
20:       @request_execution_verifier.request_pattern.with(options, &block)
21:       self
22:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.