Sha256: 174b1aac264cdbc0f55a861060e4d9ae8871fc717823a9e12b4b99f5aa883669
Contents?: true
Size: 621 Bytes
Versions: 310
Compression:
Stored size: 621 Bytes
Contents
require 'spec_helper' describe DPL::Provider::Script do subject :provider do described_class.new(DummyContext.new, { script: script }) end let(:script) { 'scripts/deploy_script' } it 'runs command "script" given' do expect(provider.context).to receive(:shell).with(script) provider.push_app end context 'when script exits with nonzero status' do before :each do # TODO: Found a better way to test this Process::Status.any_instance.stub(:exitstatus).and_return(1) end it 'raises error' do expect { provider.push_app }.to raise_error(DPL::Error) end end end
Version data entries
310 entries across 310 versions & 2 rubygems