added a null check, removed setting status to used due to test problems, fixed mocking of container object.

This commit is contained in:
Ralf Teusner
2015-04-22 11:38:07 +02:00
parent e448e403ba
commit a7087824b1
2 changed files with 15 additions and 11 deletions

View File

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