added a null check, removed setting status to used due to test problems, fixed mocking of container object.
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user