2022-08-20 12:18:25 -07:00
|
|
|
# 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
|
|
|
|
|
2022-08-20 12:25:01 -07:00
|
|
|
it "renders the moderation/reports/index template" do
|
2022-08-20 12:18:25 -07:00
|
|
|
subject
|
|
|
|
expect(response).to render_template("moderation/reports/index")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|