spec/helpers_spec.rb in shuttle-deploy-0.2.0.beta4 vs spec/helpers_spec.rb in shuttle-deploy-0.2.0.beta5

- old
+ new

@@ -17,11 +17,15 @@ subject.log('message') end end describe '#error' do + before { subject.stub(:version).and_return(1) } + it 'prints an error message' do STDOUT.should_receive(:puts).with("\e[1m\e[31m----->\e[0m ERROR: message") + STDOUT.should_receive(:puts).with("\e[1m\e[31m----->\e[0m Release v1 aborted") + expect { subject.error('message') }.to raise_error Shuttle::DeployError end it 'raises a deploy error' do STDOUT.stub(:puts) \ No newline at end of file