summaryrefslogtreecommitdiffstats
path: root/test/unit/changeset_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-01 15:35:27 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-01 15:35:27 +0000
commitee0d7d9bf058f0ac4221d4e49d7c89f366cb09b6 (patch)
treea48142f3807c4aa785864240c732d60a40447f85 /test/unit/changeset_test.rb
parent270dda120c21a602cae40f3f817ce30ffeb22f3b (diff)
downloadredmine-ee0d7d9bf058f0ac4221d4e49d7c89f366cb09b6.tar.gz
redmine-ee0d7d9bf058f0ac4221d4e49d7c89f366cb09b6.zip
scm: code clean up test/unit/changeset_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4984 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/changeset_test.rb')
-rw-r--r--test/unit/changeset_test.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index 767192db0..4da43d1c9 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -185,12 +185,12 @@ class ChangesetTest < ActiveSupport::TestCase
assert_equal [2], c.issue_ids.sort
assert c.issues.first.project != c.project
end
-
+
def test_text_tag_revision
c = Changeset.new(:revision => '520')
assert_equal 'r520', c.text_tag
end
-
+
def test_text_tag_hash
c = Changeset.new(:scmid => '7234cb2750b63f47bff735edc50a1c0a433c2518', :revision => '7234cb2750b63f47bff735edc50a1c0a433c2518')
assert_equal 'commit:7234cb2750b63f47bff735edc50a1c0a433c2518', c.text_tag
@@ -236,7 +236,7 @@ class ChangesetTest < ActiveSupport::TestCase
assert( c.save )
assert_equal "Texte encodé en ISO-8859-1.", c.comments
end
-
+
def test_invalid_utf8_sequences_in_comments_should_be_stripped
proj = Project.find(3)
str = File.read("#{RAILS_ROOT}/test/fixtures/encoding/iso-8859-1.txt")
@@ -274,7 +274,6 @@ class ChangesetTest < ActiveSupport::TestCase
:project => proj, :url => '/tmp/test/bazaar',
:log_encoding => 'ISO-8859-1' )
assert r
- assert r
c = Changeset.new(:repository => r,
:committed_on => Time.now,
:revision => '123',