On 8/16/07, Joe Van Dyk <[EMAIL PROTECTED]> wrote:
> I don't like this:
>
> i = mock(Integer)
> i.should_receive(:asdfasdf).and_return('foo')
> 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.
>
> Joe
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users