models: require belong_to associations on individual
This commit is contained in:
parent
afb1c33154
commit
fe8804f208
5 changed files with 6 additions and 5 deletions
|
@ -2,7 +2,7 @@ describe Individual do
|
|||
it { is_expected.to have_db_column(:gender) }
|
||||
it { is_expected.to have_db_column(:nom) }
|
||||
it { is_expected.to have_db_column(:prenom) }
|
||||
it { is_expected.to belong_to(:dossier) }
|
||||
it { is_expected.to belong_to(:dossier).required }
|
||||
|
||||
describe "#save" do
|
||||
let(:individual) { build(:individual) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue