Sha256: 35a6739eb7eac4e3b857188d05892668280722335e33131eeadb9ff698a40753

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

module WebMock
  module Matchers
    def have_been_made
      WebMock::RequestProfileMatcher.new
    end
    
    def have_not_been_made
      WebMock::RequestProfileMatcher.new.times(0)
    end
    
    def have_requested(method, url)
      WebMock::WebMockMatcher.new(method, url)
    end
    
    def have_not_requested(method, url)
      WebMock::WebMockMatcher.new(method, url).times(0)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webmock-0.7.1 lib/webmock/adapters/rspec/matchers.rb
webmock-0.7.0 lib/webmock/adapters/rspec/matchers.rb