Sha256: f6e5659de2c3fcd57f9daf2ad2597fcb8704fbb0409cd9b7edb189c3c97c5565

Contents?: true

Size: 647 Bytes

Versions: 18

Compression:

Stored size: 647 Bytes

Contents

require 'spec_helper'

describe Stackster do

  it "should destroy the stack" do
    config_mock = mock 'config mock'
    cloud_formation_mock = mock 'cloud formation mock'
    Stackster::AWS::CloudFormation.should_receive(:new).
                                   with(:config => config_mock).
                                   and_return cloud_formation_mock
    cloud_formation_mock.should_receive(:destroy).with 'test-stack'
                         
    stack_destroyer = Stackster::StackDestroyer.new :name   => 'test-stack',
                                                    :config => config_mock
    stack_destroyer.destroy
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
stackster-0.4.4 spec/stack/stack_destroyer_spec.rb
stackster-0.4.3 spec/stack/stack_destroyer_spec.rb
stackster-0.4.2 spec/stack/stack_destroyer_spec.rb
stackster-0.4.1 spec/stack/stack_destroyer_spec.rb
stackster-0.4.0 spec/stack/stack_destroyer_spec.rb
stackster-0.3.2 spec/stack/stack_destroyer_spec.rb
stackster-0.3.1 spec/stack/stack_destroyer_spec.rb
stackster-0.3.0 spec/stack/stack_destroyer_spec.rb
stackster-0.2.9 spec/stack/stack_destroyer_spec.rb
stackster-0.2.8 spec/stack/stack_destroyer_spec.rb
stackster-0.2.7 spec/stack/stack_destroyer_spec.rb
stackster-0.2.6 spec/stack/stack_destroyer_spec.rb
stackster-0.2.5 spec/stack/stack_destroyer_spec.rb
stackster-0.2.4 spec/stack/stack_destroyer_spec.rb
stackster-0.2.3 spec/stack/stack_destroyer_spec.rb
stackster-0.2.2 spec/stack/stack_destroyer_spec.rb
stackster-0.2.1 spec/stack/stack_destroyer_spec.rb
stackster-0.2.0 spec/stack/stack_destroyer_spec.rb