@@ -346,15 +346,18 class ChangesetTest < ActiveSupport::TestCase | |||||
346 | :project => proj, :url => '/tmp/test/bazaar', |
|
346 | :project => proj, :url => '/tmp/test/bazaar', | |
347 | :log_encoding => 'ISO-8859-1' ) |
|
347 | :log_encoding => 'ISO-8859-1' ) | |
348 | assert r |
|
348 | assert r | |
349 | c = Changeset.new(:repository => r, |
|
349 | c = Changeset.new(:repository => r, | |
350 | :committed_on => Time.now, |
|
350 | :committed_on => Time.now, | |
351 | :revision => '123', |
|
351 | :revision => '123', | |
352 | :scmid => '12345', |
|
352 | :scmid => '12345', | |
353 |
:comments => "" |
|
353 | :comments => "", | |
|
354 | :committer => "") | |||
354 | assert( c.save ) |
|
355 | assert( c.save ) | |
355 | assert_equal "", c.comments |
|
356 | assert_equal "", c.comments | |
|
357 | assert_equal "", c.committer | |||
356 | if c.comments.respond_to?(:force_encoding) |
|
358 | if c.comments.respond_to?(:force_encoding) | |
357 | assert_equal "UTF-8", c.comments.encoding.to_s |
|
359 | assert_equal "UTF-8", c.comments.encoding.to_s | |
|
360 | assert_equal "UTF-8", c.committer.encoding.to_s | |||
358 | end |
|
361 | end | |
359 | end |
|
362 | end | |
360 |
|
363 |
General Comments 0
You need to be logged in to leave comments.
Login now