Sha256: 63a5731d0d0a970ef8c5583c465e362acb20d5b811444b56ad3ae265076083cf
Contents?: true
Size: 581 Bytes
Versions: 7
Compression:
Stored size: 581 Bytes
Contents
describe RuboCop::Cop::RSpec::MessageChain do subject(:cop) { described_class.new } it 'finds `receive_message_chain`' do expect_violation(<<-RUBY) before do allow(foo).to receive_message_chain(:one, :two) { :three } ^^^^^^^^^^^^^^^^^^^^^ Avoid stubbing using `receive_message_chain` end RUBY end it 'finds old `stub_chain` syntax' do expect_violation(<<-RUBY) before do foo.stub_chain(:one, :two).and_return(:three) ^^^^^^^^^^ Avoid stubbing using `stub_chain` end RUBY end end
Version data entries
7 entries across 7 versions & 1 rubygems