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

Version Path
dust-generators-0.2.8 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.8 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
flockonus-nifty-generators-0.0.12 rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.6 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.6 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.5 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.5 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.4 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.4 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.3 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.3 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.2 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.2 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.1 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.1 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.0 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.2.0 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.1.9 lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.1.9 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb
dust-generators-0.1.8 rails_generators/dust_scaffold/templates/tests/shoulda/actions/destroy.rb