Use raw status code on have_http_status (#7214)
This commit is contained in:
committed by
Eugen Rochko
parent
bfe26ef67b
commit
d10447c3a8
@ -20,14 +20,14 @@ RSpec.describe Admin::ConfirmationsController, type: :controller do
|
||||
it 'raises an error when there is no account' do
|
||||
post :create, params: { account_id: 'fake' }
|
||||
|
||||
expect(response).to have_http_status(:missing)
|
||||
expect(response).to have_http_status(404)
|
||||
end
|
||||
|
||||
it 'raises an error when there is no user' do
|
||||
account = Fabricate(:account, user: nil)
|
||||
post :create, params: { account_id: account.id }
|
||||
|
||||
expect(response).to have_http_status(:missing)
|
||||
expect(response).to have_http_status(404)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user