diff options
-rw-r--r-- | .rubocop_todo.yml | 2 | ||||
-rw-r--r-- | test/integration/lib/redmine/hook_test.rb | 16 |
2 files changed, 8 insertions, 10 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 9d2fbd964..6d56c75a0 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -47,7 +47,6 @@ Layout/CaseIndentation: # Cop supports --auto-correct. Layout/ClosingHeredocIndentation: Exclude: - - 'test/integration/lib/redmine/hook_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/markdown_formatter_test.rb' @@ -154,7 +153,6 @@ Layout/IndentFirstHashElement: # SupportedStyles: squiggly, active_support, powerpack, unindent Layout/IndentHeredoc: Exclude: - - 'test/integration/lib/redmine/hook_test.rb' - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb' - 'test/unit/lib/redmine/unified_diff_test.rb' - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb' diff --git a/test/integration/lib/redmine/hook_test.rb b/test/integration/lib/redmine/hook_test.rb index 72f221d96..0a9ff16cb 100644 --- a/test/integration/lib/redmine/hook_test.rb +++ b/test/integration/lib/redmine/hook_test.rb @@ -39,14 +39,14 @@ class HookTest < Redmine::IntegrationTest Redmine::Hook.clear_listeners class ContentForInsideHook < Redmine::Hook::ViewListener - render_on :view_welcome_index_left, :inline => <<-VIEW -<% content_for :header_tags do %> - <%= javascript_include_tag 'test_plugin.js', :plugin => 'test_plugin' %> - <%= stylesheet_link_tag 'test_plugin.css', :plugin => 'test_plugin' %> -<% end %> - -<p>ContentForInsideHook content</p> -VIEW + render_on :view_welcome_index_left, :inline => <<~VIEW + <% content_for :header_tags do %> + <%= javascript_include_tag 'test_plugin.js', :plugin => 'test_plugin' %> + <%= stylesheet_link_tag 'test_plugin.css', :plugin => 'test_plugin' %> + <% end %> + + <p>ContentForInsideHook content</p> + VIEW end class SingleRenderOn < Redmine::Hook::ViewListener |