summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-11 09:54:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-11 09:54:01 +0300
commit038d40f0f5b202fe9ed133fdf9de1774bdbc8ede (patch)
treea8ce15d3aac9307f76b116c73f5c8c4caa30ce7f /spec/routing
parent9e2c8d94766617358d39b81fe42f360e6dc469f8 (diff)
downloadgitlab-ce-038d40f0f5b202fe9ed133fdf9de1774bdbc8ede.tar.gz
Solve inconsistency between network graph & stat graphs
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/project_routing_spec.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index 94f9480a4d0..a1d4bd6a4cd 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -446,9 +446,15 @@ describe CompareController, "routing" do
end
end
-describe GraphController, "routing" do
+describe NetworkController, "routing" do
it "to #show" do
- get("/gitlabhq/graph/master").should route_to('graph#show', project_id: 'gitlabhq', id: 'master')
- get("/gitlabhq/graph/master.json").should route_to('graph#show', project_id: 'gitlabhq', id: 'master', format: "json")
+ get("/gitlabhq/network/master").should route_to('network#show', project_id: 'gitlabhq', id: 'master')
+ get("/gitlabhq/network/master.json").should route_to('network#show', project_id: 'gitlabhq', id: 'master', format: "json")
+ end
+end
+
+describe GraphsController, "routing" do
+ it "to #show" do
+ get("/gitlabhq/graphs/master").should route_to('graphs#show', project_id: 'gitlabhq', id: 'master')
end
end