lib/rubocop/rspec/language.rb in rubocop-rspec-1.25.1 vs lib/rubocop/rspec/language.rb in rubocop-rspec-1.26.0
- old
+ new
@@ -25,11 +25,11 @@
def block_pattern
"(block #{send_pattern} ...)"
end
def send_pattern
- "(send _ #{node_pattern_union} ...)"
+ "(send {(const nil? :RSpec) nil?} #{node_pattern_union} ...)"
end
def node_pattern_union
"{#{node_pattern}}"
end
@@ -39,13 +39,9 @@
end
protected
attr_reader :selectors
- end
-
- module Matchers
- MESSAGE_CHAIN = SelectorSet.new(%i[receive_message_chain stub_chain])
end
module ExampleGroups
GROUPS = SelectorSet.new(%i[describe context feature example_group])
SKIPPED = SelectorSet.new(%i[xdescribe xcontext xfeature])