Skip to content

Commit

Permalink
Merge pull request #4724 from kennyj/fix_warning_20120128
Browse files Browse the repository at this point in the history
Fix warning. assigned but unused variable - path_params
  • Loading branch information
tenderlove committed Jan 27, 2012
2 parents 0341ca1 + 4c321c6 commit 25d5c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/test/dispatch/routing_test.rb
Expand Up @@ -2550,7 +2550,7 @@ class TestUnicodePaths < ActionDispatch::IntegrationTest
Routes = ActionDispatch::Routing::RouteSet.new.tap do |app| Routes = ActionDispatch::Routing::RouteSet.new.tap do |app|
app.draw do app.draw do
match "/#{Rack::Utils.escape("ほげ")}" => lambda { |env| match "/#{Rack::Utils.escape("ほげ")}" => lambda { |env|
path_params = env['action_dispatch.request.path_parameters'] env['action_dispatch.request.path_parameters']
[200, { 'Content-Type' => 'text/plain' }, []] [200, { 'Content-Type' => 'text/plain' }, []]
}, :as => :unicode_path }, :as => :unicode_path
end end
Expand Down

0 comments on commit 25d5c94

Please sign in to comment.