aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper_local.rb
diff options
context:
space:
mode:
authorJennifer Solman <8675309@users.noreply.github.com>2018-04-30 15:29:31 -0700
committerGitHub <noreply@github.com>2018-04-30 15:29:31 -0700
commit4ea4e5fcaf87834374d9904e46dd35e6cd64e026 (patch)
tree201c0a93df57e64ff39de3fd430f2eff125b5378 /spec/spec_helper_local.rb
parentc6558967091e21a62a9313db5f1674efe3bee1df (diff)
parent466534425096ccc19947d4b7ebc281a50297ec3e (diff)
downloadpuppet-mailalias_core-4ea4e5fcaf87834374d9904e46dd35e6cd64e026.tar.gz
puppet-mailalias_core-4ea4e5fcaf87834374d9904e46dd35e6cd64e026.tar.bz2
Merge pull request #5 from melissa/release
(maint) Prep for 1.0.2 release
Diffstat (limited to 'spec/spec_helper_local.rb')
-rw-r--r--spec/spec_helper_local.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb
new file mode 100644
index 0000000..0fcc231
--- /dev/null
+++ b/spec/spec_helper_local.rb
@@ -0,0 +1,13 @@
+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