From 8e7c5b2e8325ab5e8e6c24e714a22745981f67b8 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Tue, 26 Mar 2013 21:59:03 -0300 Subject: [PATCH] Eager loads plugin files in case we need to verify constant names on specs --- spec/spec_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 603d3fd..472fb04 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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'