add expert factory
This commit is contained in:
parent
da067597ab
commit
efbff0f2e0
2 changed files with 15 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
RSpec.describe Expert, type: :model do
|
||||
describe 'an expert could be add to a procedure' do
|
||||
let(:procedure) { create(:procedure) }
|
||||
let(:expert) { Expert.create }
|
||||
let(:expert) { create(:expert) }
|
||||
|
||||
before do
|
||||
procedure.experts << expert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue