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
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
1 changed files with 1 additions and 1 deletions

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