annotate .svn/pristine/05/05bd9a477032dec0ee79cadb6f6626cf79ccae69.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
rev   line source
Chris@1295 1 # Redmine - project management software
Chris@1295 2 # Copyright (C) 2006-2012 Jean-Philippe Lang
Chris@1295 3 #
Chris@1295 4 # This program is free software; you can redistribute it and/or
Chris@1295 5 # modify it under the terms of the GNU General Public License
Chris@1295 6 # as published by the Free Software Foundation; either version 2
Chris@1295 7 # of the License, or (at your option) any later version.
Chris@1295 8 #
Chris@1295 9 # This program is distributed in the hope that it will be useful,
Chris@1295 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@1295 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@1295 12 # GNU General Public License for more details.
Chris@1295 13 #
Chris@1295 14 # You should have received a copy of the GNU General Public License
Chris@1295 15 # along with this program; if not, write to the Free Software
Chris@1295 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@1295 17
Chris@1295 18 require File.expand_path('../../../test_helper', __FILE__)
Chris@1295 19
Chris@1295 20 class RoutingRepositoriesTest < ActionController::IntegrationTest
Chris@1295 21 def setup
Chris@1295 22 @path_hash = repository_path_hash(%w[path to file.c])
Chris@1295 23 assert_equal "path/to/file.c", @path_hash[:path]
Chris@1295 24 assert_equal "path/to/file.c", @path_hash[:param]
Chris@1295 25 end
Chris@1295 26
Chris@1295 27 def test_repositories_resources
Chris@1295 28 assert_routing(
Chris@1295 29 { :method => 'get',
Chris@1295 30 :path => "/projects/redmine/repositories/new" },
Chris@1295 31 { :controller => 'repositories', :action => 'new', :project_id => 'redmine' }
Chris@1295 32 )
Chris@1295 33 assert_routing(
Chris@1295 34 { :method => 'post',
Chris@1295 35 :path => "/projects/redmine/repositories" },
Chris@1295 36 { :controller => 'repositories', :action => 'create', :project_id => 'redmine' }
Chris@1295 37 )
Chris@1295 38 assert_routing(
Chris@1295 39 { :method => 'get',
Chris@1295 40 :path => "/repositories/1/edit" },
Chris@1295 41 { :controller => 'repositories', :action => 'edit', :id => '1' }
Chris@1295 42 )
Chris@1295 43 assert_routing(
Chris@1295 44 { :method => 'put',
Chris@1295 45 :path => "/repositories/1" },
Chris@1295 46 { :controller => 'repositories', :action => 'update', :id => '1' }
Chris@1295 47 )
Chris@1295 48 assert_routing(
Chris@1295 49 { :method => 'delete',
Chris@1295 50 :path => "/repositories/1" },
Chris@1295 51 { :controller => 'repositories', :action => 'destroy', :id => '1' }
Chris@1295 52 )
Chris@1295 53 ["get", "post"].each do |method|
Chris@1295 54 assert_routing(
Chris@1295 55 { :method => method,
Chris@1295 56 :path => "/repositories/1/committers" },
Chris@1295 57 { :controller => 'repositories', :action => 'committers', :id => '1' }
Chris@1295 58 )
Chris@1295 59 end
Chris@1295 60 end
Chris@1295 61
Chris@1295 62 def test_repositories_show
Chris@1295 63 assert_routing(
Chris@1295 64 { :method => 'get',
Chris@1295 65 :path => "/projects/redmine/repository" },
Chris@1295 66 { :controller => 'repositories', :action => 'show', :id => 'redmine' }
Chris@1295 67 )
Chris@1295 68 end
Chris@1295 69
Chris@1295 70 def test_repositories
Chris@1295 71 assert_routing(
Chris@1295 72 { :method => 'get',
Chris@1295 73 :path => "/projects/redmine/repository/statistics" },
Chris@1295 74 { :controller => 'repositories', :action => 'stats', :id => 'redmine' }
Chris@1295 75 )
Chris@1295 76 assert_routing(
Chris@1295 77 { :method => 'get',
Chris@1295 78 :path => "/projects/redmine/repository/graph" },
Chris@1295 79 { :controller => 'repositories', :action => 'graph', :id => 'redmine' }
Chris@1295 80 )
Chris@1295 81 end
Chris@1295 82
Chris@1295 83 def test_repositories_show_with_repository_id
Chris@1295 84 assert_routing(
Chris@1295 85 { :method => 'get',
Chris@1295 86 :path => "/projects/redmine/repository/foo" },
Chris@1295 87 { :controller => 'repositories', :action => 'show', :id => 'redmine', :repository_id => 'foo' }
Chris@1295 88 )
Chris@1295 89 end
Chris@1295 90
Chris@1295 91 def test_repositories_with_repository_id
Chris@1295 92 assert_routing(
Chris@1295 93 { :method => 'get',
Chris@1295 94 :path => "/projects/redmine/repository/foo/statistics" },
Chris@1295 95 { :controller => 'repositories', :action => 'stats', :id => 'redmine', :repository_id => 'foo' }
Chris@1295 96 )
Chris@1295 97 assert_routing(
Chris@1295 98 { :method => 'get',
Chris@1295 99 :path => "/projects/redmine/repository/foo/graph" },
Chris@1295 100 { :controller => 'repositories', :action => 'graph', :id => 'redmine', :repository_id => 'foo' }
Chris@1295 101 )
Chris@1295 102 end
Chris@1295 103
Chris@1295 104 def test_repositories_revisions
Chris@1295 105 empty_path_param = []
Chris@1295 106 assert_routing(
Chris@1295 107 { :method => 'get',
Chris@1295 108 :path => "/projects/redmine/repository/revisions" },
Chris@1295 109 { :controller => 'repositories', :action => 'revisions', :id => 'redmine' }
Chris@1295 110 )
Chris@1295 111 assert_routing(
Chris@1295 112 { :method => 'get',
Chris@1295 113 :path => "/projects/redmine/repository/revisions.atom" },
Chris@1295 114 { :controller => 'repositories', :action => 'revisions', :id => 'redmine',
Chris@1295 115 :format => 'atom' }
Chris@1295 116 )
Chris@1295 117 assert_routing(
Chris@1295 118 { :method => 'get',
Chris@1295 119 :path => "/projects/redmine/repository/revisions/2457" },
Chris@1295 120 { :controller => 'repositories', :action => 'revision', :id => 'redmine',
Chris@1295 121 :rev => '2457' }
Chris@1295 122 )
Chris@1295 123 assert_routing(
Chris@1295 124 { :method => 'get',
Chris@1295 125 :path => "/projects/redmine/repository/revisions/2457/show" },
Chris@1295 126 { :controller => 'repositories', :action => 'show', :id => 'redmine',
Chris@1295 127 :rev => '2457' }
Chris@1295 128 )
Chris@1295 129 assert_routing(
Chris@1295 130 { :method => 'get',
Chris@1295 131 :path => "/projects/redmine/repository/revisions/2457/show/#{@path_hash[:path]}" },
Chris@1295 132 { :controller => 'repositories', :action => 'show', :id => 'redmine',
Chris@1295 133 :path => @path_hash[:param] , :rev => '2457'}
Chris@1295 134 )
Chris@1295 135 assert_routing(
Chris@1295 136 { :method => 'get',
Chris@1295 137 :path => "/projects/redmine/repository/revisions/2457/diff" },
Chris@1295 138 { :controller => 'repositories', :action => 'diff', :id => 'redmine',
Chris@1295 139 :rev => '2457' }
Chris@1295 140 )
Chris@1295 141 assert_routing(
Chris@1295 142 { :method => 'get',
Chris@1295 143 :path => "/projects/redmine/repository/revisions/2457/diff" },
Chris@1295 144 { :controller => 'repositories', :action => 'diff', :id => 'redmine',
Chris@1295 145 :rev => '2457', :format => 'diff' },
Chris@1295 146 {},
Chris@1295 147 { :format => 'diff' }
Chris@1295 148 )
Chris@1295 149 assert_routing(
Chris@1295 150 { :method => 'get',
Chris@1295 151 :path => "/projects/redmine/repository/revisions/2/diff/#{@path_hash[:path]}" },
Chris@1295 152 { :controller => 'repositories', :action => 'diff', :id => 'redmine',
Chris@1295 153 :path => @path_hash[:param], :rev => '2' }
Chris@1295 154 )
Chris@1295 155 assert_routing(
Chris@1295 156 { :method => 'get',
Chris@1295 157 :path => "/projects/redmine/repository/revisions/2/diff/#{@path_hash[:path]}" },
Chris@1295 158 { :controller => 'repositories', :action => 'diff', :id => 'redmine',
Chris@1295 159 :path => @path_hash[:param], :rev => '2', :format => 'diff' },
Chris@1295 160 {},
Chris@1295 161 { :format => 'diff' }
Chris@1295 162 )
Chris@1295 163 assert_routing(
Chris@1295 164 { :method => 'get',
Chris@1295 165 :path => "/projects/redmine/repository/revisions/2/entry/#{@path_hash[:path]}" },
Chris@1295 166 { :controller => 'repositories', :action => 'entry', :id => 'redmine',
Chris@1295 167 :path => @path_hash[:param], :rev => '2' }
Chris@1295 168 )
Chris@1295 169 assert_routing(
Chris@1295 170 { :method => 'get',
Chris@1295 171 :path => "/projects/redmine/repository/revisions/2/raw/#{@path_hash[:path]}" },
Chris@1295 172 { :controller => 'repositories', :action => 'raw', :id => 'redmine',
Chris@1295 173 :path => @path_hash[:param], :rev => '2' }
Chris@1295 174 )
Chris@1295 175 assert_routing(
Chris@1295 176 { :method => 'get',
Chris@1295 177 :path => "/projects/redmine/repository/revisions/2/annotate/#{@path_hash[:path]}" },
Chris@1295 178 { :controller => 'repositories', :action => 'annotate', :id => 'redmine',
Chris@1295 179 :path => @path_hash[:param], :rev => '2' }
Chris@1295 180 )
Chris@1295 181 end
Chris@1295 182
Chris@1295 183 def test_repositories_revisions_with_repository_id
Chris@1295 184 empty_path_param = []
Chris@1295 185 assert_routing(
Chris@1295 186 { :method => 'get',
Chris@1295 187 :path => "/projects/redmine/repository/foo/revisions" },
Chris@1295 188 { :controller => 'repositories', :action => 'revisions', :id => 'redmine', :repository_id => 'foo' }
Chris@1295 189 )
Chris@1295 190 assert_routing(
Chris@1295 191 { :method => 'get',
Chris@1295 192 :path => "/projects/redmine/repository/foo/revisions.atom" },
Chris@1295 193 { :controller => 'repositories', :action => 'revisions', :id => 'redmine', :repository_id => 'foo',
Chris@1295 194 :format => 'atom' }
Chris@1295 195 )
Chris@1295 196 assert_routing(
Chris@1295 197 { :method => 'get',
Chris@1295 198 :path => "/projects/redmine/repository/foo/revisions/2457" },
Chris@1295 199 { :controller => 'repositories', :action => 'revision', :id => 'redmine', :repository_id => 'foo',
Chris@1295 200 :rev => '2457' }
Chris@1295 201 )
Chris@1295 202 assert_routing(
Chris@1295 203 { :method => 'get',
Chris@1295 204 :path => "/projects/redmine/repository/foo/revisions/2457/show" },
Chris@1295 205 { :controller => 'repositories', :action => 'show', :id => 'redmine', :repository_id => 'foo',
Chris@1295 206 :rev => '2457' }
Chris@1295 207 )
Chris@1295 208 assert_routing(
Chris@1295 209 { :method => 'get',
Chris@1295 210 :path => "/projects/redmine/repository/foo/revisions/2457/show/#{@path_hash[:path]}" },
Chris@1295 211 { :controller => 'repositories', :action => 'show', :id => 'redmine', :repository_id => 'foo',
Chris@1295 212 :path => @path_hash[:param] , :rev => '2457'}
Chris@1295 213 )
Chris@1295 214 assert_routing(
Chris@1295 215 { :method => 'get',
Chris@1295 216 :path => "/projects/redmine/repository/foo/revisions/2457/diff" },
Chris@1295 217 { :controller => 'repositories', :action => 'diff', :id => 'redmine', :repository_id => 'foo',
Chris@1295 218 :rev => '2457' }
Chris@1295 219 )
Chris@1295 220 assert_routing(
Chris@1295 221 { :method => 'get',
Chris@1295 222 :path => "/projects/redmine/repository/foo/revisions/2457/diff" },
Chris@1295 223 { :controller => 'repositories', :action => 'diff', :id => 'redmine', :repository_id => 'foo',
Chris@1295 224 :rev => '2457', :format => 'diff' },
Chris@1295 225 {},
Chris@1295 226 { :format => 'diff' }
Chris@1295 227 )
Chris@1295 228 assert_routing(
Chris@1295 229 { :method => 'get',
Chris@1295 230 :path => "/projects/redmine/repository/foo/revisions/2/diff/#{@path_hash[:path]}" },
Chris@1295 231 { :controller => 'repositories', :action => 'diff', :id => 'redmine', :repository_id => 'foo',
Chris@1295 232 :path => @path_hash[:param], :rev => '2' }
Chris@1295 233 )
Chris@1295 234 assert_routing(
Chris@1295 235 { :method => 'get',
Chris@1295 236 :path => "/projects/redmine/repository/foo/revisions/2/diff/#{@path_hash[:path]}" },
Chris@1295 237 { :controller => 'repositories', :action => 'diff', :id => 'redmine', :repository_id => 'foo',
Chris@1295 238 :path => @path_hash[:param], :rev => '2', :format => 'diff' },
Chris@1295 239 {},
Chris@1295 240 { :format => 'diff' }
Chris@1295 241 )
Chris@1295 242 assert_routing(
Chris@1295 243 { :method => 'get',
Chris@1295 244 :path => "/projects/redmine/repository/foo/revisions/2/entry/#{@path_hash[:path]}" },
Chris@1295 245 { :controller => 'repositories', :action => 'entry', :id => 'redmine', :repository_id => 'foo',
Chris@1295 246 :path => @path_hash[:param], :rev => '2' }
Chris@1295 247 )
Chris@1295 248 assert_routing(
Chris@1295 249 { :method => 'get',
Chris@1295 250 :path => "/projects/redmine/repository/foo/revisions/2/raw/#{@path_hash[:path]}" },
Chris@1295 251 { :controller => 'repositories', :action => 'raw', :id => 'redmine', :repository_id => 'foo',
Chris@1295 252 :path => @path_hash[:param], :rev => '2' }
Chris@1295 253 )
Chris@1295 254 assert_routing(
Chris@1295 255 { :method => 'get',
Chris@1295 256 :path => "/projects/redmine/repository/foo/revisions/2/annotate/#{@path_hash[:path]}" },
Chris@1295 257 { :controller => 'repositories', :action => 'annotate', :id => 'redmine', :repository_id => 'foo',
Chris@1295 258 :path => @path_hash[:param], :rev => '2' }
Chris@1295 259 )
Chris@1295 260 end
Chris@1295 261
Chris@1295 262 def test_repositories_non_revisions_path
Chris@1295 263 assert_routing(
Chris@1295 264 { :method => 'get',
Chris@1295 265 :path => "/projects/redmine/repository/changes" },
Chris@1295 266 { :controller => 'repositories', :action => 'changes', :id => 'redmine' }
Chris@1295 267 )
Chris@1295 268 ['2457', 'master', 'slash/slash'].each do |rev|
Chris@1295 269 assert_routing(
Chris@1295 270 { :method => 'get',
Chris@1295 271 :path => "/projects/redmine/repository/changes" },
Chris@1295 272 { :controller => 'repositories', :action => 'changes', :id => 'redmine',
Chris@1295 273 :rev => rev },
Chris@1295 274 {},
Chris@1295 275 { :rev => rev }
Chris@1295 276 )
Chris@1295 277 end
Chris@1295 278 ['2457', 'master', 'slash/slash'].each do |rev|
Chris@1295 279 assert_routing(
Chris@1295 280 { :method => 'get',
Chris@1295 281 :path => "/projects/redmine/repository/changes/#{@path_hash[:path]}" },
Chris@1295 282 { :controller => 'repositories', :action => 'changes', :id => 'redmine',
Chris@1295 283 :path => @path_hash[:param], :rev => rev },
Chris@1295 284 {},
Chris@1295 285 { :rev => rev }
Chris@1295 286 )
Chris@1295 287 end
Chris@1295 288 assert_routing(
Chris@1295 289 { :method => 'get',
Chris@1295 290 :path => "/projects/redmine/repository/diff/#{@path_hash[:path]}" },
Chris@1295 291 { :controller => 'repositories', :action => 'diff', :id => 'redmine',
Chris@1295 292 :path => @path_hash[:param] }
Chris@1295 293 )
Chris@1295 294 assert_routing(
Chris@1295 295 { :method => 'get',
Chris@1295 296 :path => "/projects/redmine/repository/browse/#{@path_hash[:path]}" },
Chris@1295 297 { :controller => 'repositories', :action => 'browse', :id => 'redmine',
Chris@1295 298 :path => @path_hash[:param] }
Chris@1295 299 )
Chris@1295 300 assert_routing(
Chris@1295 301 { :method => 'get',
Chris@1295 302 :path => "/projects/redmine/repository/entry/#{@path_hash[:path]}" },
Chris@1295 303 { :controller => 'repositories', :action => 'entry', :id => 'redmine',
Chris@1295 304 :path => @path_hash[:param] }
Chris@1295 305 )
Chris@1295 306 assert_routing(
Chris@1295 307 { :method => 'get',
Chris@1295 308 :path => "/projects/redmine/repository/raw/#{@path_hash[:path]}" },
Chris@1295 309 { :controller => 'repositories', :action => 'raw', :id => 'redmine',
Chris@1295 310 :path => @path_hash[:param] }
Chris@1295 311 )
Chris@1295 312 assert_routing(
Chris@1295 313 { :method => 'get',
Chris@1295 314 :path => "/projects/redmine/repository/annotate/#{@path_hash[:path]}" },
Chris@1295 315 { :controller => 'repositories', :action => 'annotate', :id => 'redmine',
Chris@1295 316 :path => @path_hash[:param] }
Chris@1295 317 )
Chris@1295 318 assert_routing(
Chris@1295 319 { :method => 'get',
Chris@1295 320 :path => "/projects/redmine/repository/changes/#{@path_hash[:path]}" },
Chris@1295 321 { :controller => 'repositories', :action => 'changes', :id => 'redmine',
Chris@1295 322 :path => @path_hash[:param] }
Chris@1295 323 )
Chris@1295 324 assert_routing(
Chris@1295 325 { :method => 'get',
Chris@1295 326 :path => "/projects/redmine/repository/revision" },
Chris@1295 327 { :controller => 'repositories', :action => 'revision', :id => 'redmine' }
Chris@1295 328 )
Chris@1295 329 end
Chris@1295 330
Chris@1295 331 def test_repositories_non_revisions_path_with_repository_id
Chris@1295 332 assert_routing(
Chris@1295 333 { :method => 'get',
Chris@1295 334 :path => "/projects/redmine/repository/foo/changes" },
Chris@1295 335 { :controller => 'repositories', :action => 'changes',
Chris@1295 336 :id => 'redmine', :repository_id => 'foo' }
Chris@1295 337 )
Chris@1295 338 ['2457', 'master', 'slash/slash'].each do |rev|
Chris@1295 339 assert_routing(
Chris@1295 340 { :method => 'get',
Chris@1295 341 :path => "/projects/redmine/repository/foo/changes" },
Chris@1295 342 { :controller => 'repositories', :action => 'changes',
Chris@1295 343 :id => 'redmine',
Chris@1295 344 :repository_id => 'foo', :rev => rev },
Chris@1295 345 {},
Chris@1295 346 { :rev => rev }
Chris@1295 347 )
Chris@1295 348 end
Chris@1295 349 ['2457', 'master', 'slash/slash'].each do |rev|
Chris@1295 350 assert_routing(
Chris@1295 351 { :method => 'get',
Chris@1295 352 :path => "/projects/redmine/repository/foo/changes/#{@path_hash[:path]}" },
Chris@1295 353 { :controller => 'repositories', :action => 'changes', :id => 'redmine',
Chris@1295 354 :repository_id => 'foo', :path => @path_hash[:param], :rev => rev },
Chris@1295 355 {},
Chris@1295 356 { :rev => rev }
Chris@1295 357 )
Chris@1295 358 end
Chris@1295 359 assert_routing(
Chris@1295 360 { :method => 'get',
Chris@1295 361 :path => "/projects/redmine/repository/foo/diff/#{@path_hash[:path]}" },
Chris@1295 362 { :controller => 'repositories', :action => 'diff', :id => 'redmine', :repository_id => 'foo',
Chris@1295 363 :path => @path_hash[:param] }
Chris@1295 364 )
Chris@1295 365 assert_routing(
Chris@1295 366 { :method => 'get',
Chris@1295 367 :path => "/projects/redmine/repository/foo/browse/#{@path_hash[:path]}" },
Chris@1295 368 { :controller => 'repositories', :action => 'browse', :id => 'redmine', :repository_id => 'foo',
Chris@1295 369 :path => @path_hash[:param] }
Chris@1295 370 )
Chris@1295 371 assert_routing(
Chris@1295 372 { :method => 'get',
Chris@1295 373 :path => "/projects/redmine/repository/foo/entry/#{@path_hash[:path]}" },
Chris@1295 374 { :controller => 'repositories', :action => 'entry', :id => 'redmine', :repository_id => 'foo',
Chris@1295 375 :path => @path_hash[:param] }
Chris@1295 376 )
Chris@1295 377 assert_routing(
Chris@1295 378 { :method => 'get',
Chris@1295 379 :path => "/projects/redmine/repository/foo/raw/#{@path_hash[:path]}" },
Chris@1295 380 { :controller => 'repositories', :action => 'raw', :id => 'redmine', :repository_id => 'foo',
Chris@1295 381 :path => @path_hash[:param] }
Chris@1295 382 )
Chris@1295 383 assert_routing(
Chris@1295 384 { :method => 'get',
Chris@1295 385 :path => "/projects/redmine/repository/foo/annotate/#{@path_hash[:path]}" },
Chris@1295 386 { :controller => 'repositories', :action => 'annotate', :id => 'redmine', :repository_id => 'foo',
Chris@1295 387 :path => @path_hash[:param] }
Chris@1295 388 )
Chris@1295 389 assert_routing(
Chris@1295 390 { :method => 'get',
Chris@1295 391 :path => "/projects/redmine/repository/foo/changes/#{@path_hash[:path]}" },
Chris@1295 392 { :controller => 'repositories', :action => 'changes', :id => 'redmine', :repository_id => 'foo',
Chris@1295 393 :path => @path_hash[:param] }
Chris@1295 394 )
Chris@1295 395 assert_routing(
Chris@1295 396 { :method => 'get',
Chris@1295 397 :path => "/projects/redmine/repository/foo/revision" },
Chris@1295 398 { :controller => 'repositories', :action => 'revision', :id => 'redmine', :repository_id => 'foo'}
Chris@1295 399 )
Chris@1295 400 end
Chris@1295 401
Chris@1295 402 def test_repositories_related_issues
Chris@1295 403 assert_routing(
Chris@1295 404 { :method => 'post',
Chris@1295 405 :path => "/projects/redmine/repository/revisions/123/issues" },
Chris@1295 406 { :controller => 'repositories', :action => 'add_related_issue',
Chris@1295 407 :id => 'redmine', :rev => '123' }
Chris@1295 408 )
Chris@1295 409 assert_routing(
Chris@1295 410 { :method => 'delete',
Chris@1295 411 :path => "/projects/redmine/repository/revisions/123/issues/25" },
Chris@1295 412 { :controller => 'repositories', :action => 'remove_related_issue',
Chris@1295 413 :id => 'redmine', :rev => '123', :issue_id => '25' }
Chris@1295 414 )
Chris@1295 415 end
Chris@1295 416
Chris@1295 417 def test_repositories_related_issues_with_repository_id
Chris@1295 418 assert_routing(
Chris@1295 419 { :method => 'post',
Chris@1295 420 :path => "/projects/redmine/repository/foo/revisions/123/issues" },
Chris@1295 421 { :controller => 'repositories', :action => 'add_related_issue',
Chris@1295 422 :id => 'redmine', :repository_id => 'foo', :rev => '123' }
Chris@1295 423 )
Chris@1295 424 assert_routing(
Chris@1295 425 { :method => 'delete',
Chris@1295 426 :path => "/projects/redmine/repository/foo/revisions/123/issues/25" },
Chris@1295 427 { :controller => 'repositories', :action => 'remove_related_issue',
Chris@1295 428 :id => 'redmine', :repository_id => 'foo', :rev => '123', :issue_id => '25' }
Chris@1295 429 )
Chris@1295 430 end
Chris@1295 431 end