Fixed array indentation

This commit is contained in:
Brenda Wallace
2016-11-26 11:00:49 +13:00
parent 2eddaf90cf
commit 5f3dd04068
2 changed files with 2 additions and 8 deletions

View File

@@ -303,12 +303,6 @@ Rails/Validation:
- 'app/models/member.rb'
- 'app/models/order_item.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/AlignArray:
Exclude:
- 'spec/models/planting_spec.rb'
# Offense count: 93
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.

View File

@@ -152,8 +152,8 @@ describe Planting do
it 'all valid planted_from values should work' do
['seed', 'seedling', 'cutting', 'root division',
'runner', 'bare root plant', 'advanced plant',
'graft', 'layering', 'bulb', 'root/tuber', nil, ''].each do |p|
'runner', 'bare root plant', 'advanced plant',
'graft', 'layering', 'bulb', 'root/tuber', nil, ''].each do |p|
@planting = FactoryGirl.build(:planting, planted_from: p)
@planting.should be_valid
end