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-04 01:12:48 +00:00
|
|
|
# Add this directory to the load path, since it just makes
|
|
|
|
# everything else easier.
|
|
|
|
$:.unshift File.expand_path("../", __FILE__)
|
2011-12-04 03:05:50 +00:00
|
|
|
$:.unshift File.expand_path("../../", __FILE__)
|
2011-12-04 01:12:48 +00:00
|
|
|
|
|
|
|
# Load in helpers
|
|
|
|
require "support/shared/base_context"
|
|
|
|
|
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
|