From 0dde0b3756d0a2770ff6736f605c4dede70d0af8 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 3 Feb 2015 19:19:58 -0500 Subject: [PATCH] Use a real iso env for push tests --- test/unit/plugins/pushes/atlas/push_test.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/unit/plugins/pushes/atlas/push_test.rb b/test/unit/plugins/pushes/atlas/push_test.rb index e7ffdebd5..b59b2bde0 100644 --- a/test/unit/plugins/pushes/atlas/push_test.rb +++ b/test/unit/plugins/pushes/atlas/push_test.rb @@ -8,10 +8,17 @@ describe VagrantPlugins::AtlasPush::Push do let(:bin) { VagrantPlugins::AtlasPush::Push::UPLOADER_BIN } + # let(:env) do + # double("env", + # root_path: File.expand_path("..", __FILE__) + # ) + # end + let(:env) do - double("env", - root_path: File.expand_path("..", __FILE__) - ) + # We have to create a Vagrantfile so there is a root path + env = isolated_environment + env.vagrantfile("") + env.create_vagrant_env end let(:config) do