aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/helper_test.rb')
-rw-r--r--actionpack/test/controller/helper_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/test/controller/helper_test.rb b/actionpack/test/controller/helper_test.rb
index d18388821b..6dc77a4aaf 100644
--- a/actionpack/test/controller/helper_test.rb
+++ b/actionpack/test/controller/helper_test.rb
@@ -130,6 +130,22 @@ class HelperTest < Test::Unit::TestCase
assert methods.include?('foobar')
end
+ def test_helper_proxy
+ methods = ApplicationController.helpers.methods.map(&:to_s)
+
+ # ActionView
+ assert methods.include?('pluralize')
+
+ # abc_helper.rb
+ assert methods.include?('bare_a')
+
+ # fun/games_helper.rb
+ assert methods.include?('stratego')
+
+ # fun/pdf_helper.rb
+ assert methods.include?('foobar')
+ end
+
private
def expected_helper_methods
TestHelper.instance_methods.map(&:to_s)