mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
DEV: Use response.parsed_body
in specs (#9615)
Most of it was autofixed with rubocop-discourse 2.1.1.
This commit is contained in:
@ -6,7 +6,7 @@ module IntegrationHelpers
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
body = JSON.parse(response.body)
|
||||
body = response.parsed_body
|
||||
honeypot = body["value"]
|
||||
challenge = body["challenge"]
|
||||
user = Fabricate.build(:user)
|
||||
@ -21,7 +21,7 @@ module IntegrationHelpers
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
body = JSON.parse(response.body)
|
||||
body = response.parsed_body
|
||||
User.find(body["user_id"])
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user