Minor cleanup in AnnouncementController

This commit is contained in:
Karina Kwiatek 2020-04-19 22:59:57 +01:00
parent 16ade832ca
commit 6e605758a6
1 changed files with 1 additions and 2 deletions

View File

@ -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 }