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:
commit
2bfcd8b025
1 changed files with 20 additions and 22 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue