##// END OF EJS Templates
scm: code clean up unit changeset test....
Toshi MARUYAMA -
r5353:2507bcd8e7f8
parent child
Show More
@@ -237,7 +237,8 class ChangesetTest < ActiveSupport::TestCase
237 str = "Texte encod\xe9 en ISO-8859-1."
237 str = "Texte encod\xe9 en ISO-8859-1."
238 str.force_encoding("ASCII-8BIT") if str.respond_to?(:force_encoding)
238 str.force_encoding("ASCII-8BIT") if str.respond_to?(:force_encoding)
239 r = Repository::Bazaar.create!(
239 r = Repository::Bazaar.create!(
240 :project => proj, :url => '/tmp/test/bazaar',
240 :project => proj,
241 :url => '/tmp/test/bazaar',
241 :log_encoding => 'ISO-8859-1' )
242 :log_encoding => 'ISO-8859-1' )
242 assert r
243 assert r
243 c = Changeset.new(:repository => r,
244 c = Changeset.new(:repository => r,
@@ -308,7 +309,8 class ChangesetTest < ActiveSupport::TestCase
308 end
309 end
309 proj = Project.find(3)
310 proj = Project.find(3)
310 r = Repository::Bazaar.create!(
311 r = Repository::Bazaar.create!(
311 :project => proj, :url => '/tmp/test/bazaar',
312 :project => proj,
313 :url => '/tmp/test/bazaar',
312 :log_encoding => 'ISO-8859-1' )
314 :log_encoding => 'ISO-8859-1' )
313 assert r
315 assert r
314 c = Changeset.new(:repository => r,
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 proj = Project.find(3)
326 proj = Project.find(3)
325 r = Repository::Bazaar.create!(
327 r = Repository::Bazaar.create!(
326 :project => proj, :url => '/tmp/test/bazaar',
328 :project => proj,
329 :url => '/tmp/test/bazaar',
327 :log_encoding => 'ISO-8859-1' )
330 :log_encoding => 'ISO-8859-1' )
328 assert r
331 assert r
329 c = Changeset.new(:repository => r,
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 proj = Project.find(3)
347 proj = Project.find(3)
345 r = Repository::Bazaar.create!(
348 r = Repository::Bazaar.create!(
346 :project => proj, :url => '/tmp/test/bazaar',
349 :project => proj,
350 :url => '/tmp/test/bazaar',
347 :log_encoding => 'ISO-8859-1' )
351 :log_encoding => 'ISO-8859-1' )
348 assert r
352 assert r
349 c = Changeset.new(:repository => r,
353 c = Changeset.new(:repository => r,
General Comments 0
You need to be logged in to leave comments. Login now