FEATURE: Create new helper method 'Discourse.stats' (#7388)

This commit is contained in:
Vinoth Kannan
2019-04-17 12:45:04 +05:30
committed by GitHub
parent ba6d4b2a8d
commit a8f410a9c5
3 changed files with 6 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ describe "S3Inventory" do
end
expect(output).to eq("#{upload.url}\n1 of 4 uploads are missing\n")
expect($redis.get("missing_s3_uploads")).to eq("1")
expect(Discourse.stats.get("missing_s3_uploads")).to eq(1)
end
it "should backfill etags to uploads table correctly" do