summaryrefslogtreecommitdiffstats
path: root/spec/unit/application/cert.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/application/cert.rb')
-rw-r--r--spec/unit/application/cert.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/application/cert.rb b/spec/unit/application/cert.rb
index 3fb2f1ed4..5970355e8 100644
--- a/spec/unit/application/cert.rb
+++ b/spec/unit/application/cert.rb
@@ -110,7 +110,7 @@ describe Puppet::Application::Cert do
@cert_app.all = false
@ca = stub_everything 'ca'
@cert_app.ca = @ca
- Puppet::Util::CommandLine.stubs(:args).returns([])
+ @cert_app.command_line.stubs(:args).returns([])
end
it "should delegate to the CertificateAuthority" do
@@ -128,7 +128,7 @@ describe Puppet::Application::Cert do
end
it "should delegate to ca.apply with the hosts given on command line" do
- Puppet::Util::CommandLine.stubs(:args).returns(["host"])
+ @cert_app.command_line.stubs(:args).returns(["host"])
@ca.expects(:apply).with { |mode,to| to[:to] == ["host"]}
@@ -136,7 +136,7 @@ describe Puppet::Application::Cert do
end
it "should send the currently set digest" do
- Puppet::Util::CommandLine.stubs(:args).returns(["host"])
+ @cert_app.command_line.stubs(:args).returns(["host"])
@cert_app.handle_digest(:digest)
@ca.expects(:apply).with { |mode,to| to[:digest] == :digest}
@@ -146,7 +146,7 @@ describe Puppet::Application::Cert do
it "should delegate to ca.apply with current set mode" do
@cert_app.mode = "currentmode"
- Puppet::Util::CommandLine.stubs(:args).returns(["host"])
+ @cert_app.command_line.stubs(:args).returns(["host"])
@ca.expects(:apply).with { |mode,to| mode == "currentmode" }
@@ -155,7 +155,7 @@ describe Puppet::Application::Cert do
it "should revoke cert if mode is clean" do
@cert_app.mode = :destroy
- Puppet::Util::CommandLine.stubs(:args).returns(["host"])
+ @cert_app.command_line.stubs(:args).returns(["host"])
@ca.expects(:apply).with { |mode,to| mode == :revoke }
@ca.expects(:apply).with { |mode,to| mode == :destroy }