[#2579] Validate columns on ProcedurePresentation model
This commit is contained in:
parent
103f466cb8
commit
8bb08a1b8b
4 changed files with 75 additions and 6 deletions
|
@ -7,7 +7,8 @@ describe AssignTo, type: :model do
|
|||
end
|
||||
|
||||
context "with a procedure_presentation" do
|
||||
let!(:assign_to) { AssignTo.create }
|
||||
let(:procedure) { create(:procedure) }
|
||||
let!(:assign_to) { AssignTo.create(procedure: procedure) }
|
||||
let!(:procedure_presentation) { ProcedurePresentation.create(assign_to: assign_to) }
|
||||
|
||||
it { expect(assign_to.procedure_presentation_or_default).to eq(procedure_presentation) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue