Signed-off-by: Luke Kanies <[EMAIL PROTECTED]>
---
 lib/puppet/ssl/base.rb       |    2 +-
 spec/unit/ssl/certificate.rb |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/puppet/ssl/base.rb b/lib/puppet/ssl/base.rb
index a005bfa..d67861f 100644
--- a/lib/puppet/ssl/base.rb
+++ b/lib/puppet/ssl/base.rb
@@ -34,7 +34,7 @@ class Puppet::SSL::Base
     end
 
     def initialize(name)
-        @name = name.downcase
+        @name = name.to_s.downcase
     end
 
     # Read content from disk appropriately.
diff --git a/spec/unit/ssl/certificate.rb b/spec/unit/ssl/certificate.rb
index 92b7f2c..a092c6a 100755
--- a/spec/unit/ssl/certificate.rb
+++ b/spec/unit/ssl/certificate.rb
@@ -86,8 +86,8 @@ describe Puppet::SSL::Certificate do
             @certificate.name.should == "myname"
         end
 
-        it "should downcase its name" do
-            @class.new("MyName").name.should == "myname"
+        it "should convert its name to a string and downcase it" do
+            @class.new(:MyName).name.should == "myname"
         end
 
         it "should have a content attribute" do
-- 
1.5.3.7


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to