Sha256: 920a48ba45553e88510b18d833efa0be0867e8721fc784f36a3e8bb62f91f13e
Contents?: true
Size: 310 Bytes
Versions: 87
Compression:
Stored size: 310 Bytes
Contents
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 end
Version data entries
87 entries across 66 versions & 13 rubygems