From c3284e2a36e92af1a2ad3bdbc1c74523811f3ad2 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 14 Aug 2015 10:05:03 -0700 Subject: implement `requirements` in terms of routes --- actionpack/test/dispatch/mapper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/test/dispatch') 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 -- cgit v1.2.3