diff options
author | Dominic Cleal <dominic@cleal.org> | 2016-08-15 10:39:50 +0100 |
---|---|---|
committer | Dominic Cleal <dominic@cleal.org> | 2016-08-15 11:38:40 +0100 |
commit | 39148468abbd9b8af74b776eb49f0a8388fc8541 (patch) | |
tree | 8b01a683ebeb2c1e6d78719300f3893a580ebf62 /spec/functions/deprecation_spec.rb | |
parent | 1d9d2c02d6669d4a6219140ae7ff3648a30c89cf (diff) |
(maint) Switch 3.x deprecation() to use Puppet warning logger
The deprecation function was calling the `Kernel#warn` function which
prints to stderr, rather than the Puppet logger. This causes problems
for Puppet module tests on Travis CI, which has a cap on the amount of
stdout/err permitted in its logs and also prevents users from finding
the deprecation warnings when running under a Puppet master.
Diffstat (limited to 'spec/functions/deprecation_spec.rb')
-rw-r--r-- | spec/functions/deprecation_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functions/deprecation_spec.rb b/spec/functions/deprecation_spec.rb index a596e24..c213190 100644 --- a/spec/functions/deprecation_spec.rb +++ b/spec/functions/deprecation_spec.rb @@ -46,7 +46,7 @@ else it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } it 'should display a single warning' do - scope.expects(:warn).with(includes('heelo')) + scope.expects(:warning).with(includes('heelo')) is_expected.to run.with_params('key', 'heelo') end end |