Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-24 21:09:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-24 21:09:14 +0300
commitca386bfc0cf083e0ccb477995378061fc2a15b66 (patch)
treef53d4a2f288ba64e9f440080817f14d62965398c /spec/features/commits_spec.rb
parent61ebd5753018a1f4b6032122f6ea625dc4e4fc8e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/commits_spec.rb')
-rw-r--r--spec/features/commits_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb
index a84f469750d..fd09a7f7343 100644
--- a/spec/features/commits_spec.rb
+++ b/spec/features/commits_spec.rb
@@ -187,6 +187,13 @@ RSpec.describe 'Commits', feature_category: :source_code_management do
visit project_commits_path(project, branch_name)
end
+ it 'includes a date on which the commits were authored' do
+ commits = project.repository.commits(branch_name, limit: 40)
+ commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, _daily_commits|
+ expect(page).to have_content(day.strftime("%b %d, %Y"))
+ end
+ end
+
it 'includes the committed_date for each commit' do
commits = project.repository.commits(branch_name, limit: 40)