From e76a818fde46a5f6de3422d2b904dd7c5ed02e7b Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Fri, 17 Mar 2017 22:10:09 +0000 Subject: [PATCH] Update PI spec --- spec/models/product_importer_spec.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/models/product_importer_spec.rb b/spec/models/product_importer_spec.rb index e51bf91cea..5d8aef2ce5 100644 --- a/spec/models/product_importer_spec.rb +++ b/spec/models/product_importer_spec.rb @@ -22,12 +22,9 @@ describe ProductImporter do File.write('/tmp/test-m.csv', csv_data) file = File.new('/tmp/test-m.csv') - importer = ProductImporter.new(file, permissions.editable_enterprises) + importer = ProductImporter.new(file, admin) - expect(importer.valid_count).to eq(2) - expect(importer.invalid_count).to eq(0) + expect(importer.item_count).to eq(2) end end - - # Test handling of filetypes end