Merge pull request #8276 from demarches-simplifiees/fix-prefilled-default

fix(schema): champs.prefilled default
This commit is contained in:
Paul Chavard 2022-12-14 16:52:18 +01:00 committed by GitHub
commit 47e03a1785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ ActiveRecord::Schema.define(version: 2022_12_05_144624) do
t.string "external_id"
t.string "fetch_external_data_exceptions", array: true
t.bigint "parent_id"
t.boolean "prefilled", default: false
t.boolean "prefilled"
t.boolean "private", default: false, null: false
t.datetime "rebased_at"
t.integer "row"

View file

@ -50,7 +50,7 @@ RSpec.describe DossierPrefillableConcern do
end
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