Sha256: 1e6fb72388f80525cadebdd491a8d825efcd256c6ac0cc82296c9df3f66de810
Contents?: true
Size: 1.14 KB
Versions: 15
Compression:
Stored size: 1.14 KB
Contents
describe Elasticity::BootstrapAction do subject do Elasticity::BootstrapAction.new('script', 'arg1', 'arg2') end its(:name) { should == 'Elasticity Bootstrap Action' } its(:script) { should == 'script' } its(:arguments) { should == %w(arg1 arg2) } describe '#to_aws_bootstrap_action' do let(:aws_bootstrap_step) { { :name => 'Elasticity Bootstrap Action', :script_bootstrap_action => { :path => 'script' } } } context 'when there are no arguments' do let(:bootstrap_action) { Elasticity::BootstrapAction.new('script') } it 'should create a proper bootstrap action' do expect(bootstrap_action.to_aws_bootstrap_action).to eq(aws_bootstrap_step) end end context 'when there are arguments' do let(:bootstrap_action) { Elasticity::BootstrapAction.new('script', 'arg1', 'arg2') } before do aws_bootstrap_step[:script_bootstrap_action][:args] = %w(arg1 arg2) end it 'should create a proper bootstrap action' do expect(subject.to_aws_bootstrap_action).to be_a_hash_including(aws_bootstrap_step) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems