Skip to content

Commit

Permalink
Fix a build error
Browse files Browse the repository at this point in the history
This commit fixes the following build error.

```console
% bundle exec rubocop -a
(snip)

Offenses:

spec/rubocop/cop/rails/where_missing_spec.rb:258:5: C: [Correctable]
Layout/RedundantLineBreak: Redundant line break detected.
    it 'does not register an offense when ' \ ...
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

267 files inspected, 1 offense detected, 1 offense autocorrectable
```
  • Loading branch information
koic committed Aug 2, 2022
1 parent 3b69c61 commit a4fa778
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/rubocop/cop/rails/where_missing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ def test
RUBY
end

it 'does not register an offense when ' \
'`left_joins` and `where` argument is not same relationship' do
it 'does not register an offense when `left_joins` and `where` argument is not same relationship' do
expect_no_offenses(<<~RUBY)
Foo.left_joins(:foo).where(bazs: { id: nil })
Foo.left_joins(:foobar).where(foo: { id: nil })
Expand Down

0 comments on commit a4fa778

Please sign in to comment.