mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 06:46:01 +01:00
code cleanup: rubocop: fix Style/HashSyntax in test/functional/issues_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18618 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user