Browse Source

Update model/validations tests

pull/2445/head
Kat 2 years ago
parent
commit
1f5ab9bcab
  1. 4
      spec/models/validations/sales/setup_validations_spec.rb

4
spec/models/validations/sales/setup_validations_spec.rb

@ -24,6 +24,10 @@ RSpec.describe Validations::Sales::SetupValidations do
context "when saledate is in the open collection year" do
let(:record) { build(:sales_log, :saledate_today) }
before do
allow(Time).to receive(:now).and_return(Time.zone.local(2023, 1, 10))
end
it "does not add an error" do
setup_validator.validate_saledate_collection_year(record)

Loading…
Cancel
Save