rubocop-rspec icon indicating copy to clipboard operation
rubocop-rspec copied to clipboard

Code style checking for RSpec files

Results 163 rubocop-rspec issues
Sort by recently updated
recently updated
newest added

I'm working on an app which is on RSpec 3 but relies on the rspec-collection matchers gem. We plan to gradually phase it out, but it would be useful to...

One thing we try to do, when we remember, is to collapse context descriptions when there is a single `it` block: ``` ruby # bad context 'when this thing' do...

enhancement
cop

``` ruby # Bad expect(foo).to eq nil # Good expect(foo).to be_nil ``` ``` ruby # Bad expect(foo.baz?).to eq true expect(foo.bar?).to eq false # Good expect(foo).to be_baz expect(foo).to_not be_bar ``` ```...