diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-02-10 17:02:22 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-02-10 17:02:22 +0000 |
commit | 94fa9fb74541b60ed04f2694558a6a98a9ce1cab (patch) | |
tree | b615ef44b629aae80daef6a66ac5bb9b4e52e03d /activesupport/test | |
parent | 2c8fb682cb6dfe889b31bbb76c90de5011aec009 (diff) | |
download | rails-94fa9fb74541b60ed04f2694558a6a98a9ce1cab.tar.gz rails-94fa9fb74541b60ed04f2694558a6a98a9ce1cab.tar.bz2 rails-94fa9fb74541b60ed04f2694558a6a98a9ce1cab.zip |
TimeZone#new renamed #local, so that new TimeWithZone instances can be created via Time.zone.local()
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/time_zone_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb index cd3972a41c..43f60690d9 100644 --- a/activesupport/test/time_zone_test.rb +++ b/activesupport/test/time_zone_test.rb @@ -129,8 +129,8 @@ class TimeZoneTest < Test::Unit::TestCase assert !TimeZone.us_zones.include?(TimeZone["Kuala Lumpur"]) end - def test_new - time = TimeZone["Hawaii"].new(2007, 2, 5, 15, 30, 45) + def test_local + time = TimeZone["Hawaii"].local(2007, 2, 5, 15, 30, 45) assert_equal Time.utc(2007, 2, 5, 15, 30, 45), time.time assert_equal TimeZone["Hawaii"], time.time_zone end |