]> source.dussan.org Git - redmine.git/commitdiff
fix assertion order at RepositoryCvsTest#test_entries_rev3
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 18 Jan 2015 16:40:59 +0000 (16:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 18 Jan 2015 16:40:59 +0000 (16:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13907 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_cvs_test.rb

index b4eb00808224ce1674fbbb9b44a64a9851c40786..86e3737e4bf044aa093bbe0510823f4a4eaa5435 100644 (file)
@@ -188,12 +188,12 @@ class RepositoryCvsTest < ActiveSupport::TestCase
       entries = @repository.entries('', '3')
       assert_kind_of Redmine::Scm::Adapters::Entries, entries
       assert_equal 3, entries.size
-      assert_equal entries[2].name, "README"
+      assert_equal "README", entries[2].name
       assert_equal 'UTF-8', entries[2].path.encoding.to_s
-      assert_equal entries[2].lastrev.time, Time.gm(2007, 12, 13, 16, 27, 22)
-      assert_equal entries[2].lastrev.identifier, '3'
-      assert_equal entries[2].lastrev.revision, '3'
-      assert_equal entries[2].lastrev.author, 'LANG'
+      assert_equal Time.gm(2007, 12, 13, 16, 27, 22), entries[2].lastrev.time
+      assert_equal '3', entries[2].lastrev.identifier
+      assert_equal '3', entries[2].lastrev.revision
+      assert_equal 'LANG', entries[2].lastrev.author
     end
 
     def test_entries_invalid_path