spec/support/sharedcontext.rb in vagrant-libvirt-0.0.33 vs spec/support/sharedcontext.rb in vagrant-libvirt-0.0.35
- old
+ new
@@ -1,15 +1,16 @@
require 'spec_helper'
shared_context "unit" do
include_context 'vagrant-unit'
- let(:test_env) do
- vagrantfile ||= <<-EOF
+ let(:vagrantfile) do <<-EOF
Vagrant.configure('2') do |config|
config.vm.define :test
end
EOF
+ end
+ let(:test_env) do
test_env = isolated_environment
test_env.vagrantfile vagrantfile
test_env
end
let(:env) { { env: iso_env, machine: machine, ui: ui, root_path: '/rootpath' } }