2013-04-20 20:02:25 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2013-04-21 21:04:36 +00:00
|
|
|
unless ENV['USER'] == 'vagrant'
|
2013-04-21 21:38:02 +00:00
|
|
|
puts 'Acceptance specs are supposed to run from one of the vagrant-lxc dev machines'
|
2013-04-21 21:04:36 +00:00
|
|
|
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'
|
|
|
|
|
2013-04-21 21:11:10 +00:00
|
|
|
Dir[File.dirname(__FILE__) + "/acceptance/support/**/*.rb"].each { |f| require f }
|
|
|
|
|
2013-04-21 21:38:02 +00:00
|
|
|
RSpec.configure do |config|
|
|
|
|
config.include AcceptanceExampleGroup, :type => :acceptance, :example_group => {
|
|
|
|
:file_path => /\bspec\/acceptance\//
|
|
|
|
}
|
|
|
|
end
|