summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_darcs_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-26 17:56:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-26 17:56:26 +0000
commitffbdc6b25bdce8abe83ee165b7a2ad6c7171f74b (patch)
tree0895aca8eab46a283069ddbb252b29a9dd5fb58e /test/unit/repository_darcs_test.rb
parent64474802f9dd6ad97aaf00e795fa1489c0af0042 (diff)
downloadredmine-ffbdc6b25bdce8abe83ee165b7a2ad6c7171f74b.tar.gz
redmine-ffbdc6b25bdce8abe83ee165b7a2ad6c7171f74b.zip
Postgresql 8.3 compatibility fix (#834).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1363 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_darcs_test.rb')
-rw-r--r--test/unit/repository_darcs_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/repository_darcs_test.rb b/test/unit/repository_darcs_test.rb
index 1228976f1..1c8c1b8dd 100644
--- a/test/unit/repository_darcs_test.rb
+++ b/test/unit/repository_darcs_test.rb
@@ -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