diff --git a/spec/requests/badges_controller_spec.rb b/spec/requests/badges_controller_spec.rb index 16abe666863..0a4971d180b 100644 --- a/spec/requests/badges_controller_spec.rb +++ b/spec/requests/badges_controller_spec.rb @@ -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