(QENG-1906) Add spec tests for Janitor

Add spec tests to verify Janitor deletes stale vms correctly. This
required a small refactor of Janitor to move the logic out of the for
loop.
This commit is contained in:
Colin 2015-03-30 12:07:23 -07:00
parent fd90756b83
commit d0275f5fba
3 changed files with 89 additions and 12 deletions

3
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,3 @@
require 'rspec'
require 'vmpooler'
require 'rbvmomi'