diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-04-12 13:05:54 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-04-12 13:05:54 -0700 |
commit | f6fb193078c497476326ee80827e1585ae26603c (patch) | |
tree | 6cff85468dc51786592214df846445a4cf1fee91 /spec/unit | |
parent | d0a56522f9c574b4a6db81caf4589175c901b09e (diff) | |
download | puppet-f6fb193078c497476326ee80827e1585ae26603c.tar.gz puppet-f6fb193078c497476326ee80827e1585ae26603c.tar.xz puppet-f6fb193078c497476326ee80827e1585ae26603c.zip |
(#5027) Spell deprecation correctly
Paired-With: Jesse Wolfe
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/util/logging_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/util/logging_spec.rb b/spec/unit/util/logging_spec.rb index 1585c3e64..63f0a4d9b 100755 --- a/spec/unit/util/logging_spec.rb +++ b/spec/unit/util/logging_spec.rb @@ -93,28 +93,28 @@ describe Puppet::Util::Logging do end end - describe "when sending a deprication warning" do + describe "when sending a deprecation warning" do before do - @logger.clear_deprication_warnings + @logger.clear_deprecation_warnings end it "should the message with warn" do @logger.expects(:warn).with('foo') - @logger.deprication_warning 'foo' + @logger.deprecation_warning 'foo' end it "should only log each unique message once" do @logger.expects(:warn).with('foo').once - 5.times { @logger.deprication_warning 'foo' } + 5.times { @logger.deprecation_warning 'foo' } end it "should only log the first 100 messages" do (1..100).each { |i| @logger.expects(:warn).with(i).once - @logger.deprication_warning i + @logger.deprecation_warning i } @logger.expects(:warn).with(101).never - @logger.deprication_warning 101 + @logger.deprecation_warning 101 end end end |