Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-12 13:50:03 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-12 13:50:03 +0400
commit9f2041ad0edd2919d9d1a41e0426b4fa4294bfe5 (patch)
tree0e3f91c0ae48d4d203152b8c47ce9b5e04fb024e /spec
parentbf908989d0867fdb6e2f81dd688ca323e8cca47f (diff)
parent2d0c3e4c6dff291aa85e8bda18b8ac85e92c1994 (diff)
Merge pull request #2965 from yurifury/fix-blob-route
Gitlab incorrectly routes blobs to the compare controller depending on filename.
Diffstat (limited to 'spec')
-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 f94bedc79a1..9cf5d91349f 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -392,6 +392,7 @@ end
describe BlobController, "routing" do
it "to #show" do
get("/gitlabhq/blob/master/app/models/project.rb").should route_to('blob#show', project_id: 'gitlabhq', id: 'master/app/models/project.rb')
+ get("/gitlabhq/blob/master/app/models/compare.rb").should route_to('blob#show', project_id: 'gitlabhq', id: 'master/app/models/compare.rb')
end
end