rubocop-rspec-focused
Cop for focused specs.
# bad fit 'does something' do expect(foo).to be_empty end it 'does something', focus: true do expect(foo).to be_empty end # good it 'does something' do expect(foo).to be_empty end
Installation
Add this line to your application’s Gemfile:
gem 'rubocop-rspec-focused'
And then execute:
$ bundle
And add this to .rubocop.yml:
require: - rubocop/rspec/focused Rspec/Focused: Enabled: true
Contributing
- Fork it ( https://github.com/lovewithfood/rubocop-rspec-focused/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request