mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -43,7 +43,7 @@ describe WizardController do
|
||||
sign_in(Fabricate(:admin))
|
||||
get "/wizard.json"
|
||||
expect(response.status).to eq(200)
|
||||
expect(::JSON.parse(response.body).has_key?('wizard')).to eq(true)
|
||||
expect(response.parsed_body.has_key?('wizard')).to eq(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user