Add test param to spec

This commit is contained in:
Andreas Nedbal 2022-08-21 04:20:10 +02:00 committed by Andreas Nedbal
parent 9874ffac19
commit 6e80598b35
1 changed files with 3 additions and 1 deletions

View File

@ -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