spec/cli/deploy_spec.rb in simple_deploy-0.5.3 vs spec/cli/deploy_spec.rb in simple_deploy-0.5.4

- old
+ new

@@ -17,10 +17,11 @@ it "should notify on success" do options = { :environment => 'my_env', :log_level => 'debug', :name => ['my_stack'], :force => true, + :internal => false, :attributes => [] } SimpleDeploy::CLI::Shared.should_receive(:valid_options?). with(:provided => options, :required => [:environment, :name]) @@ -33,11 +34,12 @@ and_return(@notifier) SimpleDeploy::Stack.should_receive(:new). with(:environment => 'my_env', :logger => @logger, - :name => 'my_stack'). + :name => 'my_stack', + :internal => false). and_return(@stack) @stack.should_receive(:deploy).with(true).and_return(true) @notifier.should_receive(:send_deployment_complete_message) @@ -48,10 +50,11 @@ it "should exit on error with a status of 1" do options = { :environment => 'my_env', :log_level => 'debug', :name => ['my_stack'], :force => true, + :internal => false, :attributes => [] } SimpleDeploy::CLI::Shared.should_receive(:valid_options?). with(:provided => options, :required => [:environment, :name]) @@ -64,11 +67,12 @@ and_return(@notifier) SimpleDeploy::Stack.should_receive(:new). with(:environment => 'my_env', :logger => @logger, - :name => 'my_stack'). + :name => 'my_stack', + :internal => false). and_return(@stack) @stack.should_receive(:deploy).with(true).and_return(false) begin @@ -81,10 +85,11 @@ it "should update the deploy attributes if any are passed" do options = { :environment => 'my_env', :log_level => 'debug', :name => ['my_stack'], :force => true, + :internal => false, :attributes => ['foo=bah'] } SimpleDeploy::CLI::Shared.should_receive(:valid_options?). with(:provided => options, :required => [:environment, :name]) @@ -97,10 +102,11 @@ and_return(@notifier) SimpleDeploy::Stack.should_receive(:new). with(:environment => 'my_env', :logger => @logger, - :name => 'my_stack'). + :name => 'my_stack', + :internal => false). and_return(@stack) @stack.should_receive(:update).with(hash_including(:force => true, :attributes => [{'foo' => 'bah'}])) @stack.should_receive(:deploy).with(true).and_return(true) @notifier.should_receive(:send_deployment_complete_message)