##// END OF EJS Templates
scm: add test of committer nil at unit changeset test....
Toshi MARUYAMA -
r5351:dab753ba28c2
parent child
Show More
@@ -326,13 +326,15 class ChangesetTest < ActiveSupport::TestCase
326 :project => proj, :url => '/tmp/test/bazaar',
326 :project => proj, :url => '/tmp/test/bazaar',
327 :log_encoding => 'ISO-8859-1' )
327 :log_encoding => 'ISO-8859-1' )
328 assert r
328 assert r
329 c = Changeset.new(:repository => r,
329 c = Changeset.new(:repository => r,
330 :committed_on => Time.now,
330 :committed_on => Time.now,
331 :revision => '123',
331 :revision => '123',
332 :scmid => '12345',
332 :scmid => '12345',
333 :comments => nil)
333 :comments => nil,
334 :committer => nil)
334 assert( c.save )
335 assert( c.save )
335 assert_equal "", c.comments
336 assert_equal "", c.comments
337 assert_equal nil, c.committer
336 if c.comments.respond_to?(:force_encoding)
338 if c.comments.respond_to?(:force_encoding)
337 assert_equal "UTF-8", c.comments.encoding.to_s
339 assert_equal "UTF-8", c.comments.encoding.to_s
338 end
340 end
General Comments 0
You need to be logged in to leave comments. Login now