factories: cleanup Administrateur, Instructeur and Expert factories
This changes: - avoids relying on application code to create mock objects, - allows to build Administrateur or Instructeurs without saving them.
This commit is contained in:
parent
0ff95df221
commit
a2b91c8ec6
9 changed files with 17 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
describe Administrateur, type: :model do
|
||||
let(:administration) { create(:administration) }
|
||||
|
||||
describe 'assocations' do
|
||||
describe 'associations' do
|
||||
it { is_expected.to have_and_belong_to_many(:instructeurs) }
|
||||
it { is_expected.to have_many(:procedures) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue