@@ -237,7 +237,8 class ChangesetTest < ActiveSupport::TestCase | |||||
237 |
|
|
237 | str = "Texte encod\xe9 en ISO-8859-1." | |
238 |
|
|
238 | str.force_encoding("ASCII-8BIT") if str.respond_to?(:force_encoding) | |
239 |
|
|
239 | r = Repository::Bazaar.create!( | |
240 |
:project => proj, |
|
240 | :project => proj, | |
|
241 | :url => '/tmp/test/bazaar', | |||
241 | :log_encoding => 'ISO-8859-1' ) |
|
242 | :log_encoding => 'ISO-8859-1' ) | |
242 |
|
|
243 | assert r | |
243 |
|
|
244 | c = Changeset.new(:repository => r, | |
@@ -308,7 +309,8 class ChangesetTest < ActiveSupport::TestCase | |||||
308 |
|
|
309 | end | |
309 |
|
|
310 | proj = Project.find(3) | |
310 |
|
|
311 | r = Repository::Bazaar.create!( | |
311 |
:project => proj, |
|
312 | :project => proj, | |
|
313 | :url => '/tmp/test/bazaar', | |||
312 | :log_encoding => 'ISO-8859-1' ) |
|
314 | :log_encoding => 'ISO-8859-1' ) | |
313 |
|
|
315 | assert r | |
314 |
|
|
316 | c = Changeset.new(:repository => r, | |
@@ -323,7 +325,8 class ChangesetTest < ActiveSupport::TestCase | |||||
323 | def test_comments_nil |
|
325 | def test_comments_nil | |
324 |
|
|
326 | proj = Project.find(3) | |
325 |
|
|
327 | r = Repository::Bazaar.create!( | |
326 |
:project => proj, |
|
328 | :project => proj, | |
|
329 | :url => '/tmp/test/bazaar', | |||
327 | :log_encoding => 'ISO-8859-1' ) |
|
330 | :log_encoding => 'ISO-8859-1' ) | |
328 |
|
|
331 | assert r | |
329 |
|
|
332 | c = Changeset.new(:repository => r, | |
@@ -343,7 +346,8 class ChangesetTest < ActiveSupport::TestCase | |||||
343 | def test_comments_empty |
|
346 | def test_comments_empty | |
344 |
|
|
347 | proj = Project.find(3) | |
345 |
|
|
348 | r = Repository::Bazaar.create!( | |
346 |
:project => proj, |
|
349 | :project => proj, | |
|
350 | :url => '/tmp/test/bazaar', | |||
347 | :log_encoding => 'ISO-8859-1' ) |
|
351 | :log_encoding => 'ISO-8859-1' ) | |
348 |
|
|
352 | assert r | |
349 |
|
|
353 | c = Changeset.new(:repository => r, |
General Comments 0
You need to be logged in to leave comments.
Login now