Merge branch 'issues/1608-text' into 'master'

change the date label to match the date used

Closes #1608

See merge request !7860
This commit is contained in:
Sean McGivern 2016-12-05 13:21:22 +00:00
commit 5d8c33423c
4 changed files with 25 additions and 2 deletions

View File

@ -31,7 +31,7 @@
 
.light
= commit_author_link(commit, avatar: false)
authored
committed
#{time_ago_with_tooltip(commit.committed_date)}
%td.line-numbers
- line_count = blame_group[:lines].count

View File

@ -37,5 +37,5 @@
= preserve(markdown(commit.description, pipeline: :single_line, author: commit.author))
= commit_author_link(commit, avatar: false, size: 24)
authored
committed
#{time_ago_with_tooltip(commit.committed_date)}

View File

@ -0,0 +1,4 @@
---
title: change text around timestamps to make it clear which timestamp is displayed
merge_request: 7860
author: BM5k

View File

@ -177,4 +177,23 @@ describe 'Commits' do
end
end
end
context 'viewing commits for a branch' do
let(:branch_name) { 'master' }
let(:user) { create(:user) }
before do
project.team << [user, :master]
login_with(user)
visit namespace_project_commits_path(project.namespace, project, branch_name)
end
it 'includes the committed_date for each commit' do
commits = project.repository.commits(branch_name)
commits.each do |commit|
expect(page).to have_content("committed #{commit.committed_date}")
end
end
end
end