Sha256: 7e10587323d94db4debbcabcc6e1cbe308931ae35eaba7c098ae7092f56d62da

Contents?: true

Size: 159 Bytes

Versions: 15

Compression:

Stored size: 159 Bytes

Contents

  it 'deletes destroy action and redirects' do
    @<%= singular_name %>.expects(:destroy)
    delete :destroy, :id => 1
    response.should be_redirect
  end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
scaffold_logic-2.0.0 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.9 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.8 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.7 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.6 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.5 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.4 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.3 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.2 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.1 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.7.0 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.6.3 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.6.2 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.6.1 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb
scaffold_logic-1.6.0 lib/generators/scaffold_logic/scaffold/templates/tests/rspec/actions/destroy.rb