mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 14:37:43 +02:00
Fix RuboCop offense Layout/SpaceInsideParens, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22954 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -510,7 +510,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||
:revision => '123',
|
||||
:scmid => '12345',
|
||||
:comments => str)
|
||||
assert( c.save )
|
||||
assert(c.save)
|
||||
assert_equal 'Texte encodé en ISO-8859-1.', c.comments
|
||||
end
|
||||
|
||||
@@ -530,7 +530,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||
:scmid => '12345',
|
||||
:comments => "Texte encod\xE9 en ISO-8859-1.",
|
||||
:committer => str2)
|
||||
assert( c.save )
|
||||
assert(c.save)
|
||||
assert_equal "Texte encod? en ISO-8859-1.", c.comments
|
||||
assert_equal "?a?b?c?d?e test", c.committer
|
||||
end
|
||||
@@ -550,7 +550,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||
:revision => '123',
|
||||
:scmid => '12345',
|
||||
:comments => str)
|
||||
assert( c.save )
|
||||
assert(c.save)
|
||||
assert_equal "test??test??", c.comments
|
||||
end
|
||||
|
||||
@@ -577,7 +577,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||
:revision => '123',
|
||||
:scmid => '12345',
|
||||
:comments => s1)
|
||||
assert( c.save )
|
||||
assert(c.save)
|
||||
assert_equal s4, c.comments
|
||||
end
|
||||
|
||||
@@ -628,7 +628,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||
:scmid => '12345',
|
||||
:comments => nil,
|
||||
:committer => nil)
|
||||
assert( c.save )
|
||||
assert(c.save)
|
||||
assert_equal "", c.comments
|
||||
assert_nil c.committer
|
||||
assert_equal "UTF-8", c.comments.encoding.to_s
|
||||
@@ -649,7 +649,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||
:scmid => '12345',
|
||||
:comments => "",
|
||||
:committer => "")
|
||||
assert( c.save )
|
||||
assert(c.save)
|
||||
assert_equal "", c.comments
|
||||
assert_equal "", c.committer
|
||||
assert_equal "UTF-8", c.comments.encoding.to_s
|
||||
|
||||
@@ -53,7 +53,7 @@ class IssueSubtaskingTest < ActiveSupport::TestCase
|
||||
with_settings :parent_issue_dates => 'derived' do
|
||||
parent = Issue.generate!
|
||||
parent.generate_child!(:start_date => '2010-01-25', :due_date => '2010-02-15')
|
||||
parent.generate_child!( :due_date => '2010-02-13')
|
||||
parent.generate_child!(:due_date => '2010-02-13')
|
||||
parent.generate_child!(:start_date => '2010-02-01', :due_date => '2010-02-22')
|
||||
parent.reload
|
||||
assert_equal Date.parse('2010-01-25'), parent.start_date
|
||||
|
||||
@@ -59,7 +59,7 @@ class PdfTest < ActiveSupport::TestCase
|
||||
def test_rdm_pdf_iconv_invalid_utf8_should_be_replaced_ja
|
||||
str1 = "Texte encod\xE9 en ISO-8859-1"
|
||||
str2 = "\xe9a\xe9b\xe9c\xe9d\xe9e test".b
|
||||
encoding = ( RUBY_PLATFORM == 'java' ? "SJIS" : "CP932" )
|
||||
encoding = (RUBY_PLATFORM == 'java' ? "SJIS" : "CP932")
|
||||
txt_1 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(str1, encoding)
|
||||
txt_2 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(str2, encoding)
|
||||
assert_equal "ASCII-8BIT", txt_1.encoding.to_s
|
||||
|
||||
Reference in New Issue
Block a user