Permalink
Browse files

Merge pull request #26 from rohit/fix_unused_var

Fix unused variable warning in test
  • Loading branch information...
2 parents b96ea6f + ab3602c commit b0ef9f1019dae060fab68dfcae5cb288d6371462 @fxn fxn committed Mar 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test_router.rb
View
@@ -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 b0ef9f1

Please sign in to comment.