From 5453a1c0fafb74cd8d868f96a869f3046b38db2a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 4 Jun 2021 22:32:41 +0100 Subject: [PATCH] Adapt importer error to new ruby version 2.7 --- spec/models/product_importer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/product_importer_spec.rb b/spec/models/product_importer_spec.rb index be38038265..57354144e8 100644 --- a/spec/models/product_importer_spec.rb +++ b/spec/models/product_importer_spec.rb @@ -181,7 +181,7 @@ describe ProductImport::ProductImporter do # an unquoted \n will create a non valid line which will fail entry validation hence why we are only testing with \r it "should raise an unquoted field error if data include unquoted field with \r character" do expect(importer.errors.messages.values).to include( - [I18n.t('admin.product_import.model.malformed_csv', error_message: "Unquoted fields do not allow \\r or \\n (line 3).")] + [I18n.t('admin.product_import.model.malformed_csv', error_message: "Unquoted fields do not allow new line <\"\\r\"> in line 3.")] ) end end