From 57b65ef416a4ff8269d8e7ac2c297cbdfa3d0d4b Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 21 Jan 2013 09:29:01 -0200 Subject: Fix setting expected value in translation tests It was being set to nil instead due to the wrong assignment. --- actionpack/test/abstract/translation_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack') 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 -- cgit v1.2.3