##// END OF EJS Templates
Rails3: scm: bazaar: fix error of test_fetch_changesets_incremental at unit model test...
Toshi MARUYAMA -
r6953:1a99a5a64a79
parent child
Show More
@@ -44,14 +44,18 class RepositoryBazaarTest < ActiveSupport::TestCase
44 44 end
45 45
46 46 def test_fetch_changesets_incremental
47 assert_equal 0, @repository.changesets.count
47 48 @repository.fetch_changesets
49 @project.reload
50 assert_equal NUM_REV, @repository.changesets.count
48 51 # Remove changesets with revision > 5
49 52 @repository.changesets.find(:all).each {|c| c.destroy if c.revision.to_i > 2}
50 @repository.reload
53 @project.reload
51 54 assert_equal 2, @repository.changesets.count
52 55
53 56 @repository.fetch_changesets
54 assert_equal 4, @repository.changesets.count
57 @project.reload
58 assert_equal NUM_REV, @repository.changesets.count
55 59 end
56 60
57 61 def test_entries
General Comments 0
You need to be logged in to leave comments. Login now