mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
route: scm: split entry and raw actions
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9625 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -184,8 +184,8 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
:path => "/projects/redmine/repository/revisions/2/raw/#{@path_hash[:path]}" },
|
||||
{ :controller => 'repositories', :action => 'entry', :id => 'redmine',
|
||||
:path => @path_hash[:param], :rev => '2', :format => 'raw' }
|
||||
{ :controller => 'repositories', :action => 'raw', :id => 'redmine',
|
||||
:path => @path_hash[:param], :rev => '2' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
@@ -278,8 +278,8 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
:path => "/projects/redmine/repository/foo/revisions/2/raw/#{@path_hash[:path]}" },
|
||||
{ :controller => 'repositories', :action => 'entry', :id => 'redmine', :repository_id => 'foo',
|
||||
:path => @path_hash[:param], :rev => '2', :format => 'raw' }
|
||||
{ :controller => 'repositories', :action => 'raw', :id => 'redmine', :repository_id => 'foo',
|
||||
:path => @path_hash[:param], :rev => '2' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
@@ -311,8 +311,8 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
:path => "/projects/redmine/repository/raw/#{@path_hash[:path]}" },
|
||||
{ :controller => 'repositories', :action => 'entry', :id => 'redmine',
|
||||
:path => @path_hash[:param], :format => 'raw' }
|
||||
{ :controller => 'repositories', :action => 'raw', :id => 'redmine',
|
||||
:path => @path_hash[:param] }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
@@ -355,8 +355,8 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
:path => "/projects/redmine/repository/foo/raw/#{@path_hash[:path]}" },
|
||||
{ :controller => 'repositories', :action => 'entry', :id => 'redmine', :repository_id => 'foo',
|
||||
:path => @path_hash[:param], :format => 'raw' }
|
||||
{ :controller => 'repositories', :action => 'raw', :id => 'redmine', :repository_id => 'foo',
|
||||
:path => @path_hash[:param] }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get',
|
||||
|
||||
Reference in New Issue
Block a user