Sha256: da342ee1917ebba3a7e6b500c52d40401f9d953d246a124028433365736006ab

Contents?: true

Size: 316 Bytes

Versions: 35

Compression:

Stored size: 316 Bytes

Contents

  context "destroy action" do
    should "destroy model and redirect to index action" do
      <%= instance_name %> = <%= class_name %>.first
      delete :destroy, :id => <%= instance_name %>
      assert_redirected_to <%= items_url %>
      assert !<%= class_name %>.exists?(<%= instance_name %>.id)
    end
  end

Version data entries

35 entries across 30 versions & 12 rubygems

Version Path
aslon_scaffold-0.0.15 lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
aslon_scaffold-0.0.15 lib/generators/nifty/aslon/templates/tests/shoulda/actions/destroy.rb
aslon_scaffold-0.0.14 lib/generators/nifty/aslon/templates/tests/shoulda/actions/destroy.rb
aslon_scaffold-0.0.14 lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
aslon_scaffold-0.0.13 lib/generators/nifty/aslon/templates/tests/shoulda/actions/destroy.rb
aslon_scaffold-0.0.13 lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
tripper-0.0.3d lib/generators/tripper/templates/tests/shoulda/actions/destroy.rb
tripper-0.0.3d lib/generators/tripper/from_community/templates/tests/shoulda/actions/destroy.rb
aslon_scaffold-0.0.12 lib/generators/nifty/aslon/templates/tests/shoulda/actions/destroy.rb
aslon_scaffold-0.0.12 lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
bravo-generators-0.1.1 lib/generators/bravo/scaffold/templates/tests/shoulda/actions/destroy.rb
kickoff-0.0.2 lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/destroy.rb
bootstrapped-0.0.6 lib/generators/bootstrapped/scaffold/templates/tests/shoulda/actions/destroy.rb
bootstrapped-0.0.4 lib/generators/bootstrapped/scaffold/templates/tests/shoulda/actions/destroy.rb
entropi-bootstrap-rails-0.1.0 lib/generators/bootstrap/scaffold/templates/tests/shoulda/actions/destroy.rb
nifty-generators-improved-0.5 lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
flockonus-nifty-generators-0.0.12 lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
zoo-generators-0.1.0 lib/generators/zoo/scaffold/templates/tests/shoulda/actions/destroy.rb
fetty-generators-1.7.1 lib/generators/fetty/scaffold/templates/tests/shoulda/actions/destroy.rb
nifty-generators-0.4.6 lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb