Fix tests in models/execution_environment_spec.rb, uncomment @image in lib/docker_client.rb

This commit is contained in:
yqbk
2016-05-25 15:56:49 +02:00
parent 5dc8fb9774
commit 7bc3c4e27c
3 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ describe ExecutionEnvironment do
describe '#working_docker_image?', docker: true do
let(:working_docker_image?) { execution_environment.send(:working_docker_image?) }
before(:each) { expect(DockerClient).to receive(:find_image_by_tag) }
before(:each) { expect(DockerClient).to receive(:find_image_by_tag).and_return(Object.new) }
it 'instantiates a Docker client' do
expect(DockerClient).to receive(:new).with(execution_environment: execution_environment).and_call_original