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.3.10 spec/kumogata_delete_spec.rb
kumogata-0.3.9 spec/kumogata_delete_spec.rb
kumogata-0.3.8 spec/kumogata_delete_spec.rb
kumogata-0.3.7 spec/kumogata_delete_spec.rb
kumogata-0.3.6 spec/kumogata_delete_spec.rb
kumogata-0.3.5 spec/kumogata_delete_spec.rb