diff options
author | Robert Speicher <robert@gitlab.com> | 2018-01-18 23:05:28 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-01-18 23:05:28 +0000 |
commit | def2f1299512ce43370aa5b727a3d7f4733adf96 (patch) | |
tree | efa7c5b8090a3b7adbeb94834436232d251a3bf9 /spec/helpers | |
parent | 561374ac12ba53acb30ee8caa1b9ff1c2e00ead6 (diff) | |
parent | 4b6b8eccedb49014d4cd329a336015fb8d7bcff9 (diff) | |
download | gitlab-ce-def2f1299512ce43370aa5b727a3d7f4733adf96.tar.gz |
Merge branch '41247-timestamp' into 'master'
Use last_edited_at instead of updated_at for displaying issuable last change
Closes #41247
See merge request gitlab-org/gitlab-ce!16406
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/issuables_helper_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/issuables_helper_spec.rb b/spec/helpers/issuables_helper_spec.rb index c8d64d64cf4..7fa665aecdc 100644 --- a/spec/helpers/issuables_helper_spec.rb +++ b/spec/helpers/issuables_helper_spec.rb @@ -125,10 +125,10 @@ describe IssuablesHelper do describe '#updated_at_by' do let(:user) { create(:user) } let(:unedited_issuable) { create(:issue) } - let(:edited_issuable) { create(:issue, last_edited_by: user, created_at: 3.days.ago, updated_at: 2.days.ago, last_edited_at: 2.days.ago) } + let(:edited_issuable) { create(:issue, last_edited_by: user, created_at: 3.days.ago, updated_at: 1.day.ago, last_edited_at: 2.days.ago) } let(:edited_updated_at_by) do { - updatedAt: edited_issuable.updated_at.to_time.iso8601, + updatedAt: edited_issuable.last_edited_at.to_time.iso8601, updatedBy: { name: user.name, path: user_path(user) @@ -142,7 +142,7 @@ describe IssuablesHelper do context 'when updated by a deleted user' do let(:edited_updated_at_by) do { - updatedAt: edited_issuable.updated_at.to_time.iso8601, + updatedAt: edited_issuable.last_edited_at.to_time.iso8601, updatedBy: { name: User.ghost.name, path: user_path(User.ghost) |