mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 09:36:47 +10:00
Merge branch 'show_files_with_diff_name' into 'master'
Show files named diff Fixes #1749 See merge request !1318
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ Gitlab::Application.routes.draw do
|
||||
end
|
||||
|
||||
scope module: :projects do
|
||||
resources :blob, only: [:show, :destroy], constraints: { id: /.+/ } do
|
||||
resources :blob, only: [:show, :destroy], constraints: { id: /.+/, format: false } do
|
||||
get :diff, on: :member
|
||||
end
|
||||
resources :raw, only: [:show], constraints: {id: /.+/}
|
||||
|
||||
@@ -417,6 +417,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
|
||||
|
||||
Reference in New Issue
Block a user