diff options
-rw-r--r-- | lib/puppet/interface/node.rb | 1 | ||||
-rw-r--r-- | spec/unit/interface/node_spec.rb | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/interface/node.rb b/lib/puppet/interface/node.rb index 7d7362d8b..0a0f57a1e 100644 --- a/lib/puppet/interface/node.rb +++ b/lib/puppet/interface/node.rb @@ -1,4 +1,5 @@ require 'puppet/interface/indirector' Puppet::Interface::Indirector.new(:node) do + set_default_format :yaml end diff --git a/spec/unit/interface/node_spec.rb b/spec/unit/interface/node_spec.rb index afb609d2b..63109308d 100644 --- a/spec/unit/interface/node_spec.rb +++ b/spec/unit/interface/node_spec.rb @@ -12,6 +12,10 @@ describe Puppet::Interface.interface(:node) do @interface.should be_instance_of(Puppet::Interface::Indirector) end + it "should set its default format to :yaml" do + @interface.default_format.should == :yaml + end + it "should refer to the 'node' indirection" do @interface.indirection.name.should == :node end |