Sha256: 17b209358939c01f3c48300ae5a42502d259f75818c2dfd06c03364188f22075

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 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|
      stacks = double('status')

      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

2 entries across 2 versions & 1 rubygems

Version Path
kumogata-0.1.1 spec/kumogata_delete_spec.rb
kumogata-0.1.0 spec/kumogata_delete_spec.rb