diff options
author | Josh Cooper <josh@puppet.com> | 2018-07-13 09:38:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 09:38:02 -0700 |
commit | bd20d920a19e9b011dfd027a802985cea46ae04f (patch) | |
tree | f882cd2b7c31ae08cd242882b0f7f1d1ed89cbbd /spec/spec_helper_local.rb | |
parent | 9d96ddecea6367abee1aa77859848b0c158fca80 (diff) | |
parent | c957642d70f4b778736a9b49cf1ef9702e42c4f1 (diff) | |
download | puppet-hosts_core-bd20d920a19e9b011dfd027a802985cea46ae04f.tar.gz puppet-hosts_core-bd20d920a19e9b011dfd027a802985cea46ae04f.tar.bz2 |
Merge pull request #1 from puppetlabs/extraction
Initial host module extraction
Diffstat (limited to 'spec/spec_helper_local.rb')
-rw-r--r-- | spec/spec_helper_local.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb new file mode 100644 index 0000000..86c87f0 --- /dev/null +++ b/spec/spec_helper_local.rb @@ -0,0 +1,19 @@ +dir = File.expand_path(File.dirname(__FILE__)) +$LOAD_PATH.unshift File.join(dir, 'lib') + +# So everyone else doesn't have to include this base constant. +module PuppetSpec + FIXTURE_DIR = File.join(File.expand_path(File.dirname(__FILE__)), 'fixtures') unless defined?(FIXTURE_DIR) +end + +require 'puppet_spec/files' + +Pathname.glob("#{dir}/shared_behaviours/**/*.rb") do |behaviour| + require behaviour.relative_path_from(Pathname.new(dir)) +end + +RSpec.configure do |c| + c.after :each do + PuppetSpec::Files.cleanup + end +end |