From 81de7154e672d0c94cc4ee660b4cca51f7b2d32f Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Sun, 4 Jan 2015 18:36:29 -0500 Subject: [PATCH] Fix failing test --- test/unit/plugins/pushes/ftp/push_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit/plugins/pushes/ftp/push_test.rb b/test/unit/plugins/pushes/ftp/push_test.rb index 39dd6dd79..25d6e1229 100644 --- a/test/unit/plugins/pushes/ftp/push_test.rb +++ b/test/unit/plugins/pushes/ftp/push_test.rb @@ -20,6 +20,11 @@ describe VagrantPlugins::FTPPush::Push do subject { described_class.new(env, config) } + before do + allow(env).to receive(:root_path) + .and_return(File.expand_path("..", __FILE__)) + end + describe "#push" do before(:all) do @server = FakeFtp::Server.new(51234, 21213)