scm: subversion: code clean up functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6231 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
34f838685b
commit
173b5ce965
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue