vagrant/test/test_helper.rb

27 lines
591 B
Ruby
Raw Normal View History

# Add this folder to the load path for "test_helper"
$:.unshift(File.dirname(__FILE__))
2010-01-22 05:36:34 +00:00
require 'vagrant'
require 'mario'
2010-01-22 05:54:23 +00:00
require 'contest'
require 'mocha'
2010-07-20 03:32:07 +00:00
# Try to load ruby debug since its useful if it is available.
# But not a big deal if its not available (probably on a non-MRI
# platform)
begin
require 'ruby-debug'
rescue LoadError
end
# Silence Mario by sending log output to black hole
Mario::Platform.logger(nil)
# Add the I18n locale for tests
I18n.load_path << File.expand_path("../locales/en.yml", __FILE__)
class Test::Unit::TestCase
2010-09-15 15:19:38 +00:00
include Vagrant::TestHelpers
end