When I run a test with stub_chain, I\'ll get a deprecation warning.
describe \"stubbing a chain of methods\" do subject { Object.new } context \"given s
RSpec.configure do |config| config.mock_with :rspec do |c| c.syntax = [:should, :expect] end end
Notice that it's setting the rspec-mocks syntax, not the rspec-expectations syntax, as Paul's answer shows.