lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -58,10 +58,10 @@
#
# @param node [RuboCop::AST::Node]
# @yield [RuboCop::AST::Node] expectation, method name, matcher
def_node_matcher :expectation, <<~PATTERN
(send
- $(send nil? $#{Expectations::ALL.node_pattern_union} ...)
+ $(send nil? $#Expectations.all ...)
:to $_)
PATTERN
# @!method matcher_with_configured_response(node)
# Match matcher with a configured response