From a9a6abe40a98f3ddbcf44fe4882f89dd02cb65e2 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 1 Mar 2011 15:35:27 +0000 Subject: [PATCH] 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 --- test/unit/changeset_test.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 767192db..4da43d1c 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',