mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 23:56:03 +01:00
22 lines
496 B
Ruby
22 lines
496 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
|
|
describe Moderation::QuestionsController, type: :controller do
|
|
let(:user) { FactoryBot.create :user, roles: ["moderator"] }
|
|
|
|
describe "#show" do
|
|
subject { get :show, params: }
|
|
|
|
let(:params) { { author_identifier: "test" } }
|
|
|
|
before do
|
|
sign_in user
|
|
end
|
|
|
|
it "renders the moderation/questions/show template" do
|
|
subject
|
|
expect(response).to render_template("moderation/questions/show")
|
|
end
|
|
end
|
|
end
|