clean pull request
This commit is contained in:
@ -7,10 +7,8 @@ describe DockerClient, docker: true do
|
||||
let(:execution_environment) { FactoryGirl.build(:ruby) }
|
||||
let(:image) { double }
|
||||
let(:submission) { FactoryGirl.create(:submission) }
|
||||
# let(:workspace_path) { '/tmp/codeocean_dockertest' }
|
||||
let(:workspace_path) { '/tmp' }
|
||||
|
||||
|
||||
describe '.check_availability!' do
|
||||
context 'when a socket error occurs' do
|
||||
it 'raises an error' do
|
||||
|
@ -44,8 +44,6 @@ describe DockerContainerPool do
|
||||
|
||||
it 'takes a container from the pool' do
|
||||
expect(described_class).not_to receive(:create_container).with(@execution_environment)
|
||||
# #<Double (anonymous)> received unexpected message :json with (no args)
|
||||
# expect(described_class).to receive(:json).with()
|
||||
expect(described_class.get_container(@execution_environment)).to eq(container)
|
||||
end
|
||||
end
|
||||
@ -62,7 +60,6 @@ describe DockerContainerPool do
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context 'when inactive' do
|
||||
before(:each) do
|
||||
expect(described_class).to receive(:config).and_return(active: false)
|
||||
|
Reference in New Issue
Block a user