Permalink
Browse files

fix unused variable warning in test

  • Loading branch information...
1 parent b96ea6f commit ab3602c349931794345ec0a79feec44bf55164ee @rohit rohit committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test_router.rb
View
2 test/test_router.rb
@@ -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)

0 comments on commit ab3602c

Please sign in to comment.