Method: RuboCop::Cop::RSpec::ReceiveMessages#on_begin

Defined in:
lib/rubocop/cop/rspec/receive_messages.rb

#on_begin(node) ⇒ Object


63
64
65
66
67
68
69
# File 'lib/rubocop/cop/rspec/receive_messages.rb', line 63

def on_begin(node)
  repeated_receive_message(node).each do |item, repeated_lines, args|
    next if repeated_lines.empty?

    register_offense(item, repeated_lines, args)
  end
end