Postgresql 8.3 compatibility fix (#834).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1363 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -35,13 +35,13 @@ class RepositoryDarcsTest < Test::Unit::TestCase
|
||||
|
||||
assert_equal 6, @repository.changesets.count
|
||||
assert_equal 13, @repository.changes.count
|
||||
assert_equal "Initial commit.", @repository.changesets.find_by_revision(1).comments
|
||||
assert_equal "Initial commit.", @repository.changesets.find_by_revision('1').comments
|
||||
end
|
||||
|
||||
def test_fetch_changesets_incremental
|
||||
@repository.fetch_changesets
|
||||
# Remove changesets with revision > 3
|
||||
@repository.changesets.find(:all, :conditions => 'revision > 3').each(&:destroy)
|
||||
@repository.changesets.find(:all).each {|c| c.destroy if c.revision.to_i > 3}
|
||||
@repository.reload
|
||||
assert_equal 3, @repository.changesets.count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user