From 6ebc94ee5f303be64e6f38a01a16ec64c392a73a Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Thu, 18 May 2023 12:19:24 +0100 Subject: [PATCH] fix test --- spec/services/bulk_upload/sales/year2023/row_parser_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/bulk_upload/sales/year2023/row_parser_spec.rb b/spec/services/bulk_upload/sales/year2023/row_parser_spec.rb index fc04dfbcb..c63e83a12 100644 --- a/spec/services/bulk_upload/sales/year2023/row_parser_spec.rb +++ b/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