summaryrefslogtreecommitdiffstats
path: root/spec/unit/application
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-05-12 18:25:14 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitac7efc8f0284d6b35f5428da06ba371cf94998ec (patch)
treec1a6a6df5dd2d533c1d0b12b869a0758b8c4cb6f /spec/unit/application
parent5665e3984f73c70b90f65dd8bf4445b5adda5121 (diff)
downloadpuppet-ac7efc8f0284d6b35f5428da06ba371cf94998ec.tar.gz
puppet-ac7efc8f0284d6b35f5428da06ba371cf94998ec.tar.xz
puppet-ac7efc8f0284d6b35f5428da06ba371cf94998ec.zip
Feature #2935 Puppet::Mode#master?
Use a predicate function on the Mode object instead of comparing with the executable name everywhere Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'spec/unit/application')
-rwxr-xr-xspec/unit/application/doc.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/unit/application/doc.rb b/spec/unit/application/doc.rb
index c224b0de5..960ef7ac6 100755
--- a/spec/unit/application/doc.rb
+++ b/spec/unit/application/doc.rb
@@ -190,7 +190,6 @@ describe Puppet::Application::Doc do
before :each do
@doc.options.stubs(:[]).returns(false)
- Puppet.stubs(:[]=).with(:name, "puppetmasterd")
Puppet.stubs(:parse_config)
Puppet::Util::Log.stubs(:level=)
Puppet::Util::Log.stubs(:newdestination)
@@ -224,8 +223,8 @@ describe Puppet::Application::Doc do
end
end
- it "should pretend to be puppetmasterd" do
- Puppet.expects(:[]=).with(:name, "puppetmasterd")
+ it "should operate in master mode" do
+ @doc.class.mode.name.should == :master
@doc.setup_rdoc
end