Tuesday, October 18, 2016

Dumb RSpec Error

Why can't the dumb fucks provide a message that shows how to resolve the problem?

Stupid ass error:

Using `stub_chain` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead

Ideal Error:

You can use the new syntax to resolve this error:
allow(double).to receive_message_chain("foo.bar") { :baz }