2011-12-04 00:07:34 +00:00
|
|
|
require "rubygems"
|
|
|
|
require "rspec/autorun"
|
|
|
|
|
|
|
|
# Require Vagrant itself so we can reference the proper
|
|
|
|
# classes to test.
|
|
|
|
require "vagrant"
|
|
|
|
|
2011-12-11 23:53:11 +00:00
|
|
|
# Add the test directory to the load path
|
2011-12-04 03:05:50 +00:00
|
|
|
$:.unshift File.expand_path("../../", __FILE__)
|
2011-12-04 01:12:48 +00:00
|
|
|
|
|
|
|
# Load in helpers
|
2012-06-24 06:56:39 +00:00
|
|
|
require "support/tempdir"
|
2013-11-23 23:48:00 +00:00
|
|
|
require "unit/support/dummy_communicator"
|
2012-12-23 04:03:39 +00:00
|
|
|
require "unit/support/dummy_provider"
|
2011-12-11 23:53:11 +00:00
|
|
|
require "unit/support/shared/base_context"
|
2013-11-22 18:26:36 +00:00
|
|
|
require "unit/support/shared/virtualbox_context"
|
2011-12-04 01:12:48 +00:00
|
|
|
|
2011-12-04 00:07:34 +00:00
|
|
|
# Do not buffer output
|
|
|
|
$stdout.sync = true
|
|
|
|
$stderr.sync = true
|
|
|
|
|
|
|
|
# Configure RSpec
|
|
|
|
RSpec.configure do |c|
|
|
|
|
c.expect_with :rspec, :stdlib
|
|
|
|
end
|
2012-06-24 06:56:39 +00:00
|
|
|
|
|
|
|
# Configure VAGRANT_CWD so that the tests never find an actual
|
|
|
|
# Vagrantfile anywhere, or at least this minimizes those chances.
|
|
|
|
ENV["VAGRANT_CWD"] = Tempdir.new.path
|