Commit e8fef555 authored by Stan Hu's avatar Stan Hu

Fix failing spec: ee/spec/services/issues/export_csv_service_spec.rb

Move creation of time logs before the update of the issue in the
setup. The introduction of `touch: true` in gitlab-org/gitlab-ce!19065
causes the timestamp to be updated.
parent e0406c40
......@@ -33,6 +33,10 @@ describe Issues::ExportCsvService do
let(:feature_label) { create(:label, project: project, title: 'Feature') }
before do
# Creating a timelog touches the updated_at timestamp of issue,
# so create these first.
issue.timelogs.create(time_spent: 360, user: user)
issue.timelogs.create(time_spent: 200, user: user)
issue.update!(milestone: milestone,
assignees: [user],
description: 'Issue with details',
......@@ -45,8 +49,6 @@ describe Issues::ExportCsvService do
discussion_locked: true,
labels: [feature_label, idea_label],
time_estimate: 72000)
issue.timelogs.create(time_spent: 360, user: user)
issue.timelogs.create(time_spent: 200, user: user)
end
specify 'iid' 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