class RuboCop::Cop::RSpec::SingleArgumentMessageChain

Checks that chains of messages contain more than one element.

@example

# bad
allow(foo).to receive_message_chain(:bar).and_return(42)

# good
allow(foo).to receive(:bar).and_return(42)

# also good
allow(foo).to receive(:bar, :baz)
allow(foo).to receive("bar.baz")