]> source.dussan.org Git - redmine.git/commitdiff
pin order at RepositoryCvsTest#test_entries_rev3
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 19 Jan 2015 04:03:01 +0000 (04:03 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 19 Jan 2015 04:03:01 +0000 (04:03 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13915 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_cvs_test.rb

index 86e3737e4bf044aa093bbe0510823f4a4eaa5435..ef29d5b20cf38ee2772c8c319924146937d603e4 100644 (file)
@@ -180,10 +180,11 @@ class RepositoryCvsTest < ActiveSupport::TestCase
       assert_equal "3", rev3_commit.revision
       assert_equal "LANG", rev3_commit.committer
       assert_equal 2, rev3_commit.filechanges.length
-      assert_equal "1.2", rev3_commit.filechanges[0].revision
-      assert_equal "1.2", rev3_commit.filechanges[1].revision
-      assert_equal "/README", rev3_commit.filechanges[0].path
-      assert_equal "/sources/watchers_controller.rb", rev3_commit.filechanges[1].path
+      filechanges = rev3_commit.filechanges.order(:path => :asc)
+      assert_equal "1.2", filechanges[0].revision
+      assert_equal "1.2", filechanges[1].revision
+      assert_equal "/README", filechanges[0].path
+      assert_equal "/sources/watchers_controller.rb", filechanges[1].path
 
       entries = @repository.entries('', '3')
       assert_kind_of Redmine::Scm::Adapters::Entries, entries