lib/rubocop/cop/rspec/context_method.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/context_method.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -26,9 +26,10 @@
class ContextMethod < Base
extend AutoCorrector
MSG = 'Use `describe` for testing methods.'
+ # @!method context_method(node)
def_node_matcher :context_method, <<-PATTERN
(block (send #rspec? :context $(str #method_name?) ...) ...)
PATTERN
def on_block(node)