diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 21:47:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 21:47:51 +0000 |
commit | 173b5ce965453cc365dda56ecf2aed145f99eb8c (patch) | |
tree | efd77302d9cbbd7025f81cd2803261c2cd98ad4b | |
parent | 34f838685bf7d99968ba6e1c645bd1dc2d2db4a1 (diff) | |
download | redmine-173b5ce965453cc365dda56ecf2aed145f99eb8c.tar.gz redmine-173b5ce965453cc365dda56ecf2aed145f99eb8c.zip |
scm: subversion: code clean up functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6231 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/repositories_subversion_controller_test.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index be4a21db4..d33bd38c0 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -303,7 +303,6 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase get :destroy, :id => PRJ_ID assert_response 302 - @project.reload assert_nil @project.repository end @@ -316,12 +315,12 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase get :destroy, :id => PRJ_ID assert_response 302 - @project.reload assert_nil @project.repository - @repository = Repository::Subversion.create(:project => @project, - :url => "file:///invalid") + @repository = Repository::Subversion.create( + :project => @project, + :url => "file:///invalid") assert @repository @repository.fetch_changesets @repository.reload @@ -329,11 +328,9 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase get :destroy, :id => PRJ_ID assert_response 302 - @project.reload assert_nil @project.repository end - else puts "Subversion test repository NOT FOUND. Skipping functional tests !!!" def test_fake; assert true end |