diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-07-03 20:03:12 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-07-07 12:04:54 +0200 |
commit | bb9244e67f0c89559a1114106653526fc480ac5c (patch) | |
tree | 1c7c74d8369ee16913317017faa6d39924e4be3c /activerecord/test | |
parent | b785e921d186753d905c1d0415b91d0987958028 (diff) | |
download | rails-bb9244e67f0c89559a1114106653526fc480ac5c.tar.gz rails-bb9244e67f0c89559a1114106653526fc480ac5c.tar.bz2 rails-bb9244e67f0c89559a1114106653526fc480ac5c.zip |
Removed unused test for DateTime.local_offset
see discussion here #11274
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/column_attributes_test.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/activerecord/test/cases/migration/column_attributes_test.rb b/activerecord/test/cases/migration/column_attributes_test.rb index ec2926632c..6f5f29f0da 100644 --- a/activerecord/test/cases/migration/column_attributes_test.rb +++ b/activerecord/test/cases/migration/column_attributes_test.rb @@ -168,26 +168,6 @@ module ActiveRecord assert_equal Date, bob.favorite_day.class end - # Oracle adapter stores Time or DateTime with timezone value already in _before_type_cast column - # therefore no timezone change is done afterwards when default timezone is changed - unless current_adapter?(:OracleAdapter) - # Test DateTime column and defaults, including timezone. - # FIXME: moment of truth may be Time on 64-bit platforms. - if bob.moment_of_truth.is_a?(DateTime) - - with_env_tz 'US/Eastern' do - bob.reload - assert_equal DateTime.local_offset, bob.moment_of_truth.offset - assert_not_equal 0, bob.moment_of_truth.offset - assert_not_equal "Z", bob.moment_of_truth.zone - # US/Eastern is -5 hours from GMT - assert_equal Rational(-5, 24), bob.moment_of_truth.offset - assert_match(/\A-05:00\Z/, bob.moment_of_truth.zone) - assert_equal DateTime::ITALY, bob.moment_of_truth.start - end - end - end - assert_instance_of TrueClass, bob.male? assert_kind_of BigDecimal, bob.wealth end |