Module: WebMock::Matchers

Defined in:
lib/webmock/rspec/matchers.rb,
lib/webmock/matchers/any_arg_matcher.rb,
lib/webmock/matchers/hash_argument_matcher.rb,
lib/webmock/matchers/hash_excluding_matcher.rb,
lib/webmock/matchers/hash_including_matcher.rb

Defined Under Namespace

Classes: AnyArgMatcher, HashArgumentMatcher, HashExcludingMatcher, HashIncludingMatcher

Instance Method Summary collapse

Instance Method Details

#have_been_madeObject



7
8
9
# File 'lib/webmock/rspec/matchers.rb', line 7

def have_been_made
  WebMock::RequestPatternMatcher.new
end

#have_been_requestedObject



11
12
13
# File 'lib/webmock/rspec/matchers.rb', line 11

def have_been_requested
  WebMock::RequestPatternMatcher.new
end

#have_not_been_madeObject



15
16
17
# File 'lib/webmock/rspec/matchers.rb', line 15

def have_not_been_made
  WebMock::RequestPatternMatcher.new.times(0)
end

#have_not_requested(method, uri) ⇒ Object



23
24
25
# File 'lib/webmock/rspec/matchers.rb', line 23

def have_not_requested(method, uri)
  WebMock::WebMockMatcher.new(method, uri).times(0)
end

#have_requested(method, uri) ⇒ Object



19
20
21
# File 'lib/webmock/rspec/matchers.rb', line 19

def have_requested(method, uri)
  WebMock::WebMockMatcher.new(method, uri)
end