aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2018-03-19 10:16:31 +0000
committerGitHub <noreply@github.com>2018-03-19 10:16:31 +0000
commit91cdb5acb9cadac98faba17b79b42e3e8851ef22 (patch)
tree20d050ceb738b1baebc04727ae9025ecb8e7a3b9 /activerecord/test
parentd91e6f1213146e327b47f2a65776c7f4f347a2d6 (diff)
parent7daa6f4a779727f1a57a4806692f43b58e150eb9 (diff)
downloadrails-91cdb5acb9cadac98faba17b79b42e3e8851ef22.tar.gz
rails-91cdb5acb9cadac98faba17b79b42e3e8851ef22.tar.bz2
rails-91cdb5acb9cadac98faba17b79b42e3e8851ef22.zip
Merge pull request #32284 from bogdanvlviv/fix-failing-test-test_quoted_time_utc
Fix failing `QuotingTest#test_quoted_time_utc`
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/quoting_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb
index a8eed2ff26..92eb0c814f 100644
--- a/activerecord/test/cases/quoting_test.rb
+++ b/activerecord/test/cases/quoting_test.rb
@@ -71,8 +71,8 @@ module ActiveRecord
with_timezone_config default: :utc do
t = Time.now.change(usec: 0)
- expected = t.change(year: 2000, month: 1, day: 1)
- expected = expected.getutc.to_s(:db).sub("2000-01-01 ", "")
+ expected = t.getutc.change(year: 2000, month: 1, day: 1)
+ expected = expected.to_s(:db).sub("2000-01-01 ", "")
assert_equal expected, @quoter.quoted_time(t)
end