fixed issues with deleting files and issue with json method not defined for the mock-double for rspec-tests in lib
This commit is contained in:
@ -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
|
||||
|
@ -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')
|
||||
|
Reference in New Issue
Block a user