Browse Source

Update a date on a test

pull/2176/head
Kat 2 years ago
parent
commit
696b184707
  1. 2
      spec/models/validations/sales/financial_validations_spec.rb

2
spec/models/validations/sales/financial_validations_spec.rb

@ -548,7 +548,7 @@ RSpec.describe Validations::Sales::FinancialValidations do
end end
context "when ownership is not discounted" do context "when ownership is not discounted" do
let(:record) { FactoryBot.build(:sales_log, mortgage: 10_000, deposit: 5_000, grant: 3_000, value: 20_000, discount: 10, ownershipsch: 1, saledate: Time.zone.local(2023, 4, 1)) } let(:record) { FactoryBot.build(:sales_log, mortgage: 10_000, deposit: 5_000, grant: 3_000, value: 20_000, discount: 10, ownershipsch: 1, saledate: now) }
it "returns false" do it "returns false" do
financial_validator.validate_discounted_ownership_value(record) financial_validator.validate_discounted_ownership_value(record)

Loading…
Cancel
Save