summaryrefslogtreecommitdiffstats
path: root/spec/unit/puppet.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-11-07 15:21:19 -0600
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitd93d80a0afdbd53d87dc4a7498609117091e864b (patch)
tree4bd4cce56eac87b0ece7f4d7b642729cf71e4ff9 /spec/unit/puppet.rb
parentc6dd180450404c74bac8aadbf68b297c5f74764c (diff)
downloadpuppet-d93d80a0afdbd53d87dc4a7498609117091e864b.tar.gz
puppet-d93d80a0afdbd53d87dc4a7498609117091e864b.tar.xz
puppet-d93d80a0afdbd53d87dc4a7498609117091e864b.zip
Using Logging module in main Puppet module
We've had essentially duplicate methods in this module forever, and this just removes that duplication. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/puppet.rb')
-rwxr-xr-xspec/unit/puppet.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/puppet.rb b/spec/unit/puppet.rb
new file mode 100755
index 000000000..07834299a
--- /dev/null
+++ b/spec/unit/puppet.rb
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby"
+
+require File.dirname(__FILE__) + '/../spec_helper'
+require 'puppet'
+
+describe Puppet do
+ Puppet::Util::Log.eachlevel do |level|
+ it "should have a method for sending '#{level}' logs" do
+ Puppet.should respond_to(level)
+ end
+ end
+end