From 6e80598b359681ecc5e368307834fee707139668 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 21 Aug 2022 04:20:10 +0200 Subject: [PATCH] Add test param to spec --- spec/controllers/moderation/questions_controller_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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