Decouple and refactor GraphCommit

This commit is contained in:
randx 2012-11-04 23:43:33 +02:00
parent f8e27b92bf
commit f082c8ae2a
7 changed files with 393 additions and 201 deletions

View file

@ -11,8 +11,8 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
end
And 'I visit project "Shop" network page' do
# Stub GraphCommit max_size to speed up test (10 commits vs. 650)
Gitlab::GraphCommit.stub(max_count: 10)
# Stub Graph::JsonBuilder max_size to speed up test (10 commits vs. 650)
Gitlab::Graph::JsonBuilder.stub(max_count: 10)
project = Project.find_by_name("Shop")
visit graph_project_path(project)

View file

@ -126,8 +126,8 @@ module SharedPaths
end
Given "I visit my project's network page" do
# Stub GraphCommit max_size to speed up test (10 commits vs. 650)
Gitlab::GraphCommit.stub(max_count: 10)
# Stub Graph::JsonBuilder max_size to speed up test (10 commits vs. 650)
Gitlab::Graph::JsonBuilder.stub(max_count: 10)
visit graph_project_path(@project)
end