Commit ebf6b938 authored by Abdul Wadood's avatar Abdul Wadood

Fix Rails/SaveBang offenses in ee/spec/presenters

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/220040.
parent ff346be2
......@@ -99,8 +99,6 @@ Rails/SaveBang:
- 'ee/spec/models/visible_approvable_spec.rb'
- 'ee/spec/models/vulnerabilities/feedback_spec.rb'
- 'ee/spec/models/vulnerabilities/issue_link_spec.rb'
- 'ee/spec/presenters/audit_event_presenter_spec.rb'
- 'ee/spec/presenters/epic_presenter_spec.rb'
- 'ee/spec/requests/api/boards_spec.rb'
- 'ee/spec/requests/api/epic_issues_spec.rb'
- 'ee/spec/requests/api/epic_links_spec.rb'
......
......@@ -40,7 +40,7 @@ RSpec.describe AuditEventPresenter do
let(:audit_event) { create(:audit_event, user: user, details: details) }
before do
user.destroy
user.destroy!
audit_event.reload
end
......
......@@ -18,7 +18,7 @@ RSpec.describe EpicPresenter do
let(:milestone2) { create(:milestone, title: 'make me a pizza', start_date: '2020-01-01', due_date: '2029-12-31') }
before do
epic.update(
epic.update!(
start_date_sourcing_milestone: milestone1, start_date: Date.new(2000, 1, 1),
due_date_sourcing_milestone: milestone2, due_date: Date.new(2000, 1, 2)
)
......
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