Sha256: 91b1d187ee73822956af2b8511c361bbee16705967465564e2a5c1e33d767df8

Contents?: true

Size: 575 Bytes

Versions: 24

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'

describe SimpleDeploy::StackDestroyer do
  include_context 'stubbed config'
  include_context 'double stubbed logger'

  it "should destroy the stack" do
    cloud_formation_mock = mock 'cloud formation mock'

    SimpleDeploy::AWS::CloudFormation.should_receive(:new).
                                      and_return cloud_formation_mock
    cloud_formation_mock.should_receive(:destroy).with 'test-stack'
                         
    stack_destroyer = SimpleDeploy::StackDestroyer.new :name   => 'test-stack'
    stack_destroyer.destroy
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
simple_deploy-0.10.2 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.10.1 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.10.0 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.10.0.beta.3 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.10.0.beta.2 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.10.0.beta.1 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.9.2 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.9.1 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.9.0 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.8.2 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.8.2.beta1 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.8.1.beta1 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.8.0 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.7.8 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.7.7 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.7.7.beta.1 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.7.6 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.7.6.beta.6 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.7.6.beta.5 spec/stack/stack_destroyer_spec.rb
simple_deploy-0.7.6.beta.3 spec/stack/stack_destroyer_spec.rb