diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-05-17 14:40:56 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-18 02:12:06 +0200 |
commit | 73f0e1a8423d53370f272841ce29747434de4d9a (patch) | |
tree | 59a031f4ac16b447a20addc9a1caaaeffc9e1990 /actionpack/test/abstract | |
parent | 26e645fa000b15c335d5356008aac282c232f7f6 (diff) | |
download | rails-73f0e1a8423d53370f272841ce29747434de4d9a.tar.gz rails-73f0e1a8423d53370f272841ce29747434de4d9a.tar.bz2 rails-73f0e1a8423d53370f272841ce29747434de4d9a.zip |
Use assert_respond_to because it has better error messaging
[#4628 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r-- | actionpack/test/abstract/translation_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/abstract/translation_test.rb b/actionpack/test/abstract/translation_test.rb index 0bf61a6556..09ebfab85e 100644 --- a/actionpack/test/abstract/translation_test.rb +++ b/actionpack/test/abstract/translation_test.rb @@ -9,18 +9,18 @@ class TranslationControllerTest < Test::Unit::TestCase end def test_action_controller_base_responds_to_translate - assert @controller.respond_to?(:translate) + assert_respond_to @controller, :translate end def test_action_controller_base_responds_to_t - assert @controller.respond_to?(:t) + assert_respond_to @controller, :t end def test_action_controller_base_responds_to_localize - assert @controller.respond_to?(:localize) + assert_respond_to @controller, :localize end def test_action_controller_base_responds_to_l - assert @controller.respond_to?(:l) + assert_respond_to @controller, :l end end
\ No newline at end of file |