[rspec-users] stubbing with and without a string
mailing_lists at railsnewbie.com
Fri Apr 20 12:13:49 EDT 2007
What exactly does the mock_model do which is different from the
regular mock ?
On Apr 20, 2007, at 11:29 AM, David Chelimsky wrote:
> On 4/20/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
>> What is the difference between these two ways of mocking (with and
>> without the string):
> IIRC, using the #mock method, there is really no difference (are you
> observing any difference?). Using the Spec::Rails mock_model method,
> you must use the class instead of a String.
> There *was* talk at one point of adding a feature that would allow you
> to run examples w/ a command line switch that would look for all the
> mocks created w/ mock(Type) and report back if the type didn't
> actually support the expected methods. But that's not present so
> there's really no diff now.
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users