retrospring/spec/controllers/moderation/reports_controller_spec.rb
Andreas Nedbal 45f288ef4f Apply review suggestions from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-08-21 01:13:10 +02:00

20 lines
433 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 moderation/reports/index template" do
subject
expect(response).to render_template("moderation/reports/index")
end
end
end