Commit c11b675f authored by Kerri Miller's avatar Kerri Miller

Merge branch 'issue#220040-fix-rails-savebang-banzai-module' into 'master'

Fix Rails/SaveBang Rubocop offenses for banzai modules

See merge request gitlab-org/gitlab!58108
parents 8d8fc7dd 5813febb
...@@ -232,8 +232,6 @@ Rails/SaveBang: ...@@ -232,8 +232,6 @@ Rails/SaveBang:
- 'spec/initializers/fog_google_https_private_urls_spec.rb' - 'spec/initializers/fog_google_https_private_urls_spec.rb'
- 'spec/lib/after_commit_queue_spec.rb' - 'spec/lib/after_commit_queue_spec.rb'
- 'spec/lib/backup/manager_spec.rb' - 'spec/lib/backup/manager_spec.rb'
- 'spec/lib/banzai/reference_parser/external_issue_parser_spec.rb'
- 'spec/lib/banzai/reference_redactor_spec.rb'
- 'spec/lib/gitlab/alerting/alert_spec.rb' - 'spec/lib/gitlab/alerting/alert_spec.rb'
- 'spec/lib/gitlab/analytics/cycle_analytics/records_fetcher_spec.rb' - 'spec/lib/gitlab/analytics/cycle_analytics/records_fetcher_spec.rb'
- 'spec/lib/gitlab/auth/ldap/user_spec.rb' - 'spec/lib/gitlab/auth/ldap/user_spec.rb'
......
---
title: Fix Rails/SaveBang Rubocop offenses for banzai modules
merge_request: 58108
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
...@@ -21,7 +21,7 @@ RSpec.describe Banzai::ReferenceParser::ExternalIssueParser do ...@@ -21,7 +21,7 @@ RSpec.describe Banzai::ReferenceParser::ExternalIssueParser do
levels.each do |level| levels.each do |level|
it "creates reference when the feature is #{level}" do it "creates reference when the feature is #{level}" do
project.project_feature.update(issues_access_level: level) project.project_feature.update!(issues_access_level: level)
visible_nodes = subject.nodes_visible_to_user(user, [link]) visible_nodes = subject.nodes_visible_to_user(user, [link])
......
...@@ -64,7 +64,7 @@ RSpec.describe Banzai::ReferenceRedactor do ...@@ -64,7 +64,7 @@ RSpec.describe Banzai::ReferenceRedactor do
let(:redactor) { described_class.new(Banzai::RenderContext.new(project, user)) } let(:redactor) { described_class.new(Banzai::RenderContext.new(project, user)) }
before do before do
project.update(pending_delete: true) project.update!(pending_delete: true)
end end
it 'redacts an issue attached' do it 'redacts an issue attached' 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