@@ -1,8 +1,5 | |||
|
1 | 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 | 3 | require File.expand_path('../../../../../../test_helper', __FILE__) |
|
7 | 4 | begin |
|
8 | 5 | require 'mocha' |
@@ -10,7 +7,6 begin | |||
|
10 | 7 | class GitAdapterTest < ActiveSupport::TestCase |
|
11 | 8 | REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s |
|
12 | 9 | |
|
13 | FELIX_UTF8 = "Felix Schäfer" | |
|
14 | 10 | FELIX_HEX = "Felix Sch\xC3\xA4fer" |
|
15 | 11 | CHAR_1_HEX = "\xc3\x9c" |
|
16 | 12 | |
@@ -381,7 +377,6 begin | |||
|
381 | 377 | def test_last_rev_with_spaces_in_filename |
|
382 | 378 | last_rev = @adapter.lastrev("filemane with spaces.txt", |
|
383 | 379 | "ed5bb786bbda2dee66a2d50faf51429dbc043a7b") |
|
384 | str_felix_utf8 = FELIX_UTF8.dup | |
|
385 | 380 | str_felix_hex = FELIX_HEX.dup |
|
386 | 381 | last_rev_author = last_rev.author |
|
387 | 382 | if last_rev_author.respond_to?(:force_encoding) |
@@ -389,8 +384,6 begin | |||
|
389 | 384 | end |
|
390 | 385 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.scmid |
|
391 | 386 | assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier |
|
392 | assert_equal "#{str_felix_utf8} <felix@fachschaften.org>", | |
|
393 | last_rev.author | |
|
394 | 387 | assert_equal "#{str_felix_hex} <felix@fachschaften.org>", |
|
395 | 388 | last_rev.author |
|
396 | 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