Sha256: 13a6df8410a9796bd1239c098cd8b2b2dd63bf42f01726f852cb6db601425109

Contents?: true

Size: 820 Bytes

Versions: 5

Compression:

Stored size: 820 Bytes

Contents

require 'spec_helper'

describe Roark::Aws::CloudFormation::CreateStack do
  it "should create a stack" do
    stack_mock      = mock 'stack mock'
    cf_stub         = stub 'cf stub', :stacks => stack_mock
    connection_stub = stub 'connection stub', :cf => cf_stub

    parameters = [ { :parameter_key => "key", :parameter_value => 'a_val' } ]
    capabilities = ["CAPABILITY_IAM"]
    stack_mock.should_receive(:create).
               with("test123", "some json",
                    :capabilities => capabilities,
                    :parameters   => parameters)
    create_stack = Roark::Aws::CloudFormation::CreateStack.new connection_stub
    create_stack.create :name       => 'test123',
                        :template   => 'some json',
                        :parameters => { 'key' => 'a_val' }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roark-0.2.2 spec/create_stack_spec.rb
roark-0.2.1 spec/create_stack_spec.rb
roark-0.2.0 spec/create_stack_spec.rb
roark-0.1.0 spec/create_stack_spec.rb
roark-0.0.1 spec/create_stack_spec.rb