mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 00:06:04 +01:00
Minor cleanup in AnnouncementController
This commit is contained in:
parent
16ade832ca
commit
6e605758a6
1 changed files with 1 additions and 2 deletions
|
@ -3,8 +3,7 @@
|
|||
require "rails_helper"
|
||||
|
||||
describe AnnouncementController, type: :controller do
|
||||
let(:user) { FactoryBot.create(:user) }
|
||||
before(:each) { user.add_role :administrator }
|
||||
let(:user) { FactoryBot.create(:user, roles: [:administrator]) }
|
||||
|
||||
describe "#index" do
|
||||
subject { get :index }
|
||||
|
|
Loading…
Reference in a new issue