summaryrefslogtreecommitdiffstats
path: root/spec/unit/file_serving
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-22 23:18:58 -0500
committerLuke Kanies <luke@madstop.com>2007-10-22 23:18:58 -0500
commitb874751cbb04c9250163e8cb5600418e12414dfa (patch)
tree95766526deb1949dedcfe067f28b17b4644e7501 /spec/unit/file_serving
parentde5d91e2036de2934a4eec79d35a714f3ed24b10 (diff)
downloadpuppet-b874751cbb04c9250163e8cb5600418e12414dfa.tar.gz
puppet-b874751cbb04c9250163e8cb5600418e12414dfa.tar.xz
puppet-b874751cbb04c9250163e8cb5600418e12414dfa.zip
Renaming the FileServing TerminusSelector module to IndirectionHooks,
because I'm going to add some hooks for transforming returned objects.
Diffstat (limited to 'spec/unit/file_serving')
-rwxr-xr-xspec/unit/file_serving/content.rb4
-rwxr-xr-xspec/unit/file_serving/indirection_hooks.rb (renamed from spec/unit/file_serving/terminus_selector.rb)10
-rwxr-xr-xspec/unit/file_serving/metadata.rb4
3 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/file_serving/content.rb b/spec/unit/file_serving/content.rb
index e15aa8be6..d6b5fdbe7 100755
--- a/spec/unit/file_serving/content.rb
+++ b/spec/unit/file_serving/content.rb
@@ -13,8 +13,8 @@ describe Puppet::FileServing::Content do
Puppet::FileServing::Content.indirection.name.should == :file_content
end
- it "should should include the TerminusSelector module in its indirection" do
- Puppet::FileServing::Content.indirection.metaclass.included_modules.should include(Puppet::FileServing::TerminusSelector)
+ it "should should include the IndirectionHooks module in its indirection" do
+ Puppet::FileServing::Content.indirection.metaclass.included_modules.should include(Puppet::FileServing::IndirectionHooks)
end
end
diff --git a/spec/unit/file_serving/terminus_selector.rb b/spec/unit/file_serving/indirection_hooks.rb
index 9c2c01bfd..34614b7b8 100755
--- a/spec/unit/file_serving/terminus_selector.rb
+++ b/spec/unit/file_serving/indirection_hooks.rb
@@ -5,12 +5,12 @@
require File.dirname(__FILE__) + '/../../spec_helper'
-require 'puppet/file_serving/terminus_selector'
+require 'puppet/file_serving/indirection_hooks'
-describe Puppet::FileServing::TerminusSelector, " when being used to select termini" do
+describe Puppet::FileServing::IndirectionHooks, " when being used to select termini" do
before do
@object = Object.new
- @object.extend(Puppet::FileServing::TerminusSelector)
+ @object.extend(Puppet::FileServing::IndirectionHooks)
end
it "should escape the key before parsing" do
@@ -83,10 +83,10 @@ describe Puppet::FileServing::TerminusSelector, " when being used to select term
end
end
-describe Puppet::FileServing::TerminusSelector, " when looking for a module whose name matches the mount name" do
+describe Puppet::FileServing::IndirectionHooks, " when looking for a module whose name matches the mount name" do
before do
@object = Object.new
- @object.extend(Puppet::FileServing::TerminusSelector)
+ @object.extend(Puppet::FileServing::IndirectionHooks)
@modules = mock 'modules'
@object.stubs(:terminus).with(:modules).returns(@modules)
diff --git a/spec/unit/file_serving/metadata.rb b/spec/unit/file_serving/metadata.rb
index 27ebe2471..bdddd255b 100755
--- a/spec/unit/file_serving/metadata.rb
+++ b/spec/unit/file_serving/metadata.rb
@@ -9,8 +9,8 @@ describe Puppet::FileServing::Metadata do
Puppet::FileServing::Metadata.indirection.name.should == :file_metadata
end
- it "should should include the TerminusSelector module in its indirection" do
- Puppet::FileServing::Metadata.indirection.metaclass.included_modules.should include(Puppet::FileServing::TerminusSelector)
+ it "should should include the IndirectionHooks module in its indirection" do
+ Puppet::FileServing::Metadata.indirection.metaclass.included_modules.should include(Puppet::FileServing::IndirectionHooks)
end
end