rspec/rspec-expectations — Issue #93: Change have(n).things to have(n, :things)
Author: dchelimsky
Created: 2011-10-26 15:00:57+00:00
State: open

Per https://gist.github.com/893459, the `have(n).whatever` api can be confusing since `whatever` is handled by `method_missing`, so there is no clear place to search in the code or even rdoc to understand whatever is.

Proposal: change `have(n).whatever` to `have(n, :whatever)`. This reads out loud exactly the same way, and a user would who wanted to understand what `:whatever` would likely look to the right place in the rdoc to do so.

We can do this by presenting deprecation warnings from `method_missing` when used in this way for 2.x, and then removing support entirely in 3.0.