search for: sectorscontrol

Displaying 1 result from an estimated 1 matches for "sectorscontrol".

2011 May 28
4
how can I investigate when a rspec test fails?
...do # Trigger the behavior that occurs when invalid params are submitted Sector.any_instance.stub(:save).and_return(false) post :create, :sector => {} response.should render_template("new") end I have the new template under app/views/sectors but the test says: SectorsController POST create with invalid params re-renders the ''new'' template Failure/Error: response.should render_template("new") expecting <"new"> but rendering with <""> -- You received this message because you are subscribed to the Goo...