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
1 changed files with 20 additions and 22 deletions

View File

@ -941,7 +941,6 @@ class DirtyTest < ActiveRecord::TestCase
assert_not_predicate person, :changed?
end
unless current_adapter?(:SQLite3Adapter)
test "partial insert off with unchanged default function attribute" do
with_partial_writes Aircraft, false do
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")
end
end
end
private
def with_partial_writes(klass, on = true)