Commit 7c7d964b authored by charlie ablett's avatar charlie ablett

Merge branch 'rails-save-bang-ee-spec-presenters' into 'master'

Fix Rails/SaveBang offenses in ee/spec/presenters

See merge request gitlab-org/gitlab!58082
parents 8f83ccf7 9dad9434
......@@ -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'
......
---
title: Fix Rails/SaveBang rubocop offenses in ee/spec/presenters
merge_request: 58082
author: Abdul Wadood @abdulwd
type: fixed
......@@ -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