summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/ssl/certificate.rb4
-rwxr-xr-xspec/unit/ssl/certificate_request.rb4
-rwxr-xr-xspec/unit/ssl/certificate_revocation_list.rb4
-rwxr-xr-xspec/unit/ssl/key.rb4
4 files changed, 16 insertions, 0 deletions
diff --git a/spec/unit/ssl/certificate.rb b/spec/unit/ssl/certificate.rb
index 44918b9c5..eb2464a48 100755
--- a/spec/unit/ssl/certificate.rb
+++ b/spec/unit/ssl/certificate.rb
@@ -25,6 +25,10 @@ describe Puppet::SSL::Certificate do
@class.indirection.terminus_class.should == :file
end
+ it "should only support the text format" do
+ @class.supported_formats.should == [:str]
+ end
+
describe "when managing instances" do
before do
@certificate = @class.new("myname")
diff --git a/spec/unit/ssl/certificate_request.rb b/spec/unit/ssl/certificate_request.rb
index be5aa5a96..4a7d655ac 100755
--- a/spec/unit/ssl/certificate_request.rb
+++ b/spec/unit/ssl/certificate_request.rb
@@ -26,6 +26,10 @@ describe Puppet::SSL::CertificateRequest do
@class.indirection.terminus_class.should == :file
end
+ it "should only support the text format" do
+ @class.supported_formats.should == [:str]
+ end
+
describe "when managing instances" do
before do
@request = @class.new("myname")
diff --git a/spec/unit/ssl/certificate_revocation_list.rb b/spec/unit/ssl/certificate_revocation_list.rb
index 13febf744..39e32976d 100755
--- a/spec/unit/ssl/certificate_revocation_list.rb
+++ b/spec/unit/ssl/certificate_revocation_list.rb
@@ -16,6 +16,10 @@ describe Puppet::SSL::CertificateRevocationList do
@class.indirection.terminus_class.should == :file
end
+ it "should only support the text format" do
+ @class.supported_formats.should == [:str]
+ end
+
describe "when an instance" do
before do
@class.any_instance.stubs(:read_or_generate)
diff --git a/spec/unit/ssl/key.rb b/spec/unit/ssl/key.rb
index b64a8646e..66ed510a3 100755
--- a/spec/unit/ssl/key.rb
+++ b/spec/unit/ssl/key.rb
@@ -21,6 +21,10 @@ describe Puppet::SSL::Key do
@class.indirection.terminus_class.should == :file
end
+ it "should only support the text format" do
+ @class.supported_formats.should == [:str]
+ end
+
it "should have a method for determining whether it's a CA key" do
@class.new("test").should respond_to(:ca?)
end