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

2011-03-22 Thread jnimety
I just ran into this. I had added a bit of code to allow reload Factories in the rails console. This was causing the Factories to reload on every request, resetting my factory sequences, causing the validation errors. Hope this helps. On Feb 8, 3:17 pm, The Ultimation wrote: > Nick Hoffman wrot

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

2011-02-08 Thread The Ultimation
Nick Hoffman wrote in post #980380: > 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 =>

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

2011-02-08 Thread Nick
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

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

2011-02-08 Thread The Ultimation
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) response.should render_template(:edit) end Failure/Error: get :edit, :id => Factory(:equi