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'
@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
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