diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-14 02:14:43 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-14 03:27:18 -0800 |
commit | 61843595eaa58fc3c7f30043f2e9d84e2ef2b401 (patch) | |
tree | f004ced9ac2cce72c4647c1dac2333319ef9445e /activesupport/test | |
parent | 364a8f390216c4c5695ded89dacab0978fa6ae34 (diff) | |
download | rails-61843595eaa58fc3c7f30043f2e9d84e2ef2b401.tar.gz rails-61843595eaa58fc3c7f30043f2e9d84e2ef2b401.tar.bz2 rails-61843595eaa58fc3c7f30043f2e9d84e2ef2b401.zip |
No need for test stub
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/i18n_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/i18n_test.rb b/activesupport/test/i18n_test.rb index 9868f1e87d..dfcd4f822d 100644 --- a/activesupport/test/i18n_test.rb +++ b/activesupport/test/i18n_test.rb @@ -9,8 +9,8 @@ class I18nTest < Test::Unit::TestCase end def test_time_zone_localization_with_default_format - Time.zone.stubs(:now).returns Time.local(2000) - assert_equal Time.zone.now.strftime("%a, %d %b %Y %H:%M:%S %z"), I18n.localize(Time.zone.now) + now = Time.local(2000) + assert_equal now.strftime("%a, %d %b %Y %H:%M:%S %z"), I18n.localize(now) end def test_date_localization_should_use_default_format |