diff options
author | Luke Kanies <luke@puppetlabs.com> | 2011-02-22 13:36:18 -0800 |
---|---|---|
committer | Luke Kanies <luke@puppetlabs.com> | 2011-02-22 13:36:18 -0800 |
commit | 7da0a26f1bd44ecfffe9f622ec9d560870506207 (patch) | |
tree | bef87a0d9880b3878a50ea8c2be0e80ccd90b438 /spec/unit/interface_spec.rb | |
parent | 04fb6de5e2108799e47a081e5331d932fcf53109 (diff) | |
download | puppet-7da0a26f1bd44ecfffe9f622ec9d560870506207.tar.gz puppet-7da0a26f1bd44ecfffe9f622ec9d560870506207.tar.xz puppet-7da0a26f1bd44ecfffe9f622ec9d560870506207.zip |
Adding a string form to interfaces
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'spec/unit/interface_spec.rb')
-rw-r--r-- | spec/unit/interface_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/interface_spec.rb b/spec/unit/interface_spec.rb index 4fe797b6b..5d25623e7 100644 --- a/spec/unit/interface_spec.rb +++ b/spec/unit/interface_spec.rb @@ -32,6 +32,10 @@ describe Puppet::Interface do end end + it "should use its name converted to a string as its string form" do + Puppet::Interface.new(:me).to_s.should == "me" + end + it "should allow overriding of the default format" do face = Puppet::Interface.new(:me) face.set_default_format :foo |