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