diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-01-26 00:34:44 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-01-26 00:34:44 +0000 |
commit | 8ef3dfff7a48bd0609ba4067c54910880fc6ef88 (patch) | |
tree | c581f9412c531bce307c764ee6360a39648940b0 /activesupport/test | |
parent | c95365a00eb086f61cb5e73e9e6d5dae54325b60 (diff) | |
download | rails-8ef3dfff7a48bd0609ba4067c54910880fc6ef88.tar.gz rails-8ef3dfff7a48bd0609ba4067c54910880fc6ef88.tar.bz2 rails-8ef3dfff7a48bd0609ba4067c54910880fc6ef88.zip |
TimeWithZone#- added, so that #- can handle a Time or TimeWithZone argument correctly
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/time_with_zone_test.rb | 1 |
1 files changed, 1 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 9276656db5..eae4d3094e 100644 --- a/activesupport/test/core_ext/time_with_zone_test.rb +++ b/activesupport/test/core_ext/time_with_zone_test.rb @@ -124,6 +124,7 @@ uses_tzinfo 'TimeWithZoneTest' do def test_minus_with_time assert_equal 86_400.0, ActiveSupport::TimeWithZone.new( Time.utc(2000, 1, 2), TimeZone['UTC'] ) - Time.utc(2000, 1, 1) + assert_equal 86_400.0, ActiveSupport::TimeWithZone.new( Time.utc(2000, 1, 2), TimeZone['Hawaii'] ) - Time.utc(2000, 1, 1) end def test_minus_with_time_with_zone |