From 8a8df72937c5b5676e9f34092c9819d1119eb7b9 2012-09-28 04:47:46 From: Toshi MARUYAMA Date: 2012-09-28 04:47:46 Subject: [PATCH] Merged r10502 from trunk to 1.4-stable (#11966) add functional test of main repository diff path. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@10507 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 09cd8b1..9256f02 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -263,6 +263,8 @@ class RepositoriesGitControllerTest < ActionController::TestCase end def test_diff + assert_equal true, @repository.is_default + assert_nil @repository.identifier assert_equal 0, @repository.changesets.count @repository.fetch_changesets @project.reload @@ -353,6 +355,18 @@ class RepositoriesGitControllerTest < ActionController::TestCase diff = assigns(:diff) assert_not_nil diff assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/ + assert_tag :tag => "form", + :attributes => { + :action => "/projects/subproject1/repository/revisions/" + + "61b685fbe55ab05b5ac68402d5720c1a6ac973d1/diff" + } + assert_tag :tag => 'input', + :attributes => { + :id => "rev_to", + :name => "rev_to", + :type => "hidden", + :value => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' + } end end