Fixed tests failures (#19400).

git-svn-id: http://svn.redmine.org/redmine/trunk@14161 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-04-12 06:53:04 +00:00
parent b474ad67de
commit 8c6e5513a1
2 changed files with 3 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
def test_diff def test_diff
assert_equal true, @repository.is_default assert_equal true, @repository.is_default
assert_nil @repository.identifier assert @repository.identifier.blank?
assert_equal 0, @repository.changesets.count assert_equal 0, @repository.changesets.count
@repository.fetch_changesets @repository.fetch_changesets
@project.reload @project.reload

View File

@@ -50,6 +50,8 @@ class RepositoryGitTest < ActiveSupport::TestCase
end end
def test_nondefault_repo_with_blank_identifier_destruction def test_nondefault_repo_with_blank_identifier_destruction
Repository.delete_all
repo1 = Repository::Git.new( repo1 = Repository::Git.new(
:project => @project, :project => @project,
:url => REPOSITORY_PATH, :url => REPOSITORY_PATH,