lib/rubocop/cop/rspec/implicit_subject.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/implicit_subject.rb in rubocop-rspec-2.2.0
- old
+ new
@@ -29,9 +29,10 @@
class ImplicitSubject < Base
extend AutoCorrector
include ConfigurableEnforcedStyle
MSG = "Don't use implicit subject."
+ RESTRICT_ON_SEND = %i[is_expected should should_not].freeze
def_node_matcher :implicit_subject?, <<-PATTERN
(send nil? {:should :should_not :is_expected} ...)
PATTERN