spec/kontena/cli/app/docker_helper_spec.rb in kontena-cli-0.16.0.pre5 vs spec/kontena/cli/app/docker_helper_spec.rb in kontena-cli-0.16.0.pre6

- old
+ new

@@ -87,11 +87,11 @@ expect(subject).to receive(:system).with("echo PREBUILD1"). and_return(true) expect(subject).to receive(:system).with("some_non_existing_command"). and_return(false) expect { subject.process_docker_images(services_with_invalid_hook) - }.to raise_error(SystemExit) + }.to raise_error(StandardError) end end context 'when no hook defined' do it 'runs no hooks' do allow(subject).to receive(:build_docker_image) @@ -132,10 +132,10 @@ subject.build_docker_image(service) end it 'builds image' do service = { - 'build' => { + 'build' => { 'context' => '.', 'args' => { 'FOO' => 'bar', 'BAR' => 'foo' }