Fix failing spec

approved

#1

Fix failing spec

The Report class created its own BackupStore without a stubbed S3 client

diff --git a/spec/lib/backup_restore/shared_examples_for_backup_store.rb b/spec/lib/backup_restore/shared_examples_for_backup_store.rb
index 0f13923..07ed5d4 100644
--- a/spec/lib/backup_restore/shared_examples_for_backup_store.rb
+++ b/spec/lib/backup_restore/shared_examples_for_backup_store.rb
@@ -81,9 +81,11 @@ shared_examples "backup store" do
     end
 
     describe "#reset_cache" do
-      skip "resets the storage stats report" do
+      it "resets the storage stats report" do
+        Report.stubs(:report_storage_stats)
         report_type = "storage_stats"
         report = Report.find(report_type)
+
         Report.cache(report, 35.minutes)
         expect(Report.find_cached(report_type)).to be_present

GitHub sha: 84a10f82


Approved #2