diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-04-12 06:53:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-04-12 06:53:04 +0000 |
commit | 8c6e5513a1c1748f0768944822cc607ed93fd24c (patch) | |
tree | f0abd58fc7124971d5b5cd010b0f8c413c5f6f99 /test | |
parent | b474ad67de5aa50489fedc136358563ea5eba324 (diff) | |
download | redmine-8c6e5513a1c1748f0768944822cc607ed93fd24c.tar.gz redmine-8c6e5513a1c1748f0768944822cc607ed93fd24c.zip |
Fixed tests failures (#19400).
git-svn-id: http://svn.redmine.org/redmine/trunk@14161 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 2 | ||||
-rw-r--r-- | test/unit/repository_git_test.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 0c55b571d..e774b93da 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -251,7 +251,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase def test_diff assert_equal true, @repository.is_default - assert_nil @repository.identifier + assert @repository.identifier.blank? assert_equal 0, @repository.changesets.count @repository.fetch_changesets @project.reload diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index be5726b81..20b72d04a 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -50,6 +50,8 @@ class RepositoryGitTest < ActiveSupport::TestCase end def test_nondefault_repo_with_blank_identifier_destruction + Repository.delete_all + repo1 = Repository::Git.new( :project => @project, :url => REPOSITORY_PATH, |