Commit 60b99cf0 authored by Huzaifa Iftikhar's avatar Huzaifa Iftikhar Committed by James Lopez

Fix Rails/SaveBang Rubocop offenses for ci models

parent 20a537c8
......@@ -166,8 +166,6 @@ Rails/SaveBang:
- 'spec/lib/gitlab/auth_spec.rb'
- 'spec/lib/gitlab/authorized_keys_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/database/custom_structure_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
with_them do
it 'change the style' do
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)
end
......
......@@ -28,7 +28,7 @@ RSpec.describe Gitlab::Ci::Status::Build::Common do
context 'when user does not have access to read build' do
before do
project.update(public_builds: false)
project.update!(public_builds: false)
end
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