Merge branch 'rspec-tests-controllers' of github.com:openHPI/codeocean into rspec-tests-controllers

This commit is contained in:
yqbk
2016-06-07 13:53:05 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ describe DockerClient, docker: true do
let(:execution_environment) { FactoryGirl.build(:ruby) }
let(:image) { double }
let(:submission) { FactoryGirl.create(:submission) }
let(:workspace_path) { '/tmp' }
let(:workspace_path) { '/tmp/codeocean_dockertest' }
describe '.check_availability!' do
context 'when a socket error occurs' do

View File

@ -1,7 +1,7 @@
require 'rails_helper'
describe DockerContainerPool do
let(:container) { double(:start_time => Time.now, :status => 'available') }
let(:container) { double(:start_time => Time.now, :status => 'available', :json => {'State' => {'Running' => true}}) }
def reload_class
load('docker_container_pool.rb')