diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-07 14:57:04 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-07 14:57:04 -0300 |
commit | dc73e39b4d40f0965b000f84568f77f126ec8290 (patch) | |
tree | d9eaacbaea2185f3b3795deeb9a76de868c4d435 /activerecord/test | |
parent | c6e166b25e60a6594ab9aeba1738a835aa744d3e (diff) | |
parent | 3b22df2350dd671436ca5b1e4de4af3df9a8cca2 (diff) | |
download | rails-dc73e39b4d40f0965b000f84568f77f126ec8290.tar.gz rails-dc73e39b4d40f0965b000f84568f77f126ec8290.tar.bz2 rails-dc73e39b4d40f0965b000f84568f77f126ec8290.zip |
Merge pull request #15561 from sgrif/sg-time-zone-aware-arrays
Ensure time zones don't change after round trip with array columns
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/array_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb index c78c502478..1d431f1666 100644 --- a/activerecord/test/cases/adapters/postgresql/array_test.rb +++ b/activerecord/test/cases/adapters/postgresql/array_test.rb @@ -208,11 +208,13 @@ class PostgresqlArrayTest < ActiveRecord::TestCase record = PgArray.new(datetimes: [time_string]) assert_equal [time], record.datetimes + assert_equal ActiveSupport::TimeZone[tz], record.datetimes.first.time_zone record.save! record.reload assert_equal [time], record.datetimes + assert_equal ActiveSupport::TimeZone[tz], record.datetimes.first.time_zone end end |