@@ -61,8 +61,10 begin | |||||
61 | ) |
|
61 | ) | |
62 | assert @adapter |
|
62 | assert @adapter | |
63 | @char_1 = CHAR_1_HEX.dup |
|
63 | @char_1 = CHAR_1_HEX.dup | |
|
64 | @str_felix_hex = FELIX_HEX.dup | |||
64 | if @char_1.respond_to?(:force_encoding) |
|
65 | if @char_1.respond_to?(:force_encoding) | |
65 | @char_1.force_encoding('UTF-8') |
|
66 | @char_1.force_encoding('UTF-8') | |
|
67 | @str_felix_hex.force_encoding('ASCII-8BIT') | |||
66 | end |
|
68 | end | |
67 | end |
|
69 | end | |
68 |
|
70 | |||
@@ -396,14 +398,10 begin | |||||
396 | def test_last_rev_with_spaces_in_filename |
|
398 | def test_last_rev_with_spaces_in_filename | |
397 | last_rev = @adapter.lastrev("filemane with spaces.txt", |
|
399 | last_rev = @adapter.lastrev("filemane with spaces.txt", | |
398 | "ed5bb786bbda2dee66a2d50faf51429dbc043a7b") |
|
400 | "ed5bb786bbda2dee66a2d50faf51429dbc043a7b") | |
399 | str_felix_hex = FELIX_HEX.dup |
|
|||
400 | last_rev_author = last_rev.author |
|
401 | last_rev_author = last_rev.author | |
401 | if last_rev_author.respond_to?(:force_encoding) |
|
|||
402 | str_felix_hex.force_encoding('ASCII-8BIT') |
|
|||
403 | end |
|
|||
404 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.scmid |
|
402 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.scmid | |
405 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier |
|
403 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier | |
406 | assert_equal "#{str_felix_hex} <felix@fachschaften.org>", |
|
404 | assert_equal "#{@str_felix_hex} <felix@fachschaften.org>", | |
407 | last_rev.author |
|
405 | last_rev.author | |
408 | assert_equal "2010-09-18 19:59:46".to_time, last_rev.time |
|
406 | assert_equal "2010-09-18 19:59:46".to_time, last_rev.time | |
409 | end |
|
407 | end |
General Comments 0
You need to be logged in to leave comments.
Login now