summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_subversion_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_subversion_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_subversion_test.rb')
-rw-r--r--test/unit/repository_subversion_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb
index 879feece8..7a1c9df4a 100644
--- a/test/unit/repository_subversion_test.rb
+++ b/test/unit/repository_subversion_test.rb
@@ -35,13 +35,13 @@ class RepositorySubversionTest < Test::Unit::TestCase
assert_equal 8, @repository.changesets.count
assert_equal 16, @repository.changes.count
- assert_equal 'Initial import.', @repository.changesets.find_by_revision(1).comments
+ assert_equal 'Initial import.', @repository.changesets.find_by_revision('1').comments
end
def test_fetch_changesets_incremental
@repository.fetch_changesets
# Remove changesets with revision > 5
- @repository.changesets.find(:all, :conditions => 'revision > 5').each(&:destroy)
+ @repository.changesets.find(:all).each {|c| c.destroy if c.revision.to_i > 5}
@repository.reload
assert_equal 5, @repository.changesets.count