Commit 8b923083 authored by Peter Leitzen's avatar Peter Leitzen

Fix remaining offenses for Rails/SaveBang in epic model spec

parent 758d5a37
...@@ -32,7 +32,6 @@ Rails/SaveBang: ...@@ -32,7 +32,6 @@ Rails/SaveBang:
- 'ee/spec/models/approval_project_rule_spec.rb' - 'ee/spec/models/approval_project_rule_spec.rb'
- 'ee/spec/models/burndown_spec.rb' - 'ee/spec/models/burndown_spec.rb'
- 'ee/spec/models/elasticsearch_indexed_namespace_spec.rb' - 'ee/spec/models/elasticsearch_indexed_namespace_spec.rb'
- 'ee/spec/models/epic_spec.rb'
- 'ee/spec/models/gitlab_subscription_spec.rb' - 'ee/spec/models/gitlab_subscription_spec.rb'
- 'ee/spec/models/issue_spec.rb' - 'ee/spec/models/issue_spec.rb'
- 'ee/spec/models/label_note_spec.rb' - 'ee/spec/models/label_note_spec.rb'
......
...@@ -367,7 +367,7 @@ RSpec.describe Epic do ...@@ -367,7 +367,7 @@ RSpec.describe Epic do
let_it_be(:epic1) { create(:epic, group: group) } let_it_be(:epic1) { create(:epic, group: group) }
before do before do
epic2.update(parent_id: epic1.id) epic2.update!(parent_id: epic1.id)
end end
describe '#ancestors' do describe '#ancestors' do
...@@ -714,8 +714,7 @@ RSpec.describe Epic do ...@@ -714,8 +714,7 @@ RSpec.describe Epic do
end end
before do before do
epic.description = ref_text epic.update!(description: ref_text)
epic.save
end end
it 'creates new system notes for cross references' do it 'creates new system notes for cross references' 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