mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 22:49:07 +01:00
20 lines
423 B
Ruby
20 lines
423 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
|
|
describe Moderation::ReportsController, type: :controller do
|
|
let(:user) { FactoryBot.create :user, roles: ["moderator"] }
|
|
|
|
describe "#index" do
|
|
subject { get :index }
|
|
|
|
before do
|
|
sign_in user
|
|
end
|
|
|
|
it "renders the user/questions template" do
|
|
subject
|
|
expect(response).to render_template("moderation/reports/index")
|
|
end
|
|
end
|
|
end
|