]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Style/HashSyntax in test/functional/issues_controller_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 7 Oct 2019 13:06:47 +0000 (13:06 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 7 Oct 2019 13:06:47 +0000 (13:06 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18618 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/functional/issues_controller_test.rb

index 961f887542195f99f8f97bcc21031b609a259fa1..b4691ea10b8b618d4fc0e9a82c0b7885727a9698 100644 (file)
@@ -1144,13 +1144,6 @@ Style/GlobalVars:
 Style/GuardClause:
   Enabled: false
 
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
-# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
-Style/HashSyntax:
-  Exclude:
-    - 'test/functional/issues_controller_test.rb'
-
 Style/IdenticalConditionalBranches:
   Exclude:
     - 'config/initializers/10-patches.rb'
index 609028a44d50512c5843e33cd25edf75582293a1..31bb2a9ab5e9f10f9202cc10b6a3a1e42b6a79b1 100644 (file)
@@ -3088,10 +3088,8 @@ class IssuesControllerTest < Redmine::ControllerTest
     @request.session[:user_id] = 2
     t = Tracker.find(3)
     assert !t.disabled_core_fields.include?('parent_issue_id')
-
     get :new, :params => {
-        :project_id => 1, issue: { parent_issue_id: 1
-      }
+        :project_id => 1, :issue => { parent_issue_id: 1 }
       }
     assert_response :success
     assert_select 'option', text: /#{t.name}/, count: 1
@@ -3100,8 +3098,7 @@ class IssuesControllerTest < Redmine::ControllerTest
     t.save!
     assert t.disabled_core_fields.include?('parent_issue_id')
     get :new, :params => {
-        :project_id => 1, issue: { parent_issue_id: 1
-      }
+        :project_id => 1, :issue => { parent_issue_id: 1 }
       }
     assert_response :success
     assert_select 'option', text: /#{t.name}/, count: 0