When destroying a user, remove all references to that user (#7296).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4726 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-01-16 14:27:02 +00:00
parent ced782ecb2
commit e809d40f4e
3 changed files with 245 additions and 10 deletions
+5 -6
View File
@@ -62,12 +62,11 @@ class RepositoryTest < ActiveSupport::TestCase
def test_should_not_create_with_disabled_scm
# disable Subversion
Setting.enabled_scm = ['Darcs', 'Git']
repository = Repository::Subversion.new(:project => Project.find(3), :url => "svn://localhost")
assert !repository.save
assert_equal I18n.translate('activerecord.errors.messages.invalid'), repository.errors.on(:type)
# re-enable Subversion for following tests
Setting.delete_all
with_settings :enabled_scm => ['Darcs', 'Git'] do
repository = Repository::Subversion.new(:project => Project.find(3), :url => "svn://localhost")
assert !repository.save
assert_equal I18n.translate('activerecord.errors.messages.invalid'), repository.errors.on(:type)
end
end
def test_scan_changesets_for_issue_ids