diff options
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions/routing.rb')
| -rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index 543c7b78a1..54e24ed6bf 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -86,8 +86,8 @@ module ActionDispatch          end          # Load routes.rb if it hasn't been loaded. -        generated_path, extra_keys = @routes.generate_extras(options, defaults) -        found_extras = options.reject { |k, _| ! extra_keys.include? k } +        generated_path, query_string_keys = @routes.generate_extras(options, defaults) +        found_extras = options.reject { |k, _| ! query_string_keys.include? k }          msg = message || sprintf("found extras <%s>, not <%s>", found_extras, extras)          assert_equal(extras, found_extras, msg) @@ -165,7 +165,7 @@ module ActionDispatch        # ROUTES TODO: These assertions should really work in an integration context        def method_missing(selector, *args, &block) -        if defined?(@controller) && @controller && @routes && @routes.named_routes.route_defined?(selector) +        if defined?(@controller) && @controller && defined?(@routes) && @routes && @routes.named_routes.route_defined?(selector)            @controller.send(selector, *args, &block)          else            super  | 
