Sha256: 6477dcccb7e3cbde51ba8ecec7d7b560c406c6639ba63e2b918e3dd199502213

Contents?: true

Size: 728 Bytes

Versions: 51

Compression:

Stored size: 728 Bytes

Contents

describe 'Kumogata::Client#show_outputs' do
  it 'show outputs' do

    outputs = run_client(:show_outputs, :arguments => ['MyStack']) do |client, cf|
      output = make_double('output') do |obj|
        obj.should_receive(:key) { 'AZ' }
        obj.should_receive(:value) { 'ap-northeast-1a' }
      end

      stack = make_double('stack') do |obj|
        obj.should_receive(:status) { 'CREATE_COMPLETE' }
        obj.should_receive(:outputs) { [output] }
      end

      stacks = make_double('stacks') do |obj|
        obj.should_receive(:[]).with('MyStack') { stack }
      end

      cf.should_receive(:stacks) { stacks }
    end

    expect(outputs).to eq((<<-EOS).chomp)
{
  "AZ": "ap-northeast-1a"
}
    EOS
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
kumogata-0.5.2 spec/kumogata_show_outputs_spec.rb
kumogata-0.5.2.beta2 spec/kumogata_show_outputs_spec.rb
kumogata-0.5.2.beta spec/kumogata_show_outputs_spec.rb
kumogata-0.5.1 spec/kumogata_show_outputs_spec.rb
kumogata-0.5.0 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.19 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.18 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.17 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.16 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.15 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.14 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.13 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.12 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.11 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.10 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.9 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.8 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.7 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.6 spec/kumogata_show_outputs_spec.rb
kumogata-0.4.5 spec/kumogata_show_outputs_spec.rb