Commit 1b1aa81a authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'rails-save-bang-1' into 'master'

Refactor boards controller spec with SaveBang Cop

See merge request gitlab-org/gitlab!36582
parents 8ed529ae 9aaeefcd
......@@ -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