Parent

Class/Module Index [+]

Quicksearch

WebMock::WebMockMatcher

Public Class Methods

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

Public Instance Methods

does_not_match?(webmock) click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 33
def does_not_match?(webmock)
  @request_execution_verifier.does_not_match?
end
failure_message() click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 37
def failure_message
  @request_execution_verifier.failure_message
end
matches?(webmock) click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 29
def matches?(webmock)
  @request_execution_verifier.matches?
end
negative_failure_message() click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 42
def negative_failure_message
  @request_execution_verifier.negative_failure_message
end
once() click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 9
def once
  @request_execution_verifier.expected_times_executed = 1
  self
end
times(times) click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 24
def times(times)
  @request_execution_verifier.expected_times_executed = times.to_i
  self
end
twice() click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 14
def twice
  @request_execution_verifier.expected_times_executed = 2
  self
end
with(options = {}, &block) click to toggle source
# File lib/webmock/rspec/matchers/webmock_matcher.rb, line 19
def with(options = {}, &block)
  @request_execution_verifier.request_pattern.with(options, &block)
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.