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

committed by
Sebastian Serth

parent
9c9f45ff77
commit
521626275f
@ -11,7 +11,7 @@ describe Admin::DashboardPolicy do
|
||||
end
|
||||
|
||||
it 'does not grant access to teachers' do
|
||||
expect(policy).not_to permit(build(:teacher), :dashboard)
|
||||
expect(policy).not_to permit(create(:teacher), :dashboard)
|
||||
end
|
||||
|
||||
it 'does not grant access to external users' do
|
||||
|
Reference in New Issue
Block a user