summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-12 08:45:54 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-12 08:45:54 +0000
commitb3d1deeece819ee25de1b3168393845780d6c51e (patch)
tree327c50539ec5bc580821764c91cee8c550a6ed8b /test/unit/lib
parent6e21ae720909f9980e58c9411fb9ed8a81f06833 (diff)
downloadredmine-b3d1deeece819ee25de1b3168393845780d6c51e.tar.gz
redmine-b3d1deeece819ee25de1b3168393845780d6c51e.zip
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
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/export/pdf_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb
index fe94d00f4..ca978d224 100644
--- a/test/unit/lib/redmine/export/pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf_test.rb
@@ -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