summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-28 03:43:25 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-28 03:43:25 +0000
commit69a3941ac8c7b64c22e6444443bac5cc74c3fabc (patch)
tree30249edf3d954085203c3a56e67f1793f391079f /test
parent086478c5a6fca09c6a7fd8b7765b521f542cf0b9 (diff)
downloadredmine-69a3941ac8c7b64c22e6444443bac5cc74c3fabc.tar.gz
redmine-69a3941ac8c7b64c22e6444443bac5cc74c3fabc.zip
add functional test of main repository diff path (#11966)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10502 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/repositories_git_controller_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index dc82f7c73..edbb73a5e 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -261,6 +261,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
@@ -351,6 +353,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