Browse Source

feat: test

pull/2311/head
natdeanlewissoftwire 2 years ago
parent
commit
ab7bd0a7c0
  1. 2
      spec/services/bulk_upload/sales/year2024/row_parser_spec.rb

2
spec/services/bulk_upload/sales/year2024/row_parser_spec.rb

@ -1042,8 +1042,6 @@ RSpec.describe BulkUpload::Sales::Year2024::RowParser do
context "when validate_discounted_ownership_value is triggered" do
let(:attributes) { setup_section_params.merge(field_114: 100, field_123: 100, field_8: 2, field_10: 9, field_117: 2, field_116: 10) }
# value = 100, deposit = 100, mortgage = 100, discount = 10%
it "only adds errors to the discounted ownership field" do
expect(parser.errors[:field_103]).to be_empty
expect(parser.errors[:field_117]).to include("The mortgage, deposit, and grant when added together is £100.00, and the purchase purchase price times by the discount is £90.00. These figures should be the same")

Loading…
Cancel
Save