Skip to content

Commit 667c60e

Browse files
committed
Fix method declaration to be ruby-1.8-compatible
1 parent 859f10d commit 667c60e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/rack/reverse_proxy_matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Rack
22
class ReverseProxyMatcher
3-
def initialize(matcher,url=nil,options)
3+
def initialize(matcher, url=nil, options={})
44
@default_url=url
55
@url=url
66
@options=options

spec/rack/reverse_proxy_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ def app
296296

297297
it "should proxy requests when a pattern is matched" do
298298
stub_request(:get, 'http://users-example.com/users?user=omer').to_return({:body => "User App"})
299-
get '/test', user: "mark"
299+
get '/test', :user => "mark"
300300
last_response.body.should == "Dummy App"
301-
get '/users', user: 'omer'
301+
get '/users', :user => 'omer'
302302
last_response.body.should == "User App"
303303
end
304304
end

0 commit comments

Comments
 (0)