blob: 837295334236ed5e99d19d11ba07a85657f691be (
plain)
1
2
3
4
5
6
|
it "destroy action should destroy model and redirect to index action" do
<%= 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
|