mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 13:17:52 +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:
@ -108,7 +108,7 @@ RSpec.describe PostActionsController do
|
||||
|
||||
expect(response.status).to eq(422)
|
||||
|
||||
expect(JSON.parse(response.body)["errors"].first).to eq(I18n.t(
|
||||
expect(response.parsed_body["errors"].first).to eq(I18n.t(
|
||||
:not_accepting_pms, username: user2.username
|
||||
))
|
||||
end
|
||||
|
Reference in New Issue
Block a user