Sha256: 19ba8350018fe1c97d518a036ee02e05bd271b7f57989b683c6f707f180b29be
Contents?: true
Size: 623 Bytes
Versions: 9
Compression:
Stored size: 623 Bytes
Contents
# An RSpec matcher for the Fakeweb HTTP stubbing library, allowing you to use # RSpec syntax to check if requests to particular URIs have been made. # # @see FakeWebMatcher::Matchers # @see http://fakeweb.rubyforge.org # @author Pat Allan # module FakeWebMatcher # Custom matcher holder for RSpec # module Matchers # Returns a new matcher instance. # # @param [Symbol] method The HTTP method # @param [String] uri The URI to check for # @return [FakeWebMatcher::RequestMatcher] # def have_requested(method, uri) FakeWebMatcher::RequestMatcher.new(method, uri) end end end
Version data entries
9 entries across 9 versions & 3 rubygems