mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Make badge test resilient to disabled badges
This can happen when plugins seed disabled badges in the database
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user