aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/helper_test.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-08 13:33:18 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-08 13:34:07 -0700
commit86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8 (patch)
treeae5b6811931cb2903bf3a54a7211316f4e43589e /actionpack/test/controller/helper_test.rb
parent00ee990443189649e481b2c30945e7a1029d8280 (diff)
downloadrails-86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8.tar.gz
rails-86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8.tar.bz2
rails-86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8.zip
ActionPack components should no longer have undeclared dependencies.
* Tests can be run in isolation * Dependencies added * A few tests modified to avoid depending on AS deps not depended on my files they were testing
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 5b9feb3630..342cbfbcd3 100644
--- a/actionpack/test/controller/helper_test.rb
+++ b/actionpack/test/controller/helper_test.rb
@@ -127,7 +127,7 @@ class HelperTest < Test::Unit::TestCase
end
def test_all_helpers
- methods = AllHelpersController.master_helper_module.instance_methods.map(&:to_s)
+ methods = AllHelpersController.master_helper_module.instance_methods.map {|m| m.to_s}
# abc_helper.rb
assert methods.include?('bare_a')
@@ -171,11 +171,11 @@ class HelperTest < Test::Unit::TestCase
private
def expected_helper_methods
- TestHelper.instance_methods.map(&:to_s)
+ TestHelper.instance_methods.map {|m| m.to_s }
end
def master_helper_methods
- @controller_class.master_helper_module.instance_methods.map(&:to_s)
+ @controller_class.master_helper_module.instance_methods.map {|m| m.to_s }
end
def missing_methods