Commit 5322b0dc authored by marutosijp's avatar marutosijp

Rails4: scm: reload repository after destroying changesets in incremental fetch test

git-svn-id: https://svn.redmine.org/redmine/trunk@12472 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent afcda1fc
......@@ -107,6 +107,7 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
# Remove changesets with revision > 5
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 2}
@project.reload
@repository.reload
assert_equal 2, @repository.changesets.count
@repository.fetch_changesets
......
......@@ -118,6 +118,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase
# Remove changesets with revision > 3
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 3}
@project.reload
@repository.reload
assert_equal 3, @repository.changesets.count
assert_equal %w|3 2 1|, @repository.changesets.all.collect(&:revision)
......
......@@ -81,6 +81,7 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
# Remove changesets with revision > 3
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 3}
@project.reload
@repository.reload
assert_equal 3, @repository.changesets.count
@repository.fetch_changesets
......
......@@ -104,6 +104,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
# Remove changesets with revision > 2
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 2}
@project.reload
@repository.reload
assert_equal 3, @repository.changesets.count
@repository.fetch_changesets
......
......@@ -77,6 +77,7 @@ class RepositorySubversionTest < ActiveSupport::TestCase
# Remove changesets with revision > 5
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 5}
@project.reload
@repository.reload
assert_equal 5, @repository.changesets.count
@repository.fetch_changesets
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment