scm: fix unit changeset_test.rb test methods calls randomly.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4924 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-22 12:16:08 +00:00
parent c37f638912
commit 4257b1d9ad
1 changed files with 5 additions and 3 deletions

View File

@ -214,10 +214,12 @@ class ChangesetTest < ActiveSupport::TestCase
end
def test_invalid_utf8_sequences_in_comments_should_be_stripped
with_settings :commit_logs_encoding => 'UTF-8' do
c = Changeset.new
c.comments = File.read("#{RAILS_ROOT}/test/fixtures/encoding/iso-8859-1.txt")
assert_equal "Texte encod en ISO-8859-1.", c.comments
end
end
def test_identifier
c = Changeset.find_by_revision('1')