From 62408ed21e01147fbe8ad53d8bbbb7dbf57b6d0c Mon Sep 17 00:00:00 2001 From: jrgriffiniii <1443986+jrgriffiniii@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:16:25 -0500 Subject: [PATCH] wip --- spec/controllers/works_wizard_controller_spec.rb | 2 -- .../works_wizard_update_additonal_controller_spec.rb | 2 -- 2 files changed, 4 deletions(-) diff --git a/spec/controllers/works_wizard_controller_spec.rb b/spec/controllers/works_wizard_controller_spec.rb index 9f7db068..bbe008f7 100644 --- a/spec/controllers/works_wizard_controller_spec.rb +++ b/spec/controllers/works_wizard_controller_spec.rb @@ -9,7 +9,6 @@ Group.create_defaults user stub_datacite(host: "api.datacite.org", body: datacite_register_body(prefix: "10.34770")) - # allow(ActiveStorage::PurgeJob).to receive(:new).and_call_original stub_request(:get, /#{Regexp.escape('https://example-bucket.s3.amazonaws.com/us_covid_20')}.*\.csv/).to_return(status: 200, body: "", headers: {}) end @@ -46,7 +45,6 @@ post(:update_wizard, params:) expect(response.status).to be 302 expect(response.location).to eq "http://test.host/works/#{work.id}/update-additional" - # expect(ActiveStorage::PurgeJob).not_to have_received(:new) end context "save and stay on page" do diff --git a/spec/controllers/works_wizard_update_additonal_controller_spec.rb b/spec/controllers/works_wizard_update_additonal_controller_spec.rb index 1505030d..d7650fe7 100644 --- a/spec/controllers/works_wizard_update_additonal_controller_spec.rb +++ b/spec/controllers/works_wizard_update_additonal_controller_spec.rb @@ -9,7 +9,6 @@ Group.create_defaults user stub_datacite(host: "api.datacite.org", body: datacite_register_body(prefix: "10.34770")) - # allow(ActiveStorage::PurgeJob).to receive(:new).and_call_original stub_request(:get, /#{Regexp.escape('https://example-bucket.s3.amazonaws.com/us_covid_20')}.*\.csv/).to_return(status: 200, body: "", headers: {}) end @@ -45,7 +44,6 @@ patch(:update_additional_save, params:) expect(response.status).to be 302 expect(response.location).to eq "http://test.host/works/#{work.id}/readme-select" - # expect(ActiveStorage::PurgeJob).not_to have_received(:new) end context "save and stay on page" do