DEV: Make badge test resilient to disabled badges
This can happen when plugins seed disabled badges in the database
This commit is contained in:
parent
b0f72ca1d6
commit
e32833cf1a
|
@ -16,7 +16,7 @@ describe BadgesController do
|
||||||
|
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
parsed = JSON.parse(response.body)
|
parsed = JSON.parse(response.body)
|
||||||
expect(parsed["badges"].length).to eq(Badge.count)
|
expect(parsed["badges"].length).to eq(Badge.enabled.count)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue