A platform for community discussion. Free, open, simple.
Stop the automatic creation of inventory 'gz' file in fixtures
Vinoth Kannanf7d03b24067e
diff --git a/spec/components/s3_inventory_spec.rb b/spec/components/s3_inventory_spec.rbindex 54b6585b9ef..617101eef4f 100644--- a/spec/components/s3_inventory_spec.rb+++ b/spec/components/s3_inventory_spec.rb@@ -64,6 +64,7 @@ describe "S3Inventory" doupload = Fabricate(:upload, etag: "ETag", created_at: 1.days.ago)Fabricate(:upload, etag: "ETag2", created_at: Time.now)+ inventory.expects(:download_inventory_files_to_tmp_directory)inventory.expects(:decompress_inventory_files)inventory.expects(:files).returns([{ key: "Key", filename: "#{csv_filename}.gz" }]).at_least(1)inventory.expects(:last_modified).returns(Time.now)@@ -72,12 +73,13 @@ describe "S3Inventory" doinventory.list_missingend- expect(output).to eq("Downloading inventory file 'Key' to tmp directory...\n#{upload.url}\n1 of 4 uploads are missing\n")+ expect(output).to eq("#{upload.url}\n1 of 4 uploads are missing\n")endit "should backfill etags to uploads table correctly" doFabricate(:upload, url: "//bucket.amazonaws.com/original/0184537a4f419224404d013414e913a4f56018f2.jpg", created_at: 2.days.ago)+ inventory.expects(:download_inventory_files_to_tmp_directory)inventory.expects(:decompress_inventory_files)inventory.expects(:files).returns([{ key: "Key", filename: "#{csv_filename}.gz" }]).at_least(1)