diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 10:05:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 10:39:33 -0700 |
commit | c3284e2a36e92af1a2ad3bdbc1c74523811f3ad2 (patch) | |
tree | 8b250d0d905c7e2651a07884ee990eb264bea3d1 /actionpack/test/dispatch | |
parent | 60adf118a622bebe55f9e2cdfcf94287d3c031a7 (diff) | |
download | rails-c3284e2a36e92af1a2ad3bdbc1c74523811f3ad2.tar.gz rails-c3284e2a36e92af1a2ad3bdbc1c74523811f3ad2.tar.bz2 rails-c3284e2a36e92af1a2ad3bdbc1c74523811f3ad2.zip |
implement `requirements` in terms of routes
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/mapper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/mapper_test.rb b/actionpack/test/dispatch/mapper_test.rb index dab15a909e..4155a44c39 100644 --- a/actionpack/test/dispatch/mapper_test.rb +++ b/actionpack/test/dispatch/mapper_test.rb @@ -35,7 +35,7 @@ module ActionDispatch end def requirements - @my_routes.map { |x| x[2] } + routes.map(&:path).map(&:requirements) end def asts |