@@ -59,12 +59,15 class RoutingRepositoriesTest < ActionController::IntegrationTest | |||||
59 | end |
|
59 | end | |
60 | end |
|
60 | end | |
61 |
|
61 | |||
62 | def test_repositories |
|
62 | def test_repositories_show | |
63 | assert_routing( |
|
63 | assert_routing( | |
64 | { :method => 'get', |
|
64 | { :method => 'get', | |
65 | :path => "/projects/redmine/repository" }, |
|
65 | :path => "/projects/redmine/repository" }, | |
66 | { :controller => 'repositories', :action => 'show', :id => 'redmine' } |
|
66 | { :controller => 'repositories', :action => 'show', :id => 'redmine' } | |
67 | ) |
|
67 | ) | |
|
68 | end | |||
|
69 | ||||
|
70 | def test_repositories | |||
68 | assert_routing( |
|
71 | assert_routing( | |
69 | { :method => 'get', |
|
72 | { :method => 'get', | |
70 | :path => "/projects/redmine/repository/statistics" }, |
|
73 | :path => "/projects/redmine/repository/statistics" }, | |
@@ -77,12 +80,15 class RoutingRepositoriesTest < ActionController::IntegrationTest | |||||
77 | ) |
|
80 | ) | |
78 | end |
|
81 | end | |
79 |
|
82 | |||
80 | def test_repositories_with_repository_id |
|
83 | def test_repositories_show_with_repository_id | |
81 | assert_routing( |
|
84 | assert_routing( | |
82 | { :method => 'get', |
|
85 | { :method => 'get', | |
83 | :path => "/projects/redmine/repository/foo" }, |
|
86 | :path => "/projects/redmine/repository/foo" }, | |
84 | { :controller => 'repositories', :action => 'show', :id => 'redmine', :repository_id => 'foo' } |
|
87 | { :controller => 'repositories', :action => 'show', :id => 'redmine', :repository_id => 'foo' } | |
85 | ) |
|
88 | ) | |
|
89 | end | |||
|
90 | ||||
|
91 | def test_repositories_with_repository_id | |||
86 | assert_routing( |
|
92 | assert_routing( | |
87 | { :method => 'get', |
|
93 | { :method => 'get', | |
88 | :path => "/projects/redmine/repository/foo/statistics" }, |
|
94 | :path => "/projects/redmine/repository/foo/statistics" }, |
General Comments 0
You need to be logged in to leave comments.
Login now