diff options
author | Aaron Patterson <tenderlove@github.com> | 2018-09-25 09:27:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-25 09:27:37 -0700 |
commit | 6d698fdb070f4134c1795e8befb4e4c5e29a682f (patch) | |
tree | ccbaae1d82da6abfc99e151752a557a99da83dfc /actionpack/lib/action_dispatch/testing | |
parent | 4f12139a22f70ff0abc1709b8888011f8bfee42c (diff) | |
parent | 3301804ff6abcd5aae06cc5acbb82bc6a472f008 (diff) | |
download | rails-6d698fdb070f4134c1795e8befb4e4c5e29a682f.tar.gz rails-6d698fdb070f4134c1795e8befb4e4c5e29a682f.tar.bz2 rails-6d698fdb070f4134c1795e8befb4e4c5e29a682f.zip |
Merge pull request #33973 from rails/remove-catch-all
Remove deprecated catch-all route in the AV tests
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index 77cb311630..af41521c5c 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -9,6 +9,11 @@ module ActionDispatch module Assertions # Suite of assertions to test routes generated by \Rails and the handling of requests made to them. module RoutingAssertions + def setup # :nodoc: + @routes ||= nil + super + end + # Asserts that the routing of the given +path+ was handled correctly and that the parsed options (given in the +expected_options+ hash) # match +path+. Basically, it asserts that \Rails recognizes the route given by +expected_options+. # |