Sha256: e397a84e0db8881dab83c17508ae2500b293b2e735131a285ab1a0366bb32f81

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 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 %>)
    <%= class_name %>.exists?(<%= singular_name %>.id).should be_false
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stager-0.1.2 lib/generators/stager/scaffold/templates/spec/actions/destroy.rb
stager-0.1.1 lib/generators/stager/scaffold/templates/spec/actions/destroy.rb
stager-0.1.0 lib/generators/stager/scaffold/templates/spec/actions/destroy.rb