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
Here's a solution that worked for me - I'm using Rails 4.1.7 :
Inside spec/spec_helpber.rb, set rspec-expectations’ and/or rspec-mocks’ syntax as following:
RSpec.configure do |config|
config.mock_with :rspec do |mocks|
mocks.syntax = [:should, :expect]
end
config.expect_with :rspec do |expectations|
expectations.syntax = [:should, :expect]
end
end
Hope this helps someone else :)