mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Adapt importer error to new ruby version 2.7
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user