Sha256: 953c5eb56a4b501605dad4d86964a006b7d7345f3b005643de7bf0c93034cbd5
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
require 'spec_helper' require 'simple_deploy/cli' describe SimpleDeploy::CLI::Update do include_context 'cli config' include_context 'double stubbed logger' include_context 'received stack array', 'my_stack', 'my_env', 1 describe 'update' do before do @stack_mock1.stub(:attributes).and_return({}) end it "should pass force true" do options = { :environment => 'my_env', :log_level => 'debug', :name => ['my_stack1'], :force => true, :attributes => ['chef_repo_bucket_prefix=intu-lc'] } subject.should_receive(:valid_options?). with(:provided => options, :required => [:environment, :name]) Trollop.stub(:options).and_return(options) @stack_mock1.should_receive(:update).with(hash_including(:force => true)) subject.update end it "should pass force false" do options = { :environment => 'my_env', :log_level => 'debug', :name => ['my_stack1'], :force => false, :attributes => ['chef_repo_bucket_prefix=intu-lc'] } subject.should_receive(:valid_options?). with(:provided => options, :required => [:environment, :name]) Trollop.stub(:options).and_return(options) @stack_mock1.should_receive(:update).with(hash_including(:force => false)) subject.update end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.7.3 | spec/cli/update_spec.rb |