Commit 9aaeefcd authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Refactor boards controller spec with SaveBang Cop

parent c0df5956
......@@ -738,8 +738,6 @@ Style/SymbolProc:
# Configuration parameters: AllowImplicitReturn, AllowedReceivers.
Rails/SaveBang:
Exclude:
- 'ee/spec/controllers/boards/issues_controller_spec.rb'
- 'ee/spec/controllers/boards/lists_controller_spec.rb'
- 'ee/spec/controllers/ee/sent_notifications_controller_spec.rb'
- 'ee/spec/controllers/groups/epic_issues_controller_spec.rb'
- 'ee/spec/controllers/groups/epic_links_controller_spec.rb'
......
---
title: Refactor issues controller spec to fix SaveBang Cop
merge_request: 36582
author: Rajendra Kadam
type: fixed
......@@ -123,7 +123,7 @@ RSpec.describe Boards::IssuesController do
context 'with unauthorized user' do
before do
group.group_member(user).destroy
group.group_member(user).destroy!
end
it 'returns a forbidden 403 response' do
......
......@@ -33,7 +33,7 @@ RSpec.describe Boards::ListsController do
context 'with unauthorized user' do
before do
group.group_member(user).destroy
group.group_member(user).destroy!
end
it 'returns a forbidden 403 response' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment