[rspec-users] Mocking a non-existent method
dchelimsky at gmail.com
Fri Aug 17 02:59:27 EDT 2007
On 8/16/07, Joe Van Dyk <joevandyk at gmail.com> wrote:
> I don't like this:
> i = mock(Integer)
> puts i.asdfasdf
> Shouldn't rspec check to see that :asdfasdf is a valid message to be
> sending Integer?
Put simply: no. That's what integration testing is for.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users