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