Fix tests fail cause of issue with grit stub
This commit is contained in:
parent
9014fb7525
commit
2032f4cd96
3 changed files with 19 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue