summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/key
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-04-21 17:33:58 -0500
committerLuke Kanies <luke@madstop.com>2008-04-21 17:33:58 -0500
commit79ca44404af29b2bae621f9a6cb80467d95468aa (patch)
tree176d472b4b4067cd5038c5e629e246d8f2d73627 /spec/unit/indirector/key
parenta116d10b5e4412c362a246f12b77fc2e979aedbe (diff)
downloadpuppet-79ca44404af29b2bae621f9a6cb80467d95468aa.tar.gz
puppet-79ca44404af29b2bae621f9a6cb80467d95468aa.tar.xz
puppet-79ca44404af29b2bae621f9a6cb80467d95468aa.zip
Renaming the 'ca_file' ssl terminus type to 'ca'.
Diffstat (limited to 'spec/unit/indirector/key')
-rwxr-xr-xspec/unit/indirector/key/ca.rb (renamed from spec/unit/indirector/key/ca_file.rb)10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/indirector/key/ca_file.rb b/spec/unit/indirector/key/ca.rb
index 256c3b44a..579617f71 100755
--- a/spec/unit/indirector/key/ca_file.rb
+++ b/spec/unit/indirector/key/ca.rb
@@ -5,18 +5,18 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
-require 'puppet/indirector/key/ca_file'
+require 'puppet/indirector/key/ca'
-describe Puppet::SSL::Key::CaFile do
+describe Puppet::SSL::Key::Ca do
it "should have documentation" do
- Puppet::SSL::Key::CaFile.doc.should be_instance_of(String)
+ Puppet::SSL::Key::Ca.doc.should be_instance_of(String)
end
it "should store the ca key at the :cakey location" do
Puppet.settings.stubs(:use)
Puppet.settings.stubs(:value).returns "whatever"
Puppet.settings.stubs(:value).with(:cakey).returns "/ca/key"
- file = Puppet::SSL::Key::CaFile.new
+ file = Puppet::SSL::Key::Ca.new
file.stubs(:ca?).returns true
file.path("whatever").should == "/ca/key"
end
@@ -26,7 +26,7 @@ describe Puppet::SSL::Key::CaFile do
Puppet.settings.stubs(:use)
Puppet.settings.stubs(:value).returns "whatever"
Puppet.settings.stubs(:value).with(:cakey).returns "/ca/key"
- file = Puppet::SSL::Key::CaFile.new
+ file = Puppet::SSL::Key::Ca.new
file.stubs(:ca?).returns false
lambda { file.path("whatever") }.should raise_error(ArgumentError)
end