Fix rubocop offenses
This commit is contained in:
@ -47,11 +47,13 @@ describe ApplicationController do
|
|||||||
|
|
||||||
context 'with an admin' do
|
context 'with an admin' do
|
||||||
let(:user) { create(:admin) }
|
let(:user) { create(:admin) }
|
||||||
|
|
||||||
expect_flash_message(:alert, I18n.t('application.not_found'))
|
expect_flash_message(:alert, I18n.t('application.not_found'))
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with a teacher' do
|
context 'with a teacher' do
|
||||||
let(:user) { create(:teacher) }
|
let(:user) { create(:teacher) }
|
||||||
|
|
||||||
expect_flash_message(:alert, I18n.t('application.not_authorized'))
|
expect_flash_message(:alert, I18n.t('application.not_authorized'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user