summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/indirector.rb')
-rwxr-xr-xspec/unit/indirector.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/indirector.rb b/spec/unit/indirector.rb
index 1efa7b2e5..c77ab0f62 100755
--- a/spec/unit/indirector.rb
+++ b/spec/unit/indirector.rb
@@ -54,6 +54,11 @@ describe Puppet::Indirector, "when registering an indirection" do
@indirection = @thingie.indirects :first, :some => :options
end
+ it "should extend the class with the Format Handler" do
+ @indirection = @thingie.indirects :first
+ @thingie.metaclass.ancestors.should be_include(Puppet::Network::FormatHandler)
+ end
+
after do
@indirection.delete if @indirection
end