Sha256: d50c8f16d83f0d7bd5b904e204a3624177857cc902f2b777ceef298fffef3e27
Contents?: true
Size: 329 Bytes
Versions: 3
Compression:
Stored size: 329 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems