This commit is contained in:
Karol
2020-10-29 18:22:33 +01:00
parent 517886ea0b
commit 835b70b000

View File

@ -93,7 +93,7 @@ let(:exercise) { FactoryBot.build(:dummy, public: true) }
context 'when user has codeharbor_link' do context 'when user has codeharbor_link' do
before { user.codeharbor_link = FactoryBot.build(:codeharbor_link) } before { user.codeharbor_link = FactoryBot.build(:codeharbor_link) }
it 'does not grants access' do it 'does not grant access' do
expect(subject).not_to permit(user, exercise) expect(subject).not_to permit(user, exercise)
end end
end end