mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Assert for 200 response code to avoid changing magic helper in the future.
This commit is contained in:
@ -122,7 +122,7 @@ describe UploadsController do
|
||||
for_private_message: "true",
|
||||
}
|
||||
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
id = JSON.parse(response.body)["id"]
|
||||
expect(id).to be_present
|
||||
end
|
||||
@ -137,7 +137,7 @@ describe UploadsController do
|
||||
type: "composer",
|
||||
}
|
||||
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
data = JSON.parse(response.body)
|
||||
expect(data["id"]).to be_present
|
||||
end
|
||||
|
Reference in New Issue
Block a user