mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Assert for 200 response code to avoid changing magic helper in the future.
This commit is contained in:
@ -2,7 +2,7 @@ module IntegrationHelpers
|
||||
def create_user
|
||||
get "/u/hp.json"
|
||||
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
body = JSON.parse(response.body)
|
||||
honeypot = body["value"]
|
||||
@ -17,7 +17,7 @@ module IntegrationHelpers
|
||||
challenge: challenge.reverse
|
||||
}
|
||||
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
body = JSON.parse(response.body)
|
||||
User.find(body["user_id"])
|
||||
|
Reference in New Issue
Block a user