Sha256: a81310107b83b3533249ed6742d4b418b9ba1b4663ca28a61688d0273327dec4

Contents?: true

Size: 238 Bytes

Versions: 114

Compression:

Stored size: 238 Bytes

Contents

  def test_destroy
    <%= singular_name %> = <%= class_name %>.first
    delete :destroy, :id => <%= singular_name %>
    assert_redirected_to <%= items_path('url') %>
    assert !<%= class_name %>.exists?(<%= singular_name %>.id)
  end

Version data entries

114 entries across 93 versions & 18 rubygems

Version Path
intinno-nifty-generators-0.2.5 rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb
rubycs-nifty-generators-compass-0.0.1 rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb
dust-generators-0.3.3 lib/generators/dust/scaffold/templates/tests/testunit/actions/destroy.rb
dust-generators-0.3.2 lib/generators/dust/scaffold/templates/tests/testunit/actions/destroy.rb
dust-generators-0.3.1 lib/generators/dust/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-2.0.0 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.9 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.8 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.7 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.6 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.5 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.4 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.3 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.2 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.1 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.7.0 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.6.3 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.6.2 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.6.1 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb
scaffold_logic-1.6.0 lib/generators/scaffold_logic/scaffold/templates/tests/testunit/actions/destroy.rb