Module: RuboCop::RSpec::TopLevelDescribe

Overview

Helper methods for top level describe cops

Instance Method Summary collapse

Instance Method Details

#on_send(node) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/rubocop/rspec/top_level_describe.rb', line 11

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