From f6fb193078c497476326ee80827e1585ae26603c Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Tue, 12 Apr 2011 13:05:54 -0700 Subject: (#5027) Spell deprecation correctly Paired-With: Jesse Wolfe --- spec/unit/util/logging_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'spec/unit') 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 -- cgit