summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-07-20 16:30:34 -0700
committerNick Lewis <nick@puppetlabs.com>2011-07-20 16:31:39 -0700
commit8820a78b5793ba6266b3974ac90a9405d73b8343 (patch)
treedb8a8fea4fdf2fe01f634348e96550d06c7e6bd7
parentbdd6a17c995175d240cd2cb098ab41e612ba8d63 (diff)
downloadpuppet-8820a78b5793ba6266b3974ac90a9405d73b8343.tar.gz
puppet-8820a78b5793ba6266b3974ac90a9405d73b8343.tar.xz
puppet-8820a78b5793ba6266b3974ac90a9405d73b8343.zip
Replace calls to Array#count with #length
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 <matt@puppetlabs.com>
-rwxr-xr-xspec/unit/face/ca_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/face/ca_spec.rb b/spec/unit/face/ca_spec.rb
index 84769605f..b8c82ce99 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