summaryrefslogtreecommitdiffstats
path: root/spec/unit/application
diff options
context:
space:
mode:
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