Skip to content

Commit

Permalink
Merge pull request #143 from koic/suppress_an_offenses_for_rails_pres…
Browse files Browse the repository at this point in the history
…ence_spec

Suppress an offense for rails/presence_spec.rb
  • Loading branch information
koic authored Oct 21, 2019
2 parents 4a16f2c + f63afc0 commit 6bb2e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rails/presence_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

it_behaves_like 'offense', 'a if a.present?', 'a.presence', 1, 1
it_behaves_like 'offense', 'a unless a.blank?', 'a.presence', 1, 1
it_behaves_like 'offense', <<~RUBY.chomp, <<~FIXED.chomp, 1, 7 # rubocop:disable Metrics/LineLength
it_behaves_like 'offense', <<~RUBY.chomp, <<~FIXED.chomp, 1, 7
if [1, 2, 3].map { |num| num + 1 }
.map { |num| num + 2 }
.present?
Expand Down

0 comments on commit 6bb2e9f

Please sign in to comment.