mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:01:14 +08:00
DEV: Assert for 200 response code to avoid changing magic helper in the future.
This commit is contained in:
@ -21,7 +21,7 @@ RSpec.describe Admin::BackupsController do
|
||||
|
||||
post "/admin/backups/rollback.json"
|
||||
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
end
|
||||
|
||||
it 'should not allow rollback via a GET request' do
|
||||
@ -36,7 +36,7 @@ RSpec.describe Admin::BackupsController do
|
||||
|
||||
delete "/admin/backups/cancel.json"
|
||||
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
end
|
||||
|
||||
it 'should not allow cancel via a GET request' do
|
||||
@ -59,7 +59,7 @@ RSpec.describe Admin::BackupsController do
|
||||
|
||||
put "/admin/backups/#{backup_filename}.json"
|
||||
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
end
|
||||
|
||||
it "returns 404 when the backup does not exist" do
|
||||
|
Reference in New Issue
Block a user