]> source.dussan.org Git - redmine.git/commitdiff
Fixed tests failures (#19400).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Apr 2015 06:53:04 +0000 (06:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Apr 2015 06:53:04 +0000 (06:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14161 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_git_controller_test.rb
test/unit/repository_git_test.rb

index 0c55b571d4c228c561dcad57d47177ddce7c0fb2..e774b93da222a14c0e6297bc8986f22d5f7ffe3e 100644 (file)
@@ -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
index be5726b81ada439a33a020de1d8e3b23d0aa9712..20b72d04a93b1d81c824938170edcb409d02b8ae 100644 (file)
@@ -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,