lib/generators/nifty/scaffold/templates/tests/rspec/actions/create.rb in nifty-generators-0.4.0 vs lib/generators/nifty/scaffold/templates/tests/rspec/actions/create.rb in nifty-generators-0.4.1

- old
+ new

@@ -1,10 +1,10 @@ it "create action should render new template when model is invalid" do <%= class_name %>.any_instance.stubs(:valid?).returns(false) post :create response.should render_template(:new) end - + it "create action should redirect when model is valid" do <%= class_name %>.any_instance.stubs(:valid?).returns(true) post :create response.should redirect_to(<%= item_path_for_spec('url') %>) end