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