diff options
| author | Luke Kanies <luke@madstop.com> | 2007-10-18 14:43:08 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-10-18 14:43:08 -0500 |
| commit | 64c6700bc7530f1213e124d248cc176a7cfe6180 (patch) | |
| tree | 4b51cfb3ddc6cc3d9818d971771a306e1865f4d8 /spec/unit/indirector/file_content | |
| parent | 56b83fe1bd1b08ccd3cc8a857e3a993790d2a983 (diff) | |
| download | puppet-64c6700bc7530f1213e124d248cc176a7cfe6180.tar.gz puppet-64c6700bc7530f1213e124d248cc176a7cfe6180.tar.xz puppet-64c6700bc7530f1213e124d248cc176a7cfe6180.zip | |
Fixing all of the classes that I just renamed, and adding
the TerminusSelector module to the File Metadata indirection.
Diffstat (limited to 'spec/unit/indirector/file_content')
| -rwxr-xr-x | spec/unit/indirector/file_content/local.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/indirector/file_content/local.rb b/spec/unit/indirector/file_content/local.rb index 08f66acb6..81ebd8ed0 100755 --- a/spec/unit/indirector/file_content/local.rb +++ b/spec/unit/indirector/file_content/local.rb @@ -5,25 +5,25 @@ require File.dirname(__FILE__) + '/../../../spec_helper' -require 'puppet/indirector/file_content/file' +require 'puppet/indirector/file_content/local' -describe Puppet::Indirector::FileContent::File do +describe Puppet::Indirector::FileContent::Local do it "should be registered with the file_content indirection" do - Puppet::Indirector::Terminus.terminus_class(:file_content, :file).should equal(Puppet::Indirector::FileContent::File) + Puppet::Indirector::Terminus.terminus_class(:file_content, :local).should equal(Puppet::Indirector::FileContent::Local) end it "should be a subclass of the File terminus" do - Puppet::Indirector::FileContent::File.superclass.should equal(Puppet::Indirector::File) + Puppet::Indirector::FileContent::Local.superclass.should equal(Puppet::Indirector::File) end end -describe Puppet::Indirector::FileContent::File, "when finding a single file" do +describe Puppet::Indirector::FileContent::Local, "when finding a single local" do before do - @content = Puppet::Indirector::FileContent::File.new - @path = "/my/file" + @content = Puppet::Indirector::FileContent::Local.new + @path = "/my/local" end - it "should return nil if the file does not exist" + it "should return nil if the local does not exist" - it "should return a Content instance with the path set to the file if the file exists" + it "should return a Content instance with the path set to the local if the local exists" end |
