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 = "Texte encod\xe9 en ISO-8859-1."
|
||||||
str.force_encoding("ASCII-8BIT") if str.respond_to?(:force_encoding)
|
str.force_encoding("ASCII-8BIT") if str.respond_to?(:force_encoding)
|
||||||
r = Repository::Bazaar.create!(
|
r = Repository::Bazaar.create!(
|
||||||
:project => proj, :url => '/tmp/test/bazaar',
|
:project => proj,
|
||||||
|
:url => '/tmp/test/bazaar',
|
||||||
:log_encoding => 'ISO-8859-1' )
|
:log_encoding => 'ISO-8859-1' )
|
||||||
assert r
|
assert r
|
||||||
c = Changeset.new(:repository => r,
|
c = Changeset.new(:repository => r,
|
||||||
|
@ -308,7 +309,8 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
proj = Project.find(3)
|
proj = Project.find(3)
|
||||||
r = Repository::Bazaar.create!(
|
r = Repository::Bazaar.create!(
|
||||||
:project => proj, :url => '/tmp/test/bazaar',
|
:project => proj,
|
||||||
|
:url => '/tmp/test/bazaar',
|
||||||
:log_encoding => 'ISO-8859-1' )
|
:log_encoding => 'ISO-8859-1' )
|
||||||
assert r
|
assert r
|
||||||
c = Changeset.new(:repository => r,
|
c = Changeset.new(:repository => r,
|
||||||
|
@ -323,7 +325,8 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||||
def test_comments_nil
|
def test_comments_nil
|
||||||
proj = Project.find(3)
|
proj = Project.find(3)
|
||||||
r = Repository::Bazaar.create!(
|
r = Repository::Bazaar.create!(
|
||||||
:project => proj, :url => '/tmp/test/bazaar',
|
:project => proj,
|
||||||
|
:url => '/tmp/test/bazaar',
|
||||||
:log_encoding => 'ISO-8859-1' )
|
:log_encoding => 'ISO-8859-1' )
|
||||||
assert r
|
assert r
|
||||||
c = Changeset.new(:repository => r,
|
c = Changeset.new(:repository => r,
|
||||||
|
@ -343,7 +346,8 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||||
def test_comments_empty
|
def test_comments_empty
|
||||||
proj = Project.find(3)
|
proj = Project.find(3)
|
||||||
r = Repository::Bazaar.create!(
|
r = Repository::Bazaar.create!(
|
||||||
:project => proj, :url => '/tmp/test/bazaar',
|
:project => proj,
|
||||||
|
:url => '/tmp/test/bazaar',
|
||||||
:log_encoding => 'ISO-8859-1' )
|
:log_encoding => 'ISO-8859-1' )
|
||||||
assert r
|
assert r
|
||||||
c = Changeset.new(:repository => r,
|
c = Changeset.new(:repository => r,
|
||||||
|
|
Loading…
Reference in New Issue