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)