Sha256: 63d64a55ea37623ba78c1c19f58ee166339a1ad46330c864919c3b25b9f3430b

Contents?: true

Size: 602 Bytes

Versions: 65

Compression:

Stored size: 602 Bytes

Contents

require 'webmock'
require 'webmock/rspec/matchers/request_pattern_matcher'
require 'webmock/rspec/matchers/webmock_matcher'

module WebMock
  module Matchers
    def have_been_made
      WebMock::RequestPatternMatcher.new
    end

    def have_been_requested
      WebMock::RequestPatternMatcher.new
    end


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

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

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

Version data entries

65 entries across 63 versions & 6 rubygems

Version Path
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/webmock-1.21.0/lib/webmock/rspec/matchers.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/webmock-1.21.0/lib/webmock/rspec/matchers.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/webmock-1.20.4/lib/webmock/rspec/matchers.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/webmock-1.20.4/lib/webmock/rspec/matchers.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/webmock-1.20.4/lib/webmock/rspec/matchers.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/webmock-1.8.11/lib/webmock/rspec/matchers.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/webmock-1.8.11/lib/webmock/rspec/matchers.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/webmock-1.8.11/lib/webmock/rspec/matchers.rb
webmock-1.21.0 lib/webmock/rspec/matchers.rb
webmock-1.20.4 lib/webmock/rspec/matchers.rb
webmock-1.20.3 lib/webmock/rspec/matchers.rb
webmock-1.20.2 lib/webmock/rspec/matchers.rb
webmock-1.20.1 lib/webmock/rspec/matchers.rb
webmock-1.20.0 lib/webmock/rspec/matchers.rb
webmock-1.19.0 lib/webmock/rspec/matchers.rb
whos_dated_who-0.1.0 vendor/bundle/gems/webmock-1.18.0/lib/webmock/rspec/matchers.rb
whos_dated_who-0.0.1 vendor/bundle/gems/webmock-1.18.0/lib/webmock/rspec/matchers.rb
webmock-1.18.0 lib/webmock/rspec/matchers.rb
webmock-1.17.4 lib/webmock/rspec/matchers.rb
webmock-1.17.3 lib/webmock/rspec/matchers.rb