mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:37:02 +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:
@ -16,7 +16,7 @@ describe Admin::PluginsController do
|
||||
it 'should return JSON' do
|
||||
get "/admin/plugins.json"
|
||||
expect(response.status).to eq(200)
|
||||
expect(::JSON.parse(response.body).has_key?('plugins')).to eq(true)
|
||||
expect(response.parsed_body.has_key?('plugins')).to eq(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user