summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-15 14:22:51 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-15 14:22:51 +0000
commitd7fccb0d8e489bf68ee57c1ad8492e983292b277 (patch)
treede8b3d956033e5fea77dbd1041e78b1a9b38db10 /test
parentdab753ba28c25c7cd059d735d7687200c03b5ffa (diff)
downloadredmine-d7fccb0d8e489bf68ee57c1ad8492e983292b277.tar.gz
redmine-d7fccb0d8e489bf68ee57c1ad8492e983292b277.zip
scm: add test of empty committer at unit changeset test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5472 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/changeset_test.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index 97f09b3b7..b3dbcf675 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -346,15 +346,18 @@ 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 => "")
+ :revision => '123',
+ :scmid => '12345',
+ :comments => "",
+ :committer => "")
assert( c.save )
assert_equal "", c.comments
+ assert_equal "", c.committer
if c.comments.respond_to?(:force_encoding)
assert_equal "UTF-8", c.comments.encoding.to_s
+ assert_equal "UTF-8", c.committer.encoding.to_s
end
end