Commit 0b05699e authored by Abdul Wadood's avatar Abdul Wadood Committed by Michael Kozono

Fix Rails/SaveBang offenses in spec/factories_spec.rb

parent 9965db91
......@@ -156,7 +156,6 @@ Rails/SaveBang:
- 'spec/controllers/boards/issues_controller_spec.rb'
- 'spec/controllers/sent_notifications_controller_spec.rb'
- 'spec/controllers/sessions_controller_spec.rb'
- 'spec/factories_spec.rb'
- 'spec/frontend/fixtures/issues.rb'
- 'spec/frontend/fixtures/merge_requests.rb'
- 'spec/graphql/mutations/merge_requests/set_locked_spec.rb'
......
---
title: Fix Rails/SaveBang rubocop offenses in spec/factories_spec.rb
merge_request: 58102
author: Abdul Wadood @abdulwd
type: fixed
......@@ -44,7 +44,7 @@ RSpec.describe 'factories' do
end
it 'does not raise error when created' do
expect { create(factory.name) }.not_to raise_error
expect { create(factory.name) }.not_to raise_error # rubocop:disable Rails/SaveBang
end
factory.definition.defined_traits.map(&:name).each do |trait_name|
......
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