@@ -1,8 +1,5 | |||||
1 | # encoding: utf-8 |
|
1 | # encoding: utf-8 | |
2 |
|
2 | |||
3 | # This file includes UTF-8 "Felix Schäfer". |
|
|||
4 | # We need to consider Ruby 1.9 compatibility. |
|
|||
5 |
|
||||
6 | require File.expand_path('../../../../../../test_helper', __FILE__) |
|
3 | require File.expand_path('../../../../../../test_helper', __FILE__) | |
7 | begin |
|
4 | begin | |
8 | require 'mocha' |
|
5 | require 'mocha' | |
@@ -10,7 +7,6 begin | |||||
10 | class GitAdapterTest < ActiveSupport::TestCase |
|
7 | class GitAdapterTest < ActiveSupport::TestCase | |
11 | REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s |
|
8 | REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s | |
12 |
|
9 | |||
13 | FELIX_UTF8 = "Felix Schäfer" |
|
|||
14 | FELIX_HEX = "Felix Sch\xC3\xA4fer" |
|
10 | FELIX_HEX = "Felix Sch\xC3\xA4fer" | |
15 | CHAR_1_HEX = "\xc3\x9c" |
|
11 | CHAR_1_HEX = "\xc3\x9c" | |
16 |
|
12 | |||
@@ -381,7 +377,6 begin | |||||
381 | def test_last_rev_with_spaces_in_filename |
|
377 | def test_last_rev_with_spaces_in_filename | |
382 | last_rev = @adapter.lastrev("filemane with spaces.txt", |
|
378 | last_rev = @adapter.lastrev("filemane with spaces.txt", | |
383 | "ed5bb786bbda2dee66a2d50faf51429dbc043a7b") |
|
379 | "ed5bb786bbda2dee66a2d50faf51429dbc043a7b") | |
384 | str_felix_utf8 = FELIX_UTF8.dup |
|
|||
385 | str_felix_hex = FELIX_HEX.dup |
|
380 | str_felix_hex = FELIX_HEX.dup | |
386 | last_rev_author = last_rev.author |
|
381 | last_rev_author = last_rev.author | |
387 | if last_rev_author.respond_to?(:force_encoding) |
|
382 | if last_rev_author.respond_to?(:force_encoding) | |
@@ -389,8 +384,6 begin | |||||
389 | end |
|
384 | end | |
390 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.scmid |
|
385 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.scmid | |
391 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier |
|
386 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier | |
392 | assert_equal "#{str_felix_utf8} <felix@fachschaften.org>", |
|
|||
393 | last_rev.author |
|
|||
394 | assert_equal "#{str_felix_hex} <felix@fachschaften.org>", |
|
387 | assert_equal "#{str_felix_hex} <felix@fachschaften.org>", | |
395 | last_rev.author |
|
388 | last_rev.author | |
396 | assert_equal "2010-09-18 19:59:46".to_time, last_rev.time |
|
389 | assert_equal "2010-09-18 19:59:46".to_time, last_rev.time |
General Comments 0
You need to be logged in to leave comments.
Login now