Sha256: 94cf2393d65c5fe610191a1ceefc94a88d11ac2fd7085fe2521f17e0dbbf53da

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ryanb-nifty-generators-0.1.1 rails_generators/nifty_scaffold/templates/action_specs/destroy.rb