summaryrefslogtreecommitdiff
path: root/spec/functions/validate_numeric_spec.rb
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2016-09-06 09:55:34 +0100
committerGitHub <noreply@github.com>2016-09-06 09:55:34 +0100
commit0262410b696f8d3644fb0dbd08db8b4794810eed (patch)
treef0388a89e8d6892d982d9935f8f8ff8314b1af0f /spec/functions/validate_numeric_spec.rb
parent56c9587e1124bebd88017e8dd82c1d6e584c7d97 (diff)
parent6c6c6d8e3448e3072d590a0782237486e46bc88d (diff)
Merge pull request #641 from HelenCampbell/deprecationUpdate
Deprecation function to be mutable in all cases
Diffstat (limited to 'spec/functions/validate_numeric_spec.rb')
-rwxr-xr-xspec/functions/validate_numeric_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functions/validate_numeric_spec.rb b/spec/functions/validate_numeric_spec.rb
index 2869e5f..4a65649 100755
--- a/spec/functions/validate_numeric_spec.rb
+++ b/spec/functions/validate_numeric_spec.rb
@@ -1,8 +1,13 @@
require 'spec_helper'
describe 'validate_numeric' do
+ after(:context) do
+ ENV.delete('STDLIB_LOG_DEPRECATIONS')
+ end
+
# Checking for deprecation warning
it 'should display a single deprecation' do
+ ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
scope.expects(:warning).with(includes('This method is deprecated'))
is_expected.to run.with_params(3)
end