lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -3,10 +3,12 @@ module RuboCop module Cop module RSpec # Checks if examples are focused. # + # This cop does not support autocorrection in some cases. + # # @example # # bad # describe MyClass, focus: true do # end # @@ -17,9 +19,25 @@ # end # # # good # describe MyClass do # end + # + # # bad + # fdescribe 'test' do; end + # + # # good + # describe 'test' do; end + # + # # bad + # fdescribe 'test' do; end + # + # # good + # describe 'test' do; end + # + # # bad (does not support autocorrection) + # focus 'test' do; end + # class Focus < Base extend AutoCorrector include RangeHelp MSG = 'Focused spec found.'