2022-07-03 12:12:18 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "rails_helper"
|
|
|
|
|
|
|
|
describe Settings::MutesController, type: :controller do
|
|
|
|
describe "#index" do
|
|
|
|
subject { get :index }
|
|
|
|
|
|
|
|
context "user signed in" do
|
2022-07-03 12:32:43 -07:00
|
|
|
let(:user) { FactoryBot.create(:user) }
|
2022-07-03 12:12:18 -07:00
|
|
|
|
2022-07-03 12:32:43 -07:00
|
|
|
before { sign_in user }
|
2022-07-03 12:12:18 -07:00
|
|
|
|
2022-07-03 12:32:43 -07:00
|
|
|
it "shows the index page" do
|
2022-07-03 12:12:18 -07:00
|
|
|
subject
|
2022-07-03 12:32:43 -07:00
|
|
|
expect(response).to have_rendered(:index)
|
2022-07-03 12:12:18 -07:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|