@@ -251,7 +251,7 class RepositoriesGitControllerTest < ActionController::TestCase | |||||
251 |
|
251 | |||
252 | def test_diff |
|
252 | def test_diff | |
253 | assert_equal true, @repository.is_default |
|
253 | assert_equal true, @repository.is_default | |
254 |
assert |
|
254 | assert @repository.identifier.blank? | |
255 | assert_equal 0, @repository.changesets.count |
|
255 | assert_equal 0, @repository.changesets.count | |
256 | @repository.fetch_changesets |
|
256 | @repository.fetch_changesets | |
257 | @project.reload |
|
257 | @project.reload |
@@ -50,6 +50,8 class RepositoryGitTest < ActiveSupport::TestCase | |||||
50 | end |
|
50 | end | |
51 |
|
51 | |||
52 | def test_nondefault_repo_with_blank_identifier_destruction |
|
52 | def test_nondefault_repo_with_blank_identifier_destruction | |
|
53 | Repository.delete_all | |||
|
54 | ||||
53 | repo1 = Repository::Git.new( |
|
55 | repo1 = Repository::Git.new( | |
54 | :project => @project, |
|
56 | :project => @project, | |
55 | :url => REPOSITORY_PATH, |
|
57 | :url => REPOSITORY_PATH, |
General Comments 0
You need to be logged in to leave comments.
Login now