Browse Source

style: lint

pull/987/head
Sam Seed 4 years ago
parent
commit
aa24e3a722
  1. 8
      spec/models/location_spec.rb

8
spec/models/location_spec.rb

@ -119,6 +119,10 @@ RSpec.describe Location, type: :model do
Timecop.freeze(2022, 6, 7) Timecop.freeze(2022, 6, 7)
end end
after do
Timecop.unfreeze
end
context "when location is missing some mandatory information" do context "when location is missing some mandatory information" do
it "returns incomplete when the postcode is missing" do it "returns incomplete when the postcode is missing" do
location.postcode = nil location.postcode = nil
@ -147,10 +151,6 @@ RSpec.describe Location, type: :model do
end end
end end
after do
Timecop.unfreeze
end
context "when there have not been any previous deactivations" do context "when there have not been any previous deactivations" do
it "returns active if the location has no deactivation records" do it "returns active if the location has no deactivation records" do
expect(location.status).to eq(:active) expect(location.status).to eq(:active)

Loading…
Cancel
Save