Adapt test to new pooling

This commit is contained in:
Jan Renz
2015-04-16 10:06:48 +02:00
parent 68ab935e12
commit 04891167c3

View File

@ -53,8 +53,8 @@ describe DockerContainerPool do
expect(described_class.instance_variable_get(:@containers)[@execution_environment.id]).to be_empty
end
it 'creates a new container' do
expect(described_class).to receive(:create_container).with(@execution_environment)
it 'not creates a new container' do
expect(described_class).not_to receive(:create_container).with(@execution_environment)
described_class.get_container(@execution_environment)
end
end