spec/spec_helper.rb in facter-1.6.9 vs spec/spec_helper.rb in facter-1.6.10
- old
+ new
@@ -9,9 +9,14 @@
require 'mocha'
require 'rspec'
require 'facter'
require 'fileutils'
require 'puppetlabs_spec_helper'
+require 'pathname'
+
+Pathname.glob("#{dir}/shared_contexts/*.rb") do |file|
+ require file.relative_path_from(Pathname.new(dir))
+end
RSpec.configure do |config|
config.mock_with :mocha
config.before :each do