Fix failing spec

The Report class created its own BackupStore without a stubbed S3 client
This commit is contained in:
Gerhard Schlager 2019-02-08 21:38:10 +01:00
parent b75a3e391a
commit 84a10f8212

View File

@ -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