0
0
Fork 0

Use raw status code on have_http_status (#7214)

This commit is contained in:
Yamagishi Kazutoshi 2018-04-22 04:35:07 +09:00 committed by Eugen Rochko
parent bfe26ef67b
commit d10447c3a8
87 changed files with 176 additions and 176 deletions

View file

@ -51,7 +51,7 @@ describe ApplicationController, type: :controller do
routes.draw { get 'success' => 'anonymous#success' }
allow(Rails.env).to receive(:production?).and_return(false)
get 'success'
expect(response).to have_http_status(:success)
expect(response).to have_http_status(200)
end
it "forces ssl if Rails.env.production? is 'true'" do
@ -145,13 +145,13 @@ describe ApplicationController, type: :controller do
it 'does nothing if not signed in' do
get 'success'
expect(response).to have_http_status(:success)
expect(response).to have_http_status(200)
end
it 'does nothing if user who signed in is not suspended' do
sign_in(Fabricate(:user, account: Fabricate(:account, suspended: false)))
get 'success'
expect(response).to have_http_status(:success)
expect(response).to have_http_status(200)
end
it 'returns http 403 if user who signed in is suspended' do