[rspec-users] Model validation failing in rspec for unknown reason

Nick nick at deadorange.com
Tue Feb 8 14:04:40 EST 2011

On Tuesday, February 8, 2011 12:25:30 PM UTC-5, The Ultimation wrote:
> Hi, i'm getting the following error when running a spec on my controller
> for my Equipment model.
>     it "edit action should render edit template" do
>       get :edit, :id => Factory(:equipment)
Shouldn't you pass an ID to the "id" key, rather than a model instance? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110208/883e47e0/attachment.html>

More information about the rspec-users mailing list