Module: RuboCop::RSpec::TopLevelDescribe

Overview

Helper methods for top level describe cops

Instance Method Summary collapse

Instance Method Details

#on_send(node) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/rubocop/rspec/top_level_describe.rb', line 7

def on_send(node)
  return unless respond_to?(:on_top_level_describe)
  return unless top_level_describe?(node)

  _receiver, _method_name, *args = *node

  on_top_level_describe(node, args)
end