Autofix Rubocop RSpec/ImplicitSubject (#23721)
This commit is contained in:
@ -15,7 +15,7 @@ describe Settings::SessionsController do
|
||||
let(:id) { session_activation.id }
|
||||
|
||||
it 'destroys session activation' do
|
||||
is_expected.to redirect_to edit_user_registration_path
|
||||
expect(subject).to redirect_to edit_user_registration_path
|
||||
expect(SessionActivation.find_by(id: id)).to be_nil
|
||||
end
|
||||
end
|
||||
@ -24,7 +24,7 @@ describe Settings::SessionsController do
|
||||
let(:id) { session_activation.id + 1000 }
|
||||
|
||||
it 'destroys session activation' do
|
||||
is_expected.to have_http_status 404
|
||||
expect(subject).to have_http_status 404
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user