From aa24e3a722b2eac4b0227542cb72f00b2845d3e2 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Thu, 17 Nov 2022 16:38:24 +0000 Subject: [PATCH] style: lint --- spec/models/location_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/models/location_spec.rb b/spec/models/location_spec.rb index 68c98b020..f12047eff 100644 --- a/spec/models/location_spec.rb +++ b/spec/models/location_spec.rb @@ -119,6 +119,10 @@ RSpec.describe Location, type: :model do Timecop.freeze(2022, 6, 7) end + after do + Timecop.unfreeze + end + context "when location is missing some mandatory information" do it "returns incomplete when the postcode is missing" do location.postcode = nil @@ -147,10 +151,6 @@ RSpec.describe Location, type: :model do end end - 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)