@@ -368,6 +368,40 class RepositoriesGitControllerTest < ActionController::TestCase | |||
|
368 | 368 | end |
|
369 | 369 | end |
|
370 | 370 | |
|
371 | def test_diff_path_in_subrepo | |
|
372 | repo = Repository::Git.create( | |
|
373 | :project => @project, | |
|
374 | :url => REPOSITORY_PATH, | |
|
375 | :identifier => 'test-diff-path', | |
|
376 | :path_encoding => 'ISO-8859-1' | |
|
377 | ); | |
|
378 | assert repo | |
|
379 | assert_equal false, repo.is_default | |
|
380 | assert_equal 'test-diff-path', repo.identifier | |
|
381 | get :diff, | |
|
382 | :id => PRJ_ID, | |
|
383 | :repository_id => 'test-diff-path', | |
|
384 | :rev => '61b685fbe55ab05b', | |
|
385 | :rev_to => '2f9c0091c754a91a', | |
|
386 | :type => 'inline' | |
|
387 | assert_response :success | |
|
388 | assert_template 'diff' | |
|
389 | diff = assigns(:diff) | |
|
390 | assert_not_nil diff | |
|
391 | assert_tag :tag => "form", | |
|
392 | :attributes => { | |
|
393 | :action => "/projects/subproject1/repository/test-diff-path/" + | |
|
394 | "revisions/61b685fbe55ab05b/diff" | |
|
395 | } | |
|
396 | assert_tag :tag => 'input', | |
|
397 | :attributes => { | |
|
398 | :id => "rev_to", | |
|
399 | :name => "rev_to", | |
|
400 | :type => "hidden", | |
|
401 | :value => '2f9c0091c754a91a' | |
|
402 | } | |
|
403 | end | |
|
404 | ||
|
371 | 405 | def test_diff_latin_1 |
|
372 | 406 | if @ruby19_non_utf8_pass |
|
373 | 407 | puts_ruby19_non_utf8_pass() |
General Comments 0
You need to be logged in to leave comments.
Login now