Commit e90523a9 authored by James Lopez's avatar James Lopez

Merge branch 'issue#220040-fix-rails-savebang-ci-modules' into 'master'

Fix Rails/SaveBang Rubocop offenses for ci models

See merge request gitlab-org/gitlab!58104
parents 8ff7d298 60b99cf0
...@@ -166,8 +166,6 @@ Rails/SaveBang: ...@@ -166,8 +166,6 @@ Rails/SaveBang:
- 'spec/lib/gitlab/auth_spec.rb' - 'spec/lib/gitlab/auth_spec.rb'
- 'spec/lib/gitlab/authorized_keys_spec.rb' - 'spec/lib/gitlab/authorized_keys_spec.rb'
- 'spec/lib/gitlab/bitbucket_server_import/importer_spec.rb' - 'spec/lib/gitlab/bitbucket_server_import/importer_spec.rb'
- 'spec/lib/gitlab/ci/ansi2json/style_spec.rb'
- 'spec/lib/gitlab/ci/status/build/common_spec.rb'
- 'spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb' - 'spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb'
- 'spec/lib/gitlab/database/custom_structure_spec.rb' - 'spec/lib/gitlab/database/custom_structure_spec.rb'
- 'spec/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers_spec.rb' - 'spec/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers_spec.rb'
......
---
title: Fix Rails/SaveBang Rubocop offenses for ci models
merge_request: 58104
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
...@@ -160,9 +160,9 @@ RSpec.describe Gitlab::Ci::Ansi2json::Style do ...@@ -160,9 +160,9 @@ RSpec.describe Gitlab::Ci::Ansi2json::Style do
with_them do with_them do
it 'change the style' do it 'change the style' do
style = described_class.new style = described_class.new
style.update(initial_state) style.update(initial_state) # rubocop:disable Rails/SaveBang
style.update(ansi_commands) style.update(ansi_commands) # rubocop:disable Rails/SaveBang
expect(style.to_s).to eq(result) expect(style.to_s).to eq(result)
end end
......
...@@ -28,7 +28,7 @@ RSpec.describe Gitlab::Ci::Status::Build::Common do ...@@ -28,7 +28,7 @@ RSpec.describe Gitlab::Ci::Status::Build::Common do
context 'when user does not have access to read build' do context 'when user does not have access to read build' do
before do before do
project.update(public_builds: false) project.update!(public_builds: false)
end end
it { is_expected.not_to have_details } it { is_expected.not_to have_details }
......
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