lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-2.22.0 vs lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-2.23.0
- old
+ new
@@ -32,10 +32,22 @@
# fdescribe 'test' do; end
#
# # good
# describe 'test' do; end
#
+ # # bad
+ # shared_examples 'test', focus: true do; end
+ #
+ # # good
+ # shared_examples 'test' do; end
+ #
+ # # bad
+ # shared_context 'test', focus: true do; end
+ #
+ # # good
+ # shared_context 'test' do; end
+ #
# # bad (does not support autocorrection)
# focus 'test' do; end
#
class Focus < Base
extend AutoCorrector
@@ -49,9 +61,10 @@
#ExampleGroups.regular
#ExampleGroups.skipped
#Examples.regular
#Examples.skipped
#Examples.pending
+ #SharedGroups.all
}
PATTERN
# @!method metadata(node)
def_node_matcher :metadata, <<-PATTERN