Use create for all users in specs where necessary
This commit is contained in:

committed by
Sebastian Serth

parent
9c9f45ff77
commit
521626275f
@ -89,8 +89,8 @@ describe InternalUser do
|
||||
|
||||
describe '#teacher?' do
|
||||
it 'is only true for teachers' do
|
||||
expect(build(:admin).teacher?).to be false
|
||||
expect(build(:teacher).teacher?).to be true
|
||||
expect(create(:admin).teacher?).to be false
|
||||
expect(create(:teacher).teacher?).to be true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user