diff options
author | Akira Matsuda <ronnie@dio.jp> | 2015-07-17 18:29:52 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2015-07-17 18:29:52 +0900 |
commit | 8b3c68399fb6d7f6dd89cec74c567dd4834633c0 (patch) | |
tree | a87afc9e71b2157a2c36ad30df47a139eca45ca9 /actionpack/lib/action_dispatch/testing | |
parent | 094571b46dbc00a2db0bfcc96c38d984d2b675f3 (diff) | |
download | rails-8b3c68399fb6d7f6dd89cec74c567dd4834633c0.tar.gz rails-8b3c68399fb6d7f6dd89cec74c567dd4834633c0.tar.bz2 rails-8b3c68399fb6d7f6dd89cec74c567dd4834633c0.zip |
"warning: instance variable @routes not initialized"
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index 543c7b78a1..b3e38e8de1 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -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?(@controller) && @routes && @routes.named_routes.route_defined?(selector) @controller.send(selector, *args, &block) else super |