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")

//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

Reply via email to