summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-12-10 15:52:56 +0100
committerMarin Jankovski <maxlazio@gmail.com>2014-12-10 15:52:56 +0100
commit22368fb8e8d684fd540120c33233cf0c42825f3e (patch)
tree7dfbb91f8dbb1fdf568daf7c8c810ff4df0d9cda /spec/routing
parent3febfce1ae67f0f9f87c7298956af4857ffd55e5 (diff)
downloadgitlab-ce-22368fb8e8d684fd540120c33233cf0c42825f3e.tar.gz
Add a failing route spec for file named diff.
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/project_routing_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index ea584c9802d..0c76dd5a089 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -415,6 +415,7 @@ describe Projects::BlobController, "routing" do
it "to #show" do
get("/gitlab/gitlabhq/blob/master/app/models/project.rb").should route_to('projects/blob#show', project_id: 'gitlab/gitlabhq', id: 'master/app/models/project.rb')
get("/gitlab/gitlabhq/blob/master/app/models/compare.rb").should route_to('projects/blob#show', project_id: 'gitlab/gitlabhq', id: 'master/app/models/compare.rb')
+ get("/gitlab/gitlabhq/blob/master/app/models/diff.js").should route_to('projects/blob#show', project_id: 'gitlab/gitlabhq', id: 'master/app/models/diff.js')
get("/gitlab/gitlabhq/blob/master/files.scss").should route_to('projects/blob#show', project_id: 'gitlab/gitlabhq', id: 'master/files.scss')
end
end