diff options
author | BM5k <me@bm5k.com> | 2016-11-30 14:28:42 -0700 |
---|---|---|
committer | BM5k <me@bm5k.com> | 2016-12-03 14:39:35 -0700 |
commit | 48895aa40dd2bfc13453b0b28c6d122f4e1c58be (patch) | |
tree | 9dd960eca4ef57b87d6e4c37c6007573e5d673b0 /spec/features/commits_spec.rb | |
parent | 24e5a1e8db943be346b4f7f4fb49326ad0e5eb9e (diff) | |
download | gitlab-ce-48895aa40dd2bfc13453b0b28c6d122f4e1c58be.tar.gz |
change the date label to match the date used
Diffstat (limited to 'spec/features/commits_spec.rb')
-rw-r--r-- | spec/features/commits_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb index 44646ffc602..23a504ff965 100644 --- a/spec/features/commits_spec.rb +++ b/spec/features/commits_spec.rb @@ -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 |