It's worked since I started using rspec, but I started relatively
recently, and only on edge.
Nathan Sutton
[EMAIL PROTECTED]
rspec edge revision 3014
rspec_on_rails edge revision 3014
rails edge revision 8238
On Dec 3, 2007, at 1:23 PM, David Chelimsky wrote:
> On Dec 3, 2007 1:18 PM, Jarkko Laine <[EMAIL PROTECTED]> wrote:
>>
>> On 3.12.2007, at 21.05, Nathan Sutton wrote:
>>
>>> Department.stub!(:find_by_code).with("75").and_return("3")
>>
>> You can't use with() with stub! (only with should_receive), so just
>> leave it away:
>>
>> Department.stub!(:find_by_code).and_return("3")
>
> Actually, you can now, but it's not really documented.
>
>>
>> //jarkko
>>
>> --
>> Jarkko Laine
>> http://jlaine.net
>> http://dotherightthing.com
>> http://www.railsecommerce.com
>> http://odesign.fi
>>
>>
>>
>> _______________________________________________
>> 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
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users