Parent

Class/Module Index [+]

Quicksearch

WebMock::RequestPatternMatcher

Public Class Methods

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

Public Instance Methods

does_not_match?(request_pattern) click to toggle source
# File lib/webmock/rspec/matchers/request_pattern_matcher.rb, line 28
def does_not_match?(request_pattern)
  @request_execution_verifier.request_pattern = request_pattern
  @request_execution_verifier.does_not_match?
end
failure_message() click to toggle source
# File lib/webmock/rspec/matchers/request_pattern_matcher.rb, line 33
def failure_message
  @request_execution_verifier.failure_message
end
matches?(request_pattern) click to toggle source
# File lib/webmock/rspec/matchers/request_pattern_matcher.rb, line 23
def matches?(request_pattern)
  @request_execution_verifier.request_pattern = request_pattern
  @request_execution_verifier.matches?
end
negative_failure_message() click to toggle source
# File lib/webmock/rspec/matchers/request_pattern_matcher.rb, line 38
def negative_failure_message
  @request_execution_verifier.negative_failure_message
end
once() click to toggle source
# File lib/webmock/rspec/matchers/request_pattern_matcher.rb, line 8
def once
  @request_execution_verifier.expected_times_executed = 1
  self
end
times(times) click to toggle source
# File lib/webmock/rspec/matchers/request_pattern_matcher.rb, line 18
def times(times)
  @request_execution_verifier.expected_times_executed = times.to_i
  self
end
twice() click to toggle source
# File lib/webmock/rspec/matchers/request_pattern_matcher.rb, line 13
def twice
  @request_execution_verifier.expected_times_executed = 2
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.