diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-14 08:15:42 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-14 08:15:42 +0000 |
commit | 953e8e0f722f142b2afc950993370c88a504219b (patch) | |
tree | 1f47a2eb69c5707bf35648f03b34a9082a783034 | |
parent | f3822e18bd6006b01a21dbb9947c6da85ae604a2 (diff) | |
download | redmine-953e8e0f722f142b2afc950993370c88a504219b.tar.gz redmine-953e8e0f722f142b2afc950993370c88a504219b.zip |
scm: git: code clean up functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5119 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index fa3669f43..500899482 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -49,7 +49,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert_not_nil assigns(:entries) assert_not_nil assigns(:changesets) end - + def test_browse_root get :show, :id => 3 assert_response :success @@ -90,7 +90,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert_equal 'file', entry.kind assert_equal 'images/edit.png', entry.path end - + def test_browse_at_given_revision get :show, :id => 3, :path => ['images'], :rev => '7234cb2750b63f47bff735edc50a1c0a433c2518' assert_response :success @@ -105,7 +105,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert_template 'changes' assert_tag :tag => 'h2', :content => 'edit.png' end - + def test_entry_show get :entry, :id => 3, :path => ['sources', 'watchers_controller.rb'] assert_response :success @@ -116,14 +116,14 @@ class RepositoriesGitControllerTest < ActionController::TestCase :attributes => { :class => /line-num/ }, :sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ } end - + def test_entry_download get :entry, :id => 3, :path => ['sources', 'watchers_controller.rb'], :format => 'raw' assert_response :success # File content assert @response.body.include?('WITHOUT ANY WARRANTY') end - + def test_directory_entry get :entry, :id => 3, :path => ['sources'] assert_response :success |