]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation and Layout/IndentHeredoc...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 23 Oct 2019 05:37:55 +0000 (05:37 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 23 Oct 2019 05:37:55 +0000 (05:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18849 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/integration/lib/redmine/hook_test.rb

index 9d2fbd964d320adff542d638c996c01cc7fd11a3..6d56c75a0ef5a5b71bfa7a724d0335c57e1a2db5 100644 (file)
@@ -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'
index 72f221d96546a109d53e3dd7516a72b863fce594..0a9ff16cbae471d636810720af7678cc67e3ebae 100644 (file)
@@ -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