diff --git a/spec/controllers/moderation/questions_controller_spec.rb b/spec/controllers/moderation/questions_controller_spec.rb index 02e65e7b..4ff7fe0a 100644 --- a/spec/controllers/moderation/questions_controller_spec.rb +++ b/spec/controllers/moderation/questions_controller_spec.rb @@ -6,7 +6,9 @@ describe Moderation::QuestionsController, type: :controller do let(:user) { FactoryBot.create :user, roles: ["moderator"] } describe "#index" do - subject { get :index } + subject { get :index, params: params } + + let(:params) { { author_identifier: "test" } } before do sign_in user