Skip to content

Commit 0ef1631

Browse files
anujdaswaterlink
authored andcommitted
Fix method declaration to be ruby-1.8-compatible
1 parent 6c72574 commit 0ef1631

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
@@ -324,9 +324,9 @@ def app
324324

325325
it "should proxy requests when a pattern is matched" do
326326
stub_request(:get, 'http://users-example.com/users?user=omer').to_return({:body => "User App"})
327-
get '/test', user: "mark"
327+
get '/test', :user => "mark"
328328
last_response.body.should == "Dummy App"
329-
get '/users', user: 'omer'
329+
get '/users', :user => 'omer'
330330
last_response.body.should == "User App"
331331
end
332332
end

0 commit comments

Comments
 (0)