Minor cleanup in AnnouncementController
This commit is contained in:
parent
16ade832ca
commit
6e605758a6
|
@ -3,8 +3,7 @@
|
||||||
require "rails_helper"
|
require "rails_helper"
|
||||||
|
|
||||||
describe AnnouncementController, type: :controller do
|
describe AnnouncementController, type: :controller do
|
||||||
let(:user) { FactoryBot.create(:user) }
|
let(:user) { FactoryBot.create(:user, roles: [:administrator]) }
|
||||||
before(:each) { user.add_role :administrator }
|
|
||||||
|
|
||||||
describe "#index" do
|
describe "#index" do
|
||||||
subject { get :index }
|
subject { get :index }
|
||||||
|
|
Loading…
Reference in New Issue