Fix rubocop warning (#39111, #40137).

git-svn-id: https://svn.redmine.org/redmine/trunk@22757 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-03-03 22:24:58 +00:00
parent 18cb44684b
commit 54aa810240
3 changed files with 8 additions and 8 deletions

View File

@@ -29,14 +29,14 @@ class HelpControllerTest < Redmine::ControllerTest
:common_mark => "Wiki Syntax Quick Reference (CommonMark Markdown (GitHub Flavored))"
}
formatters.each {|formatter, result|
formatters.each do |formatter, result|
with_settings :text_formatting => formatter do
get :show_wiki_syntax
assert_response :success
assert_select 'h1', :text => result
end
}
end
end
def test_get_help_wiki_syntax_detailed
@@ -46,7 +46,7 @@ class HelpControllerTest < Redmine::ControllerTest
:common_mark => "Wiki formatting (CommonMark Markdown (GitHub Flavored))"
}
formatters.each {|formatter, result|
formatters.each do |formatter, result|
with_settings :text_formatting => formatter do
get :show_wiki_syntax, :params => {
:type => 'detailed'
@@ -55,7 +55,7 @@ class HelpControllerTest < Redmine::ControllerTest
assert_response :success
assert_select 'h1', :text => result
end
}
end
end
def test_get_help_wiki_syntax_should_return_lang_if_available