lib/generators/nifty/scaffold/templates/tests/rspec/actions/destroy.rb in nifty-generators-0.4.3 vs lib/generators/nifty/scaffold/templates/tests/rspec/actions/destroy.rb in nifty-generators-0.4.4

- old
+ new

@@ -1,6 +1,6 @@ it "destroy action should destroy model and redirect to index action" do - <%= singular_name %> = <%= class_name %>.first - delete :destroy, :id => <%= singular_name %> - response.should redirect_to(<%= items_path('url') %>) - <%= class_name %>.exists?(<%= singular_name %>.id).should be_false + <%= instance_name %> = <%= class_name %>.first + delete :destroy, :id => <%= instance_name %> + response.should redirect_to(<%= items_url %>) + <%= class_name %>.exists?(<%= instance_name %>.id).should be_false end