Permalink
Browse files

be explicit about where helpers are installed

  • Loading branch information...
tenderlove committed Dec 30, 2011
1 parent 116b9ed commit 5681f79f642c57397bf18d239a9aa1dbf71b0f24
@@ -276,7 +276,7 @@ def clear!
@prepend.each { |blk| eval_block(blk) }
end
- def install_helpers(destinations = [ActionController::Base, ActionView::Base])
+ def install_helpers(destinations)
destinations.each { |d| d.module_eval { include Helpers } }
named_routes.install(destinations)
end
@@ -165,7 +165,7 @@ def test_redirect_to_named_route
match 'route_one', :to => 'action_pack_assertions#nothing', :as => :route_one
match ':controller/:action'
end
- set.install_helpers
+ set.install_helpers([ActionController::Base, ActionView::Base])
process :redirect_to_named_route
assert_redirected_to 'http://test.host/route_one'

0 comments on commit 5681f79

Please sign in to comment.