X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Fspec_helper_local.rb;h=5fea4da4a3727ace7fd55f46005415f5b94ef5dd;hb=33b214debfd84ce19c5c971d8b9c769a765571ca;hp=616490c6eb6b41390e86f6652536fbc704ae4ff1;hpb=6963202b4b62c2816655ac9532521b018fdf83bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/spec_helper_local.rb b/3rdparty/modules/stdlib/spec/spec_helper_local.rb index 616490c6e..5fea4da4a 100644 --- a/3rdparty/modules/stdlib/spec/spec_helper_local.rb +++ b/3rdparty/modules/stdlib/spec/spec_helper_local.rb @@ -1,7 +1,7 @@ # automatically load any shared examples or contexts -Dir["./spec/support/**/*.rb"].sort.each { |f| require f } +Dir['./spec/support/**/*.rb'].sort.each { |f| require f } -# hack to enable all the expect syntax (like allow_any_instance_of) in rspec-puppet examples +# HACK: to enable all the expect syntax (like allow_any_instance_of) in rspec-puppet examples RSpec::Mocks::Syntax.enable_expect(RSpec::Puppet::ManifestMatchers) RSpec.configure do |config| @@ -16,7 +16,7 @@ RSpec.configure do |config| # Facter.collection.loader.load(:ipaddress) Facter.clear Facter.clear_messages - + RSpec::Mocks.setup end