diff options
author | David Schmitt <david.schmitt@puppet.com> | 2016-11-29 14:52:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 14:52:25 +0000 |
commit | cb59da2359f956e3dccec228e16f6b3aaa6758c4 (patch) | |
tree | 20e5a93377af1e52ac074064065710dfa2aaa682 /spec/functions/deprecation_spec.rb | |
parent | 85bdbcf79232f89203b65b9fa1a2e7bc7ddc067a (diff) | |
parent | e501cb1b646e9741fb6f2510a1a3a434041a4d33 (diff) |
Merge pull request #693 from HelenCampbell/moreErrorDetail
(MODULES-3393) Deprecation - Use puppet stacktrace if available
Diffstat (limited to 'spec/functions/deprecation_spec.rb')
-rw-r--r-- | spec/functions/deprecation_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/functions/deprecation_spec.rb b/spec/functions/deprecation_spec.rb index 9859833..cee4f1c 100644 --- a/spec/functions/deprecation_spec.rb +++ b/spec/functions/deprecation_spec.rb @@ -41,11 +41,14 @@ if Puppet.version.to_f >= 4.0 } end else + # Puppet version < 4 will use these tests. describe 'deprecation' do after(:all) do ENV.delete('STDLIB_LOG_DEPRECATIONS') end - ENV['STDLIB_LOG_DEPRECATIONS'] = "true" + before(:all) do + ENV['STDLIB_LOG_DEPRECATIONS'] = "true" + end it { is_expected.not_to eq(nil) } it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } |