Parent

Files

WebMock::RequestPatternMatcher

Public Class Methods

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

Public Instance Methods

does_not_match?(request_pattern) click to toggle source
    # File lib/webmock/adapters/rspec/request_pattern_matcher.rb, line 28
28:     def does_not_match?(request_pattern)
29:       @request_execution_verifier.request_pattern = request_pattern
30:       @request_execution_verifier.does_not_match?
31:     end
failure_message() click to toggle source
    # File lib/webmock/adapters/rspec/request_pattern_matcher.rb, line 33
33:     def failure_message
34:       @request_execution_verifier.failure_message
35:     end
matches?(request_pattern) click to toggle source
    # File lib/webmock/adapters/rspec/request_pattern_matcher.rb, line 23
23:     def matches?(request_pattern)
24:       @request_execution_verifier.request_pattern = request_pattern
25:       @request_execution_verifier.matches?
26:     end
negative_failure_message() click to toggle source
    # File lib/webmock/adapters/rspec/request_pattern_matcher.rb, line 38
38:     def negative_failure_message
39:       @request_execution_verifier.negative_failure_message
40:     end
once() click to toggle source
    # File lib/webmock/adapters/rspec/request_pattern_matcher.rb, line 8
 8:     def once
 9:       @request_execution_verifier.expected_times_executed = 1
10:       self
11:     end
times(times) click to toggle source
    # File lib/webmock/adapters/rspec/request_pattern_matcher.rb, line 18
18:     def times(times)
19:       @request_execution_verifier.expected_times_executed = times.to_i
20:       self
21:     end
twice() click to toggle source
    # File lib/webmock/adapters/rspec/request_pattern_matcher.rb, line 13
13:     def twice
14:       @request_execution_verifier.expected_times_executed = 2
15:       self
16:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.