diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-15 14:22:04 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-15 14:22:04 +0000 |
commit | dab753ba28c25c7cd059d735d7687200c03b5ffa (patch) | |
tree | 9e76e86fd59caca34701b8c6b8583cef8d286a25 /test/unit/changeset_test.rb | |
parent | 5f8c4e07036605512f4bca0417614e5c5f54ced4 (diff) | |
download | redmine-dab753ba28c25c7cd059d735d7687200c03b5ffa.tar.gz redmine-dab753ba28c25c7cd059d735d7687200c03b5ffa.zip |
scm: add test of committer nil at unit changeset test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5471 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/changeset_test.rb')
-rw-r--r-- | test/unit/changeset_test.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index f50a664fc..97f09b3b7 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -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 |