]> source.dussan.org Git - redmine.git/commitdiff
scm: add test of committer nil at unit changeset test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Apr 2011 14:22:04 +0000 (14:22 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Apr 2011 14:22:04 +0000 (14:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5471 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/changeset_test.rb

index f50a664fc99208d0f99cd79a0779fd942612ebfc..97f09b3b7592b2b8f00a4456f280ff4f3ccf301d 100644 (file)
@@ -326,13 +326,15 @@ class ChangesetTest < ActiveSupport::TestCase
             :project => proj, :url => '/tmp/test/bazaar',
             :log_encoding => 'ISO-8859-1' )
       assert r
-      c = Changeset.new(:repository => r,
+      c = Changeset.new(:repository   => r,
                         :committed_on => Time.now,
-                        :revision => '123',
-                        :scmid => '12345',
-                        :comments => nil)
+                        :revision     => '123',
+                        :scmid        => '12345',
+                        :comments     => nil,
+                        :committer    => nil)
       assert( c.save )
       assert_equal "", c.comments
+      assert_equal nil, c.committer
       if c.comments.respond_to?(:force_encoding)
         assert_equal "UTF-8", c.comments.encoding.to_s
       end