scm: code clean up unit changeset test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5473 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d7fccb0d8e
commit
2507bcd8e7
|
@ -237,7 +237,8 @@ class ChangesetTest < ActiveSupport::TestCase
|
|||
str = "Texte encod\xe9 en ISO-8859-1."
|
||||
str.force_encoding("ASCII-8BIT") if str.respond_to?(:force_encoding)
|
||||
r = Repository::Bazaar.create!(
|
||||
:project => proj, :url => '/tmp/test/bazaar',
|
||||
:project => proj,
|
||||
:url => '/tmp/test/bazaar',
|
||||
:log_encoding => 'ISO-8859-1' )
|
||||
assert r
|
||||
c = Changeset.new(:repository => r,
|
||||
|
@ -308,7 +309,8 @@ class ChangesetTest < ActiveSupport::TestCase
|
|||
end
|
||||
proj = Project.find(3)
|
||||
r = Repository::Bazaar.create!(
|
||||
:project => proj, :url => '/tmp/test/bazaar',
|
||||
:project => proj,
|
||||
:url => '/tmp/test/bazaar',
|
||||
:log_encoding => 'ISO-8859-1' )
|
||||
assert r
|
||||
c = Changeset.new(:repository => r,
|
||||
|
@ -323,7 +325,8 @@ class ChangesetTest < ActiveSupport::TestCase
|
|||
def test_comments_nil
|
||||
proj = Project.find(3)
|
||||
r = Repository::Bazaar.create!(
|
||||
:project => proj, :url => '/tmp/test/bazaar',
|
||||
:project => proj,
|
||||
:url => '/tmp/test/bazaar',
|
||||
:log_encoding => 'ISO-8859-1' )
|
||||
assert r
|
||||
c = Changeset.new(:repository => r,
|
||||
|
@ -343,7 +346,8 @@ class ChangesetTest < ActiveSupport::TestCase
|
|||
def test_comments_empty
|
||||
proj = Project.find(3)
|
||||
r = Repository::Bazaar.create!(
|
||||
:project => proj, :url => '/tmp/test/bazaar',
|
||||
:project => proj,
|
||||
:url => '/tmp/test/bazaar',
|
||||
:log_encoding => 'ISO-8859-1' )
|
||||
assert r
|
||||
c = Changeset.new(:repository => r,
|
||||
|
|
Loading…
Reference in New Issue