Browse Source

refactor: linting

pull/1378/head
natdeanlewissoftwire 3 years ago
parent
commit
83aa936cb3
  1. 5
      spec/models/lettings_log_spec.rb

5
spec/models/lettings_log_spec.rb

@ -2048,9 +2048,11 @@ RSpec.describe LettingsLog do
before do before do
Timecop.freeze(Time.zone.local(2022, 4, 2)) Timecop.freeze(Time.zone.local(2022, 4, 2))
end end
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
let(:scheme) { FactoryBot.create(:scheme) } let(:scheme) { FactoryBot.create(:scheme) }
let!(:supported_housing_lettings_log) do let!(:supported_housing_lettings_log) do
described_class.create!({ described_class.create!({
@ -2066,8 +2068,6 @@ RSpec.describe LettingsLog do
}) })
end end
let(:location) { FactoryBot.create(:location, scheme:) } let(:location) { FactoryBot.create(:location, scheme:) }
it "correctly infers and saves the renewal date" do it "correctly infers and saves the renewal date" do
@ -2835,7 +2835,6 @@ RSpec.describe LettingsLog do
Timecop.unfreeze Timecop.unfreeze
end end
context "with values represented as human readable labels" do context "with values represented as human readable labels" do
before do before do
Timecop.freeze(Time.utc(2022, 6, 5)) Timecop.freeze(Time.utc(2022, 6, 5))

Loading…
Cancel
Save