summaryrefslogtreecommitdiff
path: root/spec/features/commits_spec.rb
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2018-01-29 15:27:46 +0000
committerRobert Speicher <robert@gitlab.com>2018-01-29 15:27:46 +0000
commite407c2d18f6558041a5bd54a568cfe52c1f3e3a4 (patch)
treef133391bc6c053cb4af5c5483cf478eb672ab4da /spec/features/commits_spec.rb
parent501d81c523b2cf53128e62ea2d7c4dff6681928d (diff)
downloadgitlab-ce-e407c2d18f6558041a5bd54a568cfe52c1f3e3a4.tar.gz
Don't allow Repository#log with limit zero
Diffstat (limited to 'spec/features/commits_spec.rb')
-rw-r--r--spec/features/commits_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb
index a28b8905b65..62a2ec55b00 100644
--- a/spec/features/commits_spec.rb
+++ b/spec/features/commits_spec.rb
@@ -194,7 +194,7 @@ describe 'Commits' do
end
it 'includes the committed_date for each commit' do
- commits = project.repository.commits(branch_name)
+ commits = project.repository.commits(branch_name, limit: 40)
commits.each do |commit|
expect(page).to have_content("authored #{commit.authored_date.strftime("%b %d, %Y")}")