diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-30 16:49:58 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-30 16:49:58 +0100 |
commit | c164ca1efbb3b097d5a3f3db56c4988858607011 (patch) | |
tree | 767ac001e626b755071b83f398615945fff18588 /actionpack/test | |
parent | 2d567e470adb9241b400e02ccb0501efb7d09b14 (diff) | |
download | rails-c164ca1efbb3b097d5a3f3db56c4988858607011.tar.gz rails-c164ca1efbb3b097d5a3f3db56c4988858607011.tar.bz2 rails-c164ca1efbb3b097d5a3f3db56c4988858607011.zip |
Bring helpers_dir deprecation back.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/helper_test.rb | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/actionpack/test/controller/helper_test.rb b/actionpack/test/controller/helper_test.rb index e53e62d1ff..75a96d6497 100644 --- a/actionpack/test/controller/helper_test.rb +++ b/actionpack/test/controller/helper_test.rb @@ -135,17 +135,16 @@ class HelperTest < ActiveSupport::TestCase assert methods.include?('foobar') end - # TODO Add this deprecation back before Rails 3.0 final release - # def test_deprecation - # assert_deprecated do - # ActionController::Base.helpers_dir = "some/foo/bar" - # end - # assert_deprecated do - # assert_equal ["some/foo/bar"], ActionController::Base.helpers_dir - # end - # ensure - # ActionController::Base.helpers_path = [File.dirname(__FILE__) + '/../fixtures/helpers'] - # end + def test_deprecation + assert_deprecated do + ActionController::Base.helpers_dir = "some/foo/bar" + end + assert_deprecated do + assert_equal ["some/foo/bar"], ActionController::Base.helpers_dir + end + ensure + ActionController::Base.helpers_path = [File.dirname(__FILE__) + '/../fixtures/helpers'] + end private def expected_helper_methods |