DEV: Assert for 200 response code to avoid changing magic helper in the future.

This commit is contained in:
Guo Xiang Tan
2018-06-07 16:11:09 +08:00
parent 3533bdb83f
commit 3a8f69c3d2
57 changed files with 498 additions and 498 deletions

View File

@ -8,7 +8,7 @@ describe AboutController do
SiteSetting.login_required = false
get "/about"
expect(response).to be_successful
expect(response.status).to eq(200)
end
it 'should redirect to login page for anonymous user when login_required is true' do
@ -23,7 +23,7 @@ describe AboutController do
sign_in(Fabricate(:user))
get "/about"
expect(response).to be_successful
expect(response.status).to eq(200)
end
end
end