Skip to content

Commit

Permalink
Rubocop: Address Style/AlignHash warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nertzy committed Jul 21, 2015
1 parent 9815d23 commit 0125ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Expand Up @@ -10,12 +10,6 @@
Metrics/MethodLength:
Max: 21

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
Style/AlignHash:
Enabled: false

# Offense count: 42
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Expand Down
7 changes: 4 additions & 3 deletions spec/integration/associations_spec.rb
Expand Up @@ -67,7 +67,7 @@
ModelWithBelongsTo.create!(:title => 'abcdef')
]
excluded = ModelWithBelongsTo.create!(:title => 'mnopqr',
:another_model => AssociatedModel.create!(:title => 'stuvwx'))
:another_model => AssociatedModel.create!(:title => 'stuvwx'))

results = ModelWithBelongsTo.with_associated('abcdef')
expect(results.map(&:title)).to match_array(included.map(&:title))
Expand Down Expand Up @@ -173,7 +173,8 @@
belongs_to :model_of_second_type,
:class_name => 'SecondAssociatedModel'

pg_search_scope :with_associated, :against => :title,
pg_search_scope :with_associated,
:against => :title,
:associated_against => {:models_of_first_type => :title, :model_of_second_type => :title}
end
end
Expand Down Expand Up @@ -234,7 +235,7 @@
:foreign_key => 'ModelWithDoubleAssociation_again_id'

pg_search_scope :with_associated, :against => :title,
:associated_against => {:things => :title, :thingamabobs => :title}
:associated_against => {:things => :title, :thingamabobs => :title}
end
end

Expand Down

0 comments on commit 0125ade

Please sign in to comment.