Fix RSpec/LetSetup
cop in auth controller specs (#28464)
This commit is contained in:
parent
e70a65761a
commit
513d35969e
4 changed files with 12 additions and 13 deletions
|
@ -41,8 +41,9 @@ describe Auth::ConfirmationsController do
|
|||
get :show, params: { confirmation_token: 'foobar' }
|
||||
end
|
||||
|
||||
it 'redirects to login' do
|
||||
it 'redirects to login and confirms user' do
|
||||
expect(response).to redirect_to(new_user_session_path)
|
||||
expect(user.reload.confirmed_at).to_not be_nil
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -87,8 +88,9 @@ describe Auth::ConfirmationsController do
|
|||
get :show, params: { confirmation_token: 'foobar' }
|
||||
end
|
||||
|
||||
it 'redirects to login' do
|
||||
it 'redirects to login and confirms email' do
|
||||
expect(response).to redirect_to(new_user_session_path)
|
||||
expect(user.reload.unconfirmed_email).to be_nil
|
||||
end
|
||||
|
||||
it 'does not queue up bootstrapping of home timeline' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue