summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-01-19 04:03:01 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-01-19 04:03:01 +0000
commit75b5ff5e75d15ff912800a482e1059141f605595 (patch)
tree6ae1393ef57971ce1371d0a6c4b110fb1a6f2456 /test/unit/repository_cvs_test.rb
parente3ee940745b11cf78ecde07949274bf13653a71d (diff)
downloadredmine-75b5ff5e75d15ff912800a482e1059141f605595.tar.gz
redmine-75b5ff5e75d15ff912800a482e1059141f605595.zip
pin order at RepositoryCvsTest#test_entries_rev3
git-svn-id: http://svn.redmine.org/redmine/trunk@13915 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index 86e3737e4..ef29d5b20 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -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