Browse Source

fix test

pull/1633/head
Phil Lee 3 years ago
parent
commit
6ebc94ee5f
  1. 2
      spec/services/bulk_upload/sales/year2023/row_parser_spec.rb

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

@ -620,7 +620,7 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
let(:attributes) { setup_section_params.merge({ field_7: "3", field_12: "100" }) }
it "returns setup error" do
expect(parser.errors.where(:field_12).map(&:message)).to eql(["Enter a valid value for is the buyer a company?"])
expect(parser.errors.where(:field_12).map(&:message)).to include("Enter a valid value for is the buyer a company?")
expect(parser.errors.where(:field_12, category: :setup)).to be_present
end
end

Loading…
Cancel
Save