summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 13:19:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 13:19:05 +0000
commit9d48754b32fab9938a54e39f3d4a6c42ab10e1ba (patch)
treead410146d9f7ac626daa4e61d76b4b8cd138f677
parentdaf4f93c1673df39c42ccd04a794cf2f42aa1ae8 (diff)
downloadredmine-9d48754b32fab9938a54e39f3d4a6c42ab10e1ba.tar.gz
redmine-9d48754b32fab9938a54e39f3d4a6c42ab10e1ba.zip
cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19257 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb13
2 files changed, 8 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 54c7eea67..2439f575e 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -19,7 +19,6 @@ Layout/AlignArguments:
- 'test/integration/api_test/memberships_test.rb'
- 'test/integration/api_test/projects_test.rb'
- 'test/integration/api_test/wiki_pages_test.rb'
- - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
index e69245d2f..803cbd5fc 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -434,9 +434,11 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
def test_update_section_with_hash_should_update_the_requested_section
replacement = "New text"
-
- assert_equal [STR_WITHOUT_PRE[0], replacement, STR_WITHOUT_PRE[2..4]].flatten.join("\n\n"),
- @formatter.new(TEXT_WITHOUT_PRE).update_section(2, replacement, Digest::MD5.hexdigest(STR_WITHOUT_PRE[1]))
+ assert_equal(
+ [STR_WITHOUT_PRE[0], replacement, STR_WITHOUT_PRE[2..4]].flatten.join("\n\n"),
+ @formatter.new(TEXT_WITHOUT_PRE).
+ update_section(2, replacement, Digest::MD5.hexdigest(STR_WITHOUT_PRE[1]))
+ )
end
def test_update_section_with_wrong_hash_should_raise_an_error
@@ -496,9 +498,10 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
def test_update_section_should_not_escape_pre_content_outside_section
text = STR_WITH_PRE.join("\n\n")
replacement = "New text"
-
- assert_equal [STR_WITH_PRE[0..1], "New text"].flatten.join("\n\n"),
+ assert_equal(
+ [STR_WITH_PRE[0..1], "New text"].flatten.join("\n\n"),
@formatter.new(text).update_section(3, replacement)
+ )
end
def test_get_section_should_support_lines_with_spaces_before_heading