vagrant/test/test_helper.rb

24 lines
668 B
Ruby
Raw Normal View History

2010-01-22 05:07:01 +00:00
begin
2010-01-22 05:08:55 +00:00
require File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'environment')
2010-01-22 05:07:01 +00:00
rescue LoadError
puts <<-ENVERR
==================================================
ERROR: Gem environment file not found!
Hobo uses bundler to handle gem dependencies. To setup the
test environment, please run `gem bundle test` If you don't
have bundler, you can install that with `gem install bundler`
==================================================
ENVERR
exit
end
2010-01-22 05:36:34 +00:00
# ruby-debug, not necessary, but useful if we have it
begin
require 'ruby-debug'
rescue LoadError; end
2010-01-22 05:54:23 +00:00
require File.join(File.dirname(__FILE__), '..', 'lib', 'hobo')
require 'contest'
require 'mocha'