summaryrefslogtreecommitdiffstats
path: root/spec/unit/ssl
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-11 15:02:15 -0700
committerLuke Kanies <luke@madstop.com>2008-04-15 21:34:04 -0500
commit00e35bce4e8b7f4e0e4ee039a1d82ad9d08a6b96 (patch)
tree823d3210e4c66643d14752f93334744a12e13ae1 /spec/unit/ssl
parent8347b0605612128b1a9e9f2d2d2e5ea73dae288d (diff)
Adding he last of the indirection classes for the ssl
classes, finally including the certificate requests.
Diffstat (limited to 'spec/unit/ssl')
-rwxr-xr-xspec/unit/ssl/certificate.rb4
-rwxr-xr-xspec/unit/ssl/key.rb5
2 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/ssl/certificate.rb b/spec/unit/ssl/certificate.rb
index 69f4e1fa1..1df9c42e1 100755
--- a/spec/unit/ssl/certificate.rb
+++ b/spec/unit/ssl/certificate.rb
@@ -17,6 +17,10 @@ describe Puppet::SSL::Certificate do
@class.indirection.name.should == :certificate
end
+ it "should default to the :file terminus class" do
+ @class.indirection.terminus_class.should == :file
+ end
+
describe "when managing instances" do
before do
@certificate = @class.new("myname")
diff --git a/spec/unit/ssl/key.rb b/spec/unit/ssl/key.rb
index e580bbc55..d6cdc8266 100755
--- a/spec/unit/ssl/key.rb
+++ b/spec/unit/ssl/key.rb
@@ -8,6 +8,7 @@ describe Puppet::SSL::Key do
before do
@class = Puppet::SSL::Key
end
+
it "should be extended with the Indirector module" do
@class.metaclass.should be_include(Puppet::Indirector)
end
@@ -16,6 +17,10 @@ describe Puppet::SSL::Key do
@class.indirection.name.should == :key
end
+ it "should default to the :file terminus class" do
+ @class.indirection.terminus_class.should == :file
+ end
+
describe "when managing instances" do
before do
@key = @class.new("myname")