vagrant-lxc-ng/spec/acceptance_helper.rb

22 lines
506 B
Ruby
Raw Permalink Normal View History

2013-04-20 20:02:25 +00:00
require 'spec_helper'
unless ENV['USER'] == 'vagrant'
puts 'Acceptance specs are supposed to run from one of the vagrant-lxc dev machines'
exit 1
end
2013-04-20 20:38:01 +00:00
if defined? SimpleCov
SimpleCov.command_name 'acceptance'
end
2013-04-20 20:02:25 +00:00
require 'vagrant'
require 'vagrant-lxc'
Dir[File.dirname(__FILE__) + "/acceptance/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
config.include AcceptanceExampleGroup, :type => :acceptance, :example_group => {
:file_path => /\bspec\/acceptance\//
}
end