describe :destroy do it "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 %>) <%= class_name %>.exists?(<%= singular_name %>.id).should be_false end end