mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +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:
@ -316,7 +316,7 @@ describe StaticController do
|
||||
it "redirects to the root" do
|
||||
post "/login.json", params: { redirect: ["/foo"] }
|
||||
expect(response.status).to eq(400)
|
||||
json = JSON.parse(response.body)
|
||||
json = response.parsed_body
|
||||
expect(json["errors"]).to be_present
|
||||
expect(json["errors"]).to include(
|
||||
I18n.t("invalid_params", message: "redirect")
|
||||
|
Reference in New Issue
Block a user