Skip to content

Commit d8c0aa8

Browse files
committed
Add hack to deal with warnings
We should be able to remove this once the catch-all route is gone from AP
1 parent 4f96e73 commit d8c0aa8

File tree

1 file changed

+1
-1
lines changed
  • actionpack/lib/action_dispatch/testing/assertions

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/testing/assertions/routing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Assertions
1010
# Suite of assertions to test routes generated by \Rails and the handling of requests made to them.
1111
module RoutingAssertions
1212
def setup # :nodoc:
13-
@routes = nil
13+
@routes ||= nil
1414
super
1515
end
1616

0 commit comments

Comments
 (0)