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