fix schema about prefilled default
This commit is contained in:
parent
ba34b73437
commit
4e1dff0dce
2 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ ActiveRecord::Schema.define(version: 2022_12_05_144624) do
|
||||||
t.string "external_id"
|
t.string "external_id"
|
||||||
t.string "fetch_external_data_exceptions", array: true
|
t.string "fetch_external_data_exceptions", array: true
|
||||||
t.bigint "parent_id"
|
t.bigint "parent_id"
|
||||||
t.boolean "prefilled", default: false
|
t.boolean "prefilled"
|
||||||
t.boolean "private", default: false, null: false
|
t.boolean "private", default: false, null: false
|
||||||
t.datetime "rebased_at"
|
t.datetime "rebased_at"
|
||||||
t.integer "row"
|
t.integer "row"
|
||||||
|
|
|
@ -50,7 +50,7 @@ RSpec.describe DossierPrefillableConcern do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "still marks it as prefilled" do
|
it "still marks it as prefilled" do
|
||||||
expect { fill }.to change { dossier.champs_public.first.prefilled }.from(false).to(true)
|
expect { fill }.to change { dossier.champs_public.first.prefilled }.from(nil).to(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue