diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-09 04:54:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-09 04:54:37 +0000 |
commit | 23a27bd6e413797b7b78d50587283c3150708141 (patch) | |
tree | 1a229df451ca136ed6c59d0a09015fc5f96ab071 /test/unit/changeset_test.rb | |
parent | e28ac7f8800d7d9ad8f5cb3de2cb510037abc5bd (diff) | |
download | redmine-23a27bd6e413797b7b78d50587283c3150708141.tar.gz redmine-23a27bd6e413797b7b78d50587283c3150708141.zip |
scm: fix indents of test/unit/changeset_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5711 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/changeset_test.rb')
-rw-r--r-- | test/unit/changeset_test.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 158bb34e5..36671b97d 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -327,32 +327,32 @@ class ChangesetTest < ActiveSupport::TestCase end def test_invalid_utf8_sequences_in_paths_should_be_replaced - proj = Project.find(3) - str1 = "Texte encod\xe9 en ISO-8859-1" - str2 = "\xe9a\xe9b\xe9c\xe9d\xe9e test" - str1.force_encoding("UTF-8") if str1.respond_to?(:force_encoding) - str2.force_encoding("ASCII-8BIT") if str2.respond_to?(:force_encoding) - r = Repository::Bazaar.create!( + proj = Project.find(3) + str1 = "Texte encod\xe9 en ISO-8859-1" + str2 = "\xe9a\xe9b\xe9c\xe9d\xe9e test" + str1.force_encoding("UTF-8") if str1.respond_to?(:force_encoding) + str2.force_encoding("ASCII-8BIT") if str2.respond_to?(:force_encoding) + r = Repository::Bazaar.create!( :project => proj, :url => '/tmp/test/bazaar', :log_encoding => 'UTF-8' ) - assert r - cs = Changeset.new( + assert r + cs = Changeset.new( :repository => r, :committed_on => Time.now, :revision => '123', :scmid => '12345', :comments => "test") - assert( cs.save ) - ch = Change.new( + assert(cs.save) + ch = Change.new( :changeset => cs, :action => "A", :path => str1, :from_path => str2, :from_revision => "345") - assert( ch.save ) - assert_equal "Texte encod? en ISO-8859-1", ch.path - assert_equal "?a?b?c?d?e test", ch.from_path + assert(ch.save) + assert_equal "Texte encod? en ISO-8859-1", ch.path + assert_equal "?a?b?c?d?e test", ch.from_path end def test_comments_nil |