spec/cli/destroy_spec.rb in simple_deploy-0.6.4 vs spec/cli/destroy_spec.rb in simple_deploy-0.6.5

- old
+ new

@@ -19,13 +19,13 @@ with(:log_level => 'debug'). and_return(@logger) end it "should exit with 0" do - SimpleDeploy::CLI::Shared.should_receive(:valid_options?). - with(:provided => @options, - :required => [:environment, :name]) + subject.should_receive(:valid_options?). + with(:provided => @options, + :required => [:environment, :name]) Trollop.stub(:options).and_return(@options) @stack.should_receive(:destroy).and_return(true) SimpleDeploy::Stack.should_receive(:new). @@ -41,12 +41,12 @@ e.status.should == 0 end end it "should exit with 1" do - SimpleDeploy::CLI::Shared.should_receive(:valid_options?). - with(:provided => @options, - :required => [:environment, :name]) + subject.should_receive(:valid_options?). + with(:provided => @options, + :required => [:environment, :name]) Trollop.stub(:options).and_return(@options) @stack.should_receive(:destroy).and_return(false) SimpleDeploy::Stack.should_receive(:new).