lib/rubocop/cop/rspec/dialect.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/dialect.rb in rubocop-rspec-2.19.0
- old
+ new
@@ -47,10 +47,10 @@
include MethodPreference
MSG = 'Prefer `%<prefer>s` over `%<current>s`.'
# @!method rspec_method?(node)
- def_node_matcher :rspec_method?, send_pattern('#ALL.all')
+ def_node_matcher :rspec_method?, '(send #rspec? #ALL.all ...)'
def on_send(node)
return unless rspec_method?(node)
return unless preferred_methods[node.method_name]