Array#count is not available in Ruby 1.8.5, so we need to use #length in these
specs for compatibility.

Reviewed-By: Matt Robinson <[email protected]>
Signed-off-by: Nick Lewis <[email protected]>
---
 spec/unit/face/ca_spec.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/unit/face/ca_spec.rb b/spec/unit/face/ca_spec.rb
index 8476960..b8c82ce 100755
--- a/spec/unit/face/ca_spec.rb
+++ b/spec/unit/face/ca_spec.rb
@@ -171,7 +171,7 @@ describe Puppet::Face[:ca, '0.1.0'] do
       subject.sign('random-host').should be_an_instance_of 
Puppet::SSL::Certificate
 
       list = subject.list(:signed => true)
-      list.count.should == 1
+      list.length.should == 1
       list.first.name.should == 'random-host'
     end
   end
@@ -185,7 +185,7 @@ describe Puppet::Face[:ca, '0.1.0'] do
       subject.generate('random-host')
 
       list = subject.list(:signed => true)
-      list.count.should == 1
+      list.length.should == 1
       list.first.name.should == 'random-host'
     end
 
-- 
1.7.5.4

-- 
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