Fix tests fail cause of issue with grit stub

This commit is contained in:
Dmitriy Zaporozhets 2012-10-31 15:22:13 +02:00
parent 9014fb7525
commit 2032f4cd96
3 changed files with 19 additions and 12 deletions

View file

@ -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