##// END OF EJS Templates
scm: code clean up test/unit/changeset_test.rb....
Toshi MARUYAMA -
r4864:ee0d7d9bf058
parent child
Show More
@@ -185,12 +185,12 class ChangesetTest < ActiveSupport::TestCase
185 185 assert_equal [2], c.issue_ids.sort
186 186 assert c.issues.first.project != c.project
187 187 end
188
188
189 189 def test_text_tag_revision
190 190 c = Changeset.new(:revision => '520')
191 191 assert_equal 'r520', c.text_tag
192 192 end
193
193
194 194 def test_text_tag_hash
195 195 c = Changeset.new(:scmid => '7234cb2750b63f47bff735edc50a1c0a433c2518', :revision => '7234cb2750b63f47bff735edc50a1c0a433c2518')
196 196 assert_equal 'commit:7234cb2750b63f47bff735edc50a1c0a433c2518', c.text_tag
@@ -236,7 +236,7 class ChangesetTest < ActiveSupport::TestCase
236 236 assert( c.save )
237 237 assert_equal "Texte encodé en ISO-8859-1.", c.comments
238 238 end
239
239
240 240 def test_invalid_utf8_sequences_in_comments_should_be_stripped
241 241 proj = Project.find(3)
242 242 str = File.read("#{RAILS_ROOT}/test/fixtures/encoding/iso-8859-1.txt")
@@ -274,7 +274,6 class ChangesetTest < ActiveSupport::TestCase
274 274 :project => proj, :url => '/tmp/test/bazaar',
275 275 :log_encoding => 'ISO-8859-1' )
276 276 assert r
277 assert r
278 277 c = Changeset.new(:repository => r,
279 278 :committed_on => Time.now,
280 279 :revision => '123',
General Comments 0
You need to be logged in to leave comments. Login now