diff options
| author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-31 15:22:13 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-31 15:22:13 +0200 |
| commit | 2032f4cd9665d0b4244e30160c64996dc37c0a0e (patch) | |
| tree | 0a9680412262efa4789c997c11b718f792de0175 /features/steps/shared/paths.rb | |
| parent | 9014fb7525504dedaaca3b586af028455dc4004b (diff) | |
| download | gitlab-ce-2032f4cd9665d0b4244e30160c64996dc37c0a0e.tar.gz | |
Fix tests fail cause of issue with grit stub
Diffstat (limited to 'features/steps/shared/paths.rb')
| -rw-r--r-- | features/steps/shared/paths.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index b4e4b810c20..21936f19f47 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -122,9 +122,8 @@ module SharedPaths end Given "I visit my project's network page" do - # Stub out find_all to speed this up (10 commits vs. 650) - commits = Grit::Commit.find_all(@project.repo, nil, {max_count: 10}) - Grit::Commit.stub(:find_all).and_return(commits) + # Stub GraphCommit max_size to speed up test (10 commits vs. 650) + Gitlab::GraphCommit.stub(max_count: 10) visit graph_project_path(@project) end |
