Sha256: 41a92c6aaf4e583dd4b3adc17933b0f32db5aac98eb4facb009fefc985e1ddc7
Contents?: true
Size: 324 Bytes
Versions: 104
Compression:
Stored size: 324 Bytes
Contents
context "destroy action" do should "destroy model and redirect to index action" do <%= singular_name %> = <%= class_name %>.first delete :destroy, :id => <%= singular_name %> assert_redirected_to <%= items_path('url') %> assert !<%= class_name %>.exists?(<%= singular_name %>.id) end end
Version data entries
104 entries across 83 versions & 16 rubygems