diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-21 09:29:01 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-21 09:29:03 -0200 |
commit | 57b65ef416a4ff8269d8e7ac2c297cbdfa3d0d4b (patch) | |
tree | 73c1a6984fd83503006eca7c5b4cacf02036f0d9 /actionpack | |
parent | e4dbfce1c3db0a24093e2314ecaa724b3dd19760 (diff) | |
download | rails-57b65ef416a4ff8269d8e7ac2c297cbdfa3d0d4b.tar.gz rails-57b65ef416a4ff8269d8e7ac2c297cbdfa3d0d4b.tar.bz2 rails-57b65ef416a4ff8269d8e7ac2c297cbdfa3d0d4b.zip |
Fix setting expected value in translation tests
It was being set to nil instead due to the wrong assignment.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/abstract/translation_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/abstract/translation_test.rb b/actionpack/test/abstract/translation_test.rb index 35e7fd69b5..4fdc480b43 100644 --- a/actionpack/test/abstract/translation_test.rb +++ b/actionpack/test/abstract/translation_test.rb @@ -29,13 +29,13 @@ module AbstractController def test_lazy_lookup expected = 'bar' - @controller.stubs(:action_name => :index) + @controller.stubs(action_name: :index) I18n.stubs(:translate).with('abstract_controller.testing.translation.index.foo').returns(expected) assert_equal expected, @controller.t('.foo') end def test_default_translation - key, expected = 'one.two' 'bar' + key, expected = 'one.two', 'bar' I18n.stubs(:translate).with(key).returns(expected) assert_equal expected, @controller.t(key) end |