Browse Source

refactor: linting

CLDC-1917-allow-23/24-form
natdeanlewissoftwire 2 years ago
parent
commit
73a333fb68
  1. 5
      spec/models/validations/date_validations_spec.rb

5
spec/models/validations/date_validations_spec.rb

@ -9,7 +9,7 @@ RSpec.describe Validations::DateValidations do
let(:scheme_no_end_date) { FactoryBot.create(:scheme, end_date: nil) }
describe "tenancy start date" do
context "in 22/23 collection" do
context "when in 22/23 collection" do
context "when in the crossover period" do
before do
allow(Time).to receive(:now).and_return(Time.zone.local(2022, 4, 1))
@ -49,7 +49,7 @@ RSpec.describe Validations::DateValidations do
end
end
context "in 23/24 collection" do
context "when in 23/24 collection" do
context "when in the crossover period" do
before do
allow(Time).to receive(:now).and_return(Time.zone.local(2023, 4, 1))
@ -89,7 +89,6 @@ RSpec.describe Validations::DateValidations do
end
end
it "must be a valid date" do
record.startdate = Time.zone.local(0, 7, 1)
date_validator.validate_startdate(record)

Loading…
Cancel
Save