Commit 4bfd3aa7 authored by Kerri Miller's avatar Kerri Miller

Merge branch 'issue_220040_1' into 'master'

Fix Rails/SaveBang offenses

See merge request gitlab-org/gitlab!75894
parents 90a57559 513b0e1d
---
Rails/SaveBang:
Exclude:
- ee/spec/initializers/fog_google_https_private_urls_spec.rb
- ee/spec/lib/analytics/merge_request_metrics_calculator_spec.rb
- ee/spec/lib/gitlab/auth/ldap/access_spec.rb
- ee/spec/lib/gitlab/auth/o_auth/user_spec.rb
......
......@@ -13,8 +13,8 @@ RSpec.describe 'Fog::Storage::GoogleXML::File' do
end
let(:file) do
directory = storage.directories.create(key: 'data')
directory.files.create(
directory = storage.directories.create(key: 'data') # rubocop:disable Rails/SaveBang
directory.files.create( # rubocop:disable Rails/SaveBang
body: 'Hello World!',
key: 'hello_world.txt'
)
......
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