lib/foodtaster/rspec/dsl_methods.rb in foodtaster-0.0.6 vs lib/foodtaster/rspec/dsl_methods.rb in foodtaster-0.0.7
- old
+ new
@@ -1,11 +1,13 @@
module Foodtaster
module RSpec
module DslMethods
def require_vm(vm_name)
let(vm_name) do
- get_vm(vm_name).tap { |vm| vm.prepare }
+ get_vm(vm_name)
end
+
+ before(:all) { get_vm(vm_name) }
end
def run_chef_on(vm_name, options = {}, &block)
require_vm(vm_name)
skip_rollback = Foodtaster.config.skip_rollback || options[:skip_rollback]