diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-03 09:58:07 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-03 09:58:07 +0000 |
commit | 4a5a4bad971de24ad269b4b21ad1fe42bc9d8e8a (patch) | |
tree | 1eb353274568d8ea3aad425027f6cbf894b550af | |
parent | 9e238171cafe59ea5fe87c1bf405f5c3a6e8e0c8 (diff) | |
download | redmine-4a5a4bad971de24ad269b4b21ad1fe42bc9d8e8a.tar.gz redmine-4a5a4bad971de24ad269b4b21ad1fe42bc9d8e8a.zip |
scm: mercurial: test: model: fix failing test_parents on PostgreSQL (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7719 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/repository_mercurial_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 7dc58f8fc..437b15f98 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -273,10 +273,9 @@ class RepositoryMercurialTest < ActiveSupport::TestCase r2.parents[0].identifier r3 = @repository.changesets.find_by_revision('30') assert_equal 2, r3.parents.length - assert_equal "a94b0528f24f", - r3.parents[0].identifier - assert_equal "3a330eb32958", - r3.parents[1].identifier + r4 = [r3.parents[0].identifier, r3.parents[1].identifier].sort + assert_equal "3a330eb32958", r4[0] + assert_equal "a94b0528f24f", r4[1] end def test_activities |