Eager loads plugin files in case we need to verify constant names on specs

This commit is contained in:
Fabio Rehm 2013-03-26 21:59:03 -03:00
parent dc2d8f8572
commit 8e7c5b2e83

View file

@ -11,6 +11,12 @@ require 'rspec-spies'
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |f| require f }
# If we should verify constant names, eager loads
if ENV['VERIFY_CONSTANT_NAMES']
require 'vagrant-lxc/plugin'
require 'vagrant-lxc/provider'
end
require 'rspec/fire'
RSpec::Fire.configure do |config|
config.verify_constant_names = ENV['VERIFY_CONSTANT_NAMES'] == '1'