aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppet.com>2018-05-01 16:04:06 -0700
committerHunter Haugen <hunter@puppet.com>2018-05-01 16:04:06 -0700
commit35bd7f8e66499d0c70256e47d6248a29870f5aa2 (patch)
tree201c0a93df57e64ff39de3fd430f2eff125b5378 /spec
parentac6650ac9a9e71336fa4e09897ded00a81125cb2 (diff)
parent4ea4e5fcaf87834374d9904e46dd35e6cd64e026 (diff)
downloadpuppet-mailalias_core-35bd7f8e66499d0c70256e47d6248a29870f5aa2.tar.gz
puppet-mailalias_core-35bd7f8e66499d0c70256e47d6248a29870f5aa2.tar.bz2
Merge pull request #6 from puppetlabs/release
Release
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb14
-rw-r--r--spec/spec_helper_local.rb13
2 files changed, 13 insertions, 14 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 9885e2d..efd225b 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -28,17 +28,3 @@ end
RSpec.configure do |c|
c.default_facts = default_facts
end
-
-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
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