1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #44043 from yahonda/follow_up_43993_43296

SQLite3Adapter supports default function since #43993
This commit is contained in:
Ryuta Kamizono 2022-01-02 16:37:27 +09:00 committed by GitHub
commit 2bfcd8b025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -941,7 +941,6 @@ class DirtyTest < ActiveRecord::TestCase
assert_not_predicate person, :changed? assert_not_predicate person, :changed?
end end
unless current_adapter?(:SQLite3Adapter)
test "partial insert off with unchanged default function attribute" do test "partial insert off with unchanged default function attribute" do
with_partial_writes Aircraft, false do with_partial_writes Aircraft, false do
aircraft = Aircraft.new(name: "Boeing") aircraft = Aircraft.new(name: "Boeing")
@ -971,7 +970,6 @@ class DirtyTest < ActiveRecord::TestCase
assert_equal manufactured_at.utc.strftime("%Y-%m-%d %H:%M:%S"), aircraft.manufactured_at.strftime("%Y-%m-%d %H:%M:%S") assert_equal manufactured_at.utc.strftime("%Y-%m-%d %H:%M:%S"), aircraft.manufactured_at.strftime("%Y-%m-%d %H:%M:%S")
end end
end end
end
private private
def with_partial_writes(klass, on = true) def with_partial_writes(klass, on = true)