mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
Fix tests
This commit is contained in:
parent
c592954400
commit
cadbc3e47b
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ RSpec.describe Users::SessionsController, type: :controller do
|
|||
allow_any_instance_of(User).to receive(:valid_otp?).and_return(nil)
|
||||
action
|
||||
|
||||
expect(flash[:alert]).to eq('One Time Password is not correct.')
|
||||
expect(flash[:alert]).to eq(I18n.t('devise.sessions.2fa.error_message'))
|
||||
end
|
||||
|
||||
it 'does not set current user' do
|
||||
|
|
Loading…
Reference in a new issue