Add test param to spec
This commit is contained in:
parent
9874ffac19
commit
6e80598b35
|
@ -6,7 +6,9 @@ describe Moderation::QuestionsController, type: :controller do
|
||||||
let(:user) { FactoryBot.create :user, roles: ["moderator"] }
|
let(:user) { FactoryBot.create :user, roles: ["moderator"] }
|
||||||
|
|
||||||
describe "#index" do
|
describe "#index" do
|
||||||
subject { get :index }
|
subject { get :index, params: params }
|
||||||
|
|
||||||
|
let(:params) { { author_identifier: "test" } }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
sign_in user
|
sign_in user
|
||||||
|
|
Loading…
Reference in New Issue