diff options
| author | Luke Kanies <luke@madstop.com> | 2008-07-30 11:04:01 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-07-30 11:04:01 -0500 |
| commit | 8033bd4b7398785048cf789698c1b341049c5983 (patch) | |
| tree | c2b2030c4aa1da4d088b550d25071a564aa715e6 /spec/unit/network/format.rb | |
| parent | 3405841140ad118a500f44b6d35c9977b5eca473 (diff) | |
| download | puppet-8033bd4b7398785048cf789698c1b341049c5983.tar.gz puppet-8033bd4b7398785048cf789698c1b341049c5983.tar.xz puppet-8033bd4b7398785048cf789698c1b341049c5983.zip | |
Moving validation from FormatHandler to Format.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/network/format.rb')
| -rwxr-xr-x | spec/unit/network/format.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/network/format.rb b/spec/unit/network/format.rb index 34a841603..b746f8080 100755 --- a/spec/unit/network/format.rb +++ b/spec/unit/network/format.rb @@ -30,6 +30,10 @@ describe Puppet::Network::Format do Puppet::Network::Format.new(:my_format).name.should == :my_format end + it "should always convert its name to a downcased symbol" do + Puppet::Network::Format.new(:My_Format).name.should == :my_format + end + it "should be able to set its mime type at initialization" do format = Puppet::Network::Format.new(:my_format, :mime => "foo/bar") format.mime.should == "foo/bar" |
