diff options
author | Melissa Stone <melissa@puppet.com> | 2018-04-30 14:25:42 -0700 |
---|---|---|
committer | Melissa Stone <melissa@puppet.com> | 2018-04-30 14:38:55 -0700 |
commit | 466534425096ccc19947d4b7ebc281a50297ec3e (patch) | |
tree | 201c0a93df57e64ff39de3fd430f2eff125b5378 /spec | |
parent | 7643ca806cbd6235a5d339846cd5b1af1cee08fd (diff) | |
download | puppet-mailalias_core-466534425096ccc19947d4b7ebc281a50297ec3e.tar.gz puppet-mailalias_core-466534425096ccc19947d4b7ebc281a50297ec3e.tar.bz2 |
(maint) PDK manages certain files
Certain files, like the Gemfile and spec/spec_helper.rb are managed by
PDK. When we run `pdk update`, any changes we make to these files will
be overwritten.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 14 | ||||
-rw-r--r-- | spec/spec_helper_local.rb | 13 |
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 |