diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index 3d45edfa..6ca9c5e5 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -22,7 +22,6 @@ class StaticController < ApplicationController .where(permanently_banned: false) .where(banned_until: nil) .where('answered_count > 0') - .where('asked_count > 0') .count @questions = Question.count diff --git a/spec/controllers/static_controller_spec.rb b/spec/controllers/static_controller_spec.rb index e7d7036e..3c0003ca 100644 --- a/spec/controllers/static_controller_spec.rb +++ b/spec/controllers/static_controller_spec.rb @@ -7,7 +7,7 @@ describe StaticController, type: :controller do subject { get :about } before(:each) { - FactoryBot.create(:user, { confirmed_at: Time.now, answered_count: 1, asked_count: 1 }) + FactoryBot.create(:user, { confirmed_at: Time.now, answered_count: 1 }) FactoryBot.create(:user, { permanently_banned: true }) FactoryBot.create(:user, { banned_until: Time.now + 10.days }) FactoryBot.create(:user, { confirmed_at: Time.now })