DEV: Make badge test resilient to disabled badges

This can happen when plugins seed disabled badges in the database
This commit is contained in:
David Taylor
2020-02-11 18:01:33 +00:00
parent b0f72ca1d6
commit e32833cf1a

View File

@@ -16,7 +16,7 @@ describe BadgesController do
expect(response.status).to eq(200)
parsed = JSON.parse(response.body)
expect(parsed["badges"].length).to eq(Badge.count)
expect(parsed["badges"].length).to eq(Badge.enabled.count)
end
end