comparison test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @ 1517:dffacf8a6908 redmine-2.5

Update to Redmine SVN revision 13367 on 2.5-stable branch
author Chris Cannam
date Tue, 09 Sep 2014 09:29:00 +0100
parents e248c7af89ec
children
comparison
equal deleted inserted replaced
1516:b450a9d58aed 1517:dffacf8a6908
390 last_rev = @adapter.lastrev("README", 390 last_rev = @adapter.lastrev("README",
391 "4f26664364207fa8b1af9f8722647ab2d4ac5d43") 391 "4f26664364207fa8b1af9f8722647ab2d4ac5d43")
392 assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.scmid 392 assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.scmid
393 assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.identifier 393 assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.identifier
394 assert_equal "Adam Soltys <asoltys@gmail.com>", last_rev.author 394 assert_equal "Adam Soltys <asoltys@gmail.com>", last_rev.author
395 assert_equal "2009-06-24 05:27:38".to_time, last_rev.time 395 assert_equal Time.gm(2009, 6, 24, 5, 27, 38), last_rev.time
396 end 396 end
397 397
398 def test_last_rev_with_spaces_in_filename 398 def test_last_rev_with_spaces_in_filename
399 last_rev = @adapter.lastrev("filemane with spaces.txt", 399 last_rev = @adapter.lastrev("filemane with spaces.txt",
400 "ed5bb786bbda2dee66a2d50faf51429dbc043a7b") 400 "ed5bb786bbda2dee66a2d50faf51429dbc043a7b")
401 last_rev_author = last_rev.author 401 last_rev_author = last_rev.author
402 assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.scmid 402 assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.scmid
403 assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier 403 assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier
404 assert_equal "#{@str_felix_hex} <felix@fachschaften.org>", 404 assert_equal "#{@str_felix_hex} <felix@fachschaften.org>",
405 last_rev.author 405 last_rev.author
406 assert_equal "2010-09-18 19:59:46".to_time, last_rev.time 406 assert_equal Time.gm(2010, 9, 18, 19, 59, 46), last_rev.time
407 end 407 end
408 408
409 def test_latin_1_path 409 def test_latin_1_path
410 if WINDOWS_PASS 410 if WINDOWS_PASS
411 puts WINDOWS_SKIP_STR 411 puts WINDOWS_SKIP_STR