Permalink
Browse files

Shouldn't have changed method arguments while documenting and then no…

…t run tests.
  • Loading branch information...
1 parent b0520a1 commit ad479d2b87493176d988093ecf5c629faa6db8a6 @pat committed Jul 29, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/fake_web_matcher/request_matcher.rb
@@ -7,11 +7,11 @@ class RequestMatcher
# Create a new matcher.
#
- # @param [Symbol] method The HTTP method
+ # @param [Symbol] method The HTTP method. Defaults to :any if not supplied.
# @param [String] uri The URI to check for
#
- def initialize(method, url)
- @method, @url = method, url
+ def initialize(*args)
+ @method, @url = args_split(*args)
end
# Indication of whether there's a match on the URI from given requests.

0 comments on commit ad479d2

Please sign in to comment.