1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

remove warnings

warning: assigned but unused variable - scope_called, path and strexp
This commit is contained in:
Kuldeep Aggarwal 2014-06-12 00:27:58 +05:30
parent 0a77b467b4
commit fca73eeb87
2 changed files with 0 additions and 3 deletions

View file

@ -256,7 +256,6 @@ class LegacyRouteSetTests < ActiveSupport::TestCase
end
def test_scoped_lambda_with_get_lambda
scope_called = false
inner_called = false
rs.draw do

View file

@ -213,8 +213,6 @@ module ActionDispatch
route_set = Routing::RouteSet.new
mapper = Routing::Mapper.new route_set
strexp = Router::Strexp.build("/", {}, ['/', '.', '?'], false)
path = Path::Pattern.new strexp
app = lambda { |env| [200, {}, ['success!']] }
mapper.get '/weblog', :to => app