mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
DEV: Assert for 200 response code to avoid changing magic helper in the future.
This commit is contained in:
parent
3533bdb83f
commit
3a8f69c3d2
57 changed files with 498 additions and 498 deletions
|
@ -10,7 +10,7 @@ describe ExportCsvController do
|
|||
describe ".export_entity" do
|
||||
it "enqueues export job" do
|
||||
post "/export_csv/export_entity.json", params: { entity: "user_archive" }
|
||||
expect(response).to be_success
|
||||
expect(response.status).to eq(200)
|
||||
expect(Jobs::ExportCsvFile.jobs.size).to eq(1)
|
||||
|
||||
job_data = Jobs::ExportCsvFile.jobs.first["args"].first
|
||||
|
@ -40,7 +40,7 @@ describe ExportCsvController do
|
|||
describe ".export_entity" do
|
||||
it "enqueues export job" do
|
||||
post "/export_csv/export_entity.json", params: { entity: "staff_action" }
|
||||
expect(response).to be_success
|
||||
expect(response.status).to eq(200)
|
||||
expect(Jobs::ExportCsvFile.jobs.size).to eq(1)
|
||||
|
||||
job_data = Jobs::ExportCsvFile.jobs.first["args"].first
|
||||
|
@ -51,7 +51,7 @@ describe ExportCsvController do
|
|||
it "should not rate limit export for staff" do
|
||||
UserExport.create(file_name: "screened-email-150116-010145", user_id: admin.id)
|
||||
post "/export_csv/export_entity.json", params: { entity: "staff_action" }
|
||||
expect(response).to be_success
|
||||
expect(response.status).to eq(200)
|
||||
expect(Jobs::ExportCsvFile.jobs.size).to eq(1)
|
||||
|
||||
job_data = Jobs::ExportCsvFile.jobs.first["args"].first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue