aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/helper_test.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-05-23 00:17:05 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-05-23 00:17:10 +0200
commite976c489e6416cdc4714721df78dd43dd6d13d99 (patch)
treec5e5c96ef0bd5cd522ddc492a527e53685a0d58b /actionpack/test/controller/helper_test.rb
parent1d168afcb146872cb7e49b6d513629fbb19e39b0 (diff)
downloadrails-e976c489e6416cdc4714721df78dd43dd6d13d99.tar.gz
rails-e976c489e6416cdc4714721df78dd43dd6d13d99.tar.bz2
rails-e976c489e6416cdc4714721df78dd43dd6d13d99.zip
Add all the existing helpers related features to the new base
Diffstat (limited to 'actionpack/test/controller/helper_test.rb')
-rw-r--r--actionpack/test/controller/helper_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/helper_test.rb b/actionpack/test/controller/helper_test.rb
index 3bbda9eb3a..5b9feb3630 100644
--- a/actionpack/test/controller/helper_test.rb
+++ b/actionpack/test/controller/helper_test.rb
@@ -27,7 +27,7 @@ module Fun
end
end
-class ApplicationController < ActionController::Base
+class AllHelpersController < ActionController::Base
helper :all
end
@@ -127,7 +127,7 @@ class HelperTest < Test::Unit::TestCase
end
def test_all_helpers
- methods = ApplicationController.master_helper_module.instance_methods.map(&:to_s)
+ methods = AllHelpersController.master_helper_module.instance_methods.map(&:to_s)
# abc_helper.rb
assert methods.include?('bare_a')
@@ -154,7 +154,7 @@ class HelperTest < Test::Unit::TestCase
end
def test_helper_proxy
- methods = ApplicationController.helpers.methods.map(&:to_s)
+ methods = AllHelpersController.helpers.methods.map(&:to_s)
# ActionView
assert methods.include?('pluralize')