1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 23:11:12 +00:00

code cleanup: rubocop: fix Layout/ClosingHeredocIndentation and Layout/IndentHeredoc in test/integration/lib/redmine/hook_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18849 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-23 05:37:55 +00:00
parent 51380182e0
commit 6a6d5e4560
2 changed files with 7 additions and 9 deletions

View File

@ -47,7 +47,6 @@ Layout/CaseIndentation:
# Cop supports --auto-correct. # Cop supports --auto-correct.
Layout/ClosingHeredocIndentation: Layout/ClosingHeredocIndentation:
Exclude: Exclude:
- 'test/integration/lib/redmine/hook_test.rb'
- 'test/unit/lib/redmine/unified_diff_test.rb' - 'test/unit/lib/redmine/unified_diff_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb' - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb' - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
@ -154,7 +153,6 @@ Layout/IndentFirstHashElement:
# SupportedStyles: squiggly, active_support, powerpack, unindent # SupportedStyles: squiggly, active_support, powerpack, unindent
Layout/IndentHeredoc: Layout/IndentHeredoc:
Exclude: Exclude:
- 'test/integration/lib/redmine/hook_test.rb'
- 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb' - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
- 'test/unit/lib/redmine/unified_diff_test.rb' - 'test/unit/lib/redmine/unified_diff_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb' - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'

View File

@ -39,14 +39,14 @@ class HookTest < Redmine::IntegrationTest
Redmine::Hook.clear_listeners Redmine::Hook.clear_listeners
class ContentForInsideHook < Redmine::Hook::ViewListener class ContentForInsideHook < Redmine::Hook::ViewListener
render_on :view_welcome_index_left, :inline => <<-VIEW render_on :view_welcome_index_left, :inline => <<~VIEW
<% content_for :header_tags do %> <% content_for :header_tags do %>
<%= javascript_include_tag 'test_plugin.js', :plugin => 'test_plugin' %> <%= javascript_include_tag 'test_plugin.js', :plugin => 'test_plugin' %>
<%= stylesheet_link_tag 'test_plugin.css', :plugin => 'test_plugin' %> <%= stylesheet_link_tag 'test_plugin.css', :plugin => 'test_plugin' %>
<% end %> <% end %>
<p>ContentForInsideHook content</p> <p>ContentForInsideHook content</p>
VIEW VIEW
end end
class SingleRenderOn < Redmine::Hook::ViewListener class SingleRenderOn < Redmine::Hook::ViewListener