rubocop style fix Style/AlignParameters

This commit is contained in:
Artem Chernikov 2014-07-30 23:32:29 +02:00
parent cb810e58ce
commit f8784fdcd8
5 changed files with 9 additions and 15 deletions

View file

@ -84,6 +84,10 @@ Lint/Void:
Style/AlignHash: Style/AlignHash:
Enabled: true Enabled: true
# Align the parameters of a method call if they span more than one line
Style/AlignParameters:
Enabled: true
AllCops: AllCops:
Include: Include:
- '**/Rakefile' - '**/Rakefile'

View file

@ -5,17 +5,8 @@
# Note that changes in the inspected code, or installation of new # Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again. # versions of RuboCop, may require this file to be generated again.
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
Style/AlignHash:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/AlignParameters:
Enabled: false
# Offense count: 2 # Offense count: 2
# Cop supports --auto-correct. # Cop supports --auto-correct.

View file

@ -19,8 +19,7 @@ describe Admin::ConferenceController do
context 'valid attributes' do context 'valid attributes' do
it 'locates the requested conference' do it 'locates the requested conference' do
patch :update, id: conference.short_title, conference: patch :update, id: conference.short_title, conference: attributes_for(:conference, title: 'Example Con')
attributes_for(:conference, title: 'Example Con')
expect(assigns(:conference)).to eq(conference) expect(assigns(:conference)).to eq(conference)
end end