aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYehuda Katz <yehudakatz@YK.local>2010-02-26 22:47:36 -0800
committerYehuda Katz <yehudakatz@YK.local>2010-02-26 22:47:36 -0800
commit3f0ed205e721008759297909f1f224ebd58c6673 (patch)
treec4060a443dc73fb2ce6bd0536d745d2c7e25641c
parent4bdc783d37b82b739c5ddcc828d3a253873f6629 (diff)
downloadrails-3f0ed205e721008759297909f1f224ebd58c6673.tar.gz
rails-3f0ed205e721008759297909f1f224ebd58c6673.tar.bz2
rails-3f0ed205e721008759297909f1f224ebd58c6673.zip
Remind us that RoutingAssertions should work in an integration context
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/routing.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
index 726da2ee07..1d7e8090e4 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -152,6 +152,7 @@ module ActionDispatch
@controller = old_controller if @controller
end
+ # ROUTES TODO: These assertions should really work in an integration context
def method_missing(selector, *args, &block)
if @controller && @router.named_routes.helpers.include?(selector)
@controller.send(selector, *args, &block)