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:
parent
0a77b467b4
commit
fca73eeb87
2 changed files with 0 additions and 3 deletions
|
@ -256,7 +256,6 @@ class LegacyRouteSetTests < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_scoped_lambda_with_get_lambda
|
def test_scoped_lambda_with_get_lambda
|
||||||
scope_called = false
|
|
||||||
inner_called = false
|
inner_called = false
|
||||||
|
|
||||||
rs.draw do
|
rs.draw do
|
||||||
|
|
|
@ -213,8 +213,6 @@ module ActionDispatch
|
||||||
route_set = Routing::RouteSet.new
|
route_set = Routing::RouteSet.new
|
||||||
mapper = Routing::Mapper.new route_set
|
mapper = Routing::Mapper.new route_set
|
||||||
|
|
||||||
strexp = Router::Strexp.build("/", {}, ['/', '.', '?'], false)
|
|
||||||
path = Path::Pattern.new strexp
|
|
||||||
app = lambda { |env| [200, {}, ['success!']] }
|
app = lambda { |env| [200, {}, ['success!']] }
|
||||||
mapper.get '/weblog', :to => app
|
mapper.get '/weblog', :to => app
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue