mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
daf4f93c16
commit
9d48754b32
@ -19,7 +19,6 @@ Layout/AlignArguments:
|
|||||||
- 'test/integration/api_test/memberships_test.rb'
|
- 'test/integration/api_test/memberships_test.rb'
|
||||||
- 'test/integration/api_test/projects_test.rb'
|
- 'test/integration/api_test/projects_test.rb'
|
||||||
- 'test/integration/api_test/wiki_pages_test.rb'
|
- 'test/integration/api_test/wiki_pages_test.rb'
|
||||||
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
||||||
|
|||||||
@ -434,9 +434,11 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
|||||||
|
|
||||||
def test_update_section_with_hash_should_update_the_requested_section
|
def test_update_section_with_hash_should_update_the_requested_section
|
||||||
replacement = "New text"
|
replacement = "New text"
|
||||||
|
assert_equal(
|
||||||
assert_equal [STR_WITHOUT_PRE[0], replacement, STR_WITHOUT_PRE[2..4]].flatten.join("\n\n"),
|
[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]))
|
@formatter.new(TEXT_WITHOUT_PRE).
|
||||||
|
update_section(2, replacement, Digest::MD5.hexdigest(STR_WITHOUT_PRE[1]))
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_update_section_with_wrong_hash_should_raise_an_error
|
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
|
def test_update_section_should_not_escape_pre_content_outside_section
|
||||||
text = STR_WITH_PRE.join("\n\n")
|
text = STR_WITH_PRE.join("\n\n")
|
||||||
replacement = "New text"
|
replacement = "New text"
|
||||||
|
assert_equal(
|
||||||
assert_equal [STR_WITH_PRE[0..1], "New text"].flatten.join("\n\n"),
|
[STR_WITH_PRE[0..1], "New text"].flatten.join("\n\n"),
|
||||||
@formatter.new(text).update_section(3, replacement)
|
@formatter.new(text).update_section(3, replacement)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_get_section_should_support_lines_with_spaces_before_heading
|
def test_get_section_should_support_lines_with_spaces_before_heading
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user