Sha256: 22b7ec2657084a1531f956991f60eb8899522f052774a3f8f3e472249e670e0d

Contents?: true

Size: 696 Bytes

Versions: 26

Compression:

Stored size: 696 Bytes

Contents

describe 'Kumogata::Client#delete' do
  it 'update a stack from Ruby template' do
    run_client(:delete, :arguments => ['MyStack'], :options => {:force => true}) do |client, cf|
      client.should_receive(:print_event_log).once
      client.should_receive(:create_event_log).once

      stack = make_double('stack') do |obj|
        obj.should_receive(:delete).with(no_args())
        obj.should_receive(:status).and_return(
            'DELETE_COMPLETE', 'DELETE_COMPLETE', 'DELETE_COMPLETE')
      end

      stacks = make_double('stacks') do |obj|
        obj.should_receive(:[])
           .with('MyStack') { stack }
      end

      cf.should_receive(:stacks) { stacks }
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
kumogata-0.4.15 spec/kumogata_delete_spec.rb
kumogata-0.4.14 spec/kumogata_delete_spec.rb
kumogata-0.4.13 spec/kumogata_delete_spec.rb
kumogata-0.4.12 spec/kumogata_delete_spec.rb
kumogata-0.4.11 spec/kumogata_delete_spec.rb
kumogata-0.4.10 spec/kumogata_delete_spec.rb
kumogata-0.4.9 spec/kumogata_delete_spec.rb
kumogata-0.4.8 spec/kumogata_delete_spec.rb
kumogata-0.4.7 spec/kumogata_delete_spec.rb
kumogata-0.4.6 spec/kumogata_delete_spec.rb
kumogata-0.4.5 spec/kumogata_delete_spec.rb
kumogata-0.4.4 spec/kumogata_delete_spec.rb
kumogata-0.4.3 spec/kumogata_delete_spec.rb
kumogata-0.4.2 spec/kumogata_delete_spec.rb
kumogata-0.4.1 spec/kumogata_delete_spec.rb
kumogata-0.4.0 spec/kumogata_delete_spec.rb
kumogata-0.3.14 spec/kumogata_delete_spec.rb
kumogata-0.3.13 spec/kumogata_delete_spec.rb
kumogata-0.3.12 spec/kumogata_delete_spec.rb
kumogata-0.3.11 spec/kumogata_delete_spec.rb