diff --git a/spec/models/location_spec.rb b/spec/models/location_spec.rb index 24f0f75fb..01185249a 100644 --- a/spec/models/location_spec.rb +++ b/spec/models/location_spec.rb @@ -122,7 +122,7 @@ RSpec.describe Location, type: :model do after do Timecop.unfreeze end - + context "when there have not been any previous deactivations" do it "returns active if the location has no deactivation records" do expect(location.status).to eq(:active) diff --git a/spec/requests/locations_controller_spec.rb b/spec/requests/locations_controller_spec.rb index 0d62c1af6..605c357b7 100644 --- a/spec/requests/locations_controller_spec.rb +++ b/spec/requests/locations_controller_spec.rb @@ -1251,7 +1251,7 @@ RSpec.describe LocationsController, type: :request do after do Timecop.unfreeze - end + end context "with default date" do let(:params) { { location: { deactivation_date_type: "default", deactivation_date: } } } @@ -1284,7 +1284,7 @@ RSpec.describe LocationsController, type: :request do after do Timecop.unfreeze - end + end it "updates existing location with valid deactivation date and renders location page" do follow_redirect! @@ -1412,7 +1412,7 @@ RSpec.describe LocationsController, type: :request do after do Timecop.unfreeze - end + end context "with active location" do let(:add_deactivations) {} diff --git a/spec/requests/schemes_controller_spec.rb b/spec/requests/schemes_controller_spec.rb index b06675d17..59d044050 100644 --- a/spec/requests/schemes_controller_spec.rb +++ b/spec/requests/schemes_controller_spec.rb @@ -258,7 +258,7 @@ RSpec.describe SchemesController, type: :request do after do Timecop.unfreeze - end + end context "with active scheme" do let(:add_deactivations) {} @@ -1782,7 +1782,7 @@ RSpec.describe SchemesController, type: :request do after do Timecop.unfreeze - end + end context "with default date" do let(:params) { { scheme: { deactivation_date_type: "default", deactivation_date: } } } @@ -1815,7 +1815,7 @@ RSpec.describe SchemesController, type: :request do after do Timecop.unfreeze - end + end it "updates existing scheme with valid deactivation date and renders scheme page" do follow_redirect!