aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/time_with_zone_test.rb
diff options
context:
space:
mode:
authorLevin Alexander <mail@levinalex.net>2009-01-26 16:10:41 +0100
committerGeoff Buesing <gbuesing@gmail.com>2009-02-08 11:36:57 -0600
commit18d636934492fd657a67dc980b8556bcf69a818d (patch)
tree735baa95e08330d791511ec112c4d70fe36461d1 /activesupport/test/core_ext/time_with_zone_test.rb
parent5fbacde2afc8ce25a65fdd084166d76c23c969c3 (diff)
downloadrails-18d636934492fd657a67dc980b8556bcf69a818d.tar.gz
rails-18d636934492fd657a67dc980b8556bcf69a818d.tar.bz2
rails-18d636934492fd657a67dc980b8556bcf69a818d.zip
Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [#1796 state:resolved]
Diffstat (limited to 'activesupport/test/core_ext/time_with_zone_test.rb')
-rw-r--r--activesupport/test/core_ext/time_with_zone_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/time_with_zone_test.rb b/activesupport/test/core_ext/time_with_zone_test.rb
index 4dc1fec559..d0bb36ed4f 100644
--- a/activesupport/test/core_ext/time_with_zone_test.rb
+++ b/activesupport/test/core_ext/time_with_zone_test.rb
@@ -93,6 +93,12 @@ class TimeWithZoneTest < Test::Unit::TestCase
end
end
+ def test_to_formatted_s
+ silence_warnings do # silence warnings raised by tzinfo gem
+ assert_equal '1999-12-31 19:00:00 -0500', @twz.to_formatted_s
+ end
+ end
+
def test_to_s_db
silence_warnings do # silence warnings raised by tzinfo gem
assert_equal '2000-01-01 00:00:00', @twz.to_s(:db)