Skip to content

Commit

Permalink
Merge pull request rails#26 from rohit/fix_unused_var
Browse files Browse the repository at this point in the history
Fix unused variable warning in test
  • Loading branch information
fxn committed Mar 28, 2012
2 parents b96ea6f + ab3602c commit b0ef9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_router.rb
Expand Up @@ -199,7 +199,7 @@ def test_clear_trailing_slash_from_script_name_on_root_unanchored_routes
strexp = Router::Strexp.new("/", {}, ['/', '.', '?'], false)
path = Path::Pattern.new strexp
app = lambda { |env| [200, {}, ['success!']] }
route = @router.routes.add_route(app, path, {}, {}, {})
@router.routes.add_route(app, path, {}, {}, {})

env = rack_env('SCRIPT_NAME' => '', 'PATH_INFO' => '/weblog')
resp = @router.call(env)
Expand Down

0 comments on commit b0ef9f1

Please sign in to comment.