diff options
| author | Luke Kanies <luke@madstop.com> | 2009-08-01 23:19:02 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-08-02 16:38:48 +1000 |
| commit | 1ce31b4f5c5a38aa6914a5367ea6dd8db53174ab (patch) | |
| tree | 1b97d32b43a4d3f1d1e15c985a8aa347613ffba7 /spec | |
| parent | cc3f56a68b04ba26c0234e1434abe7f58e6c7218 (diff) | |
| download | puppet-1ce31b4f5c5a38aa6914a5367ea6dd8db53174ab.tar.gz puppet-1ce31b4f5c5a38aa6914a5367ea6dd8db53174ab.tar.xz puppet-1ce31b4f5c5a38aa6914a5367ea6dd8db53174ab.zip | |
Migrating Handler base tests from test/ to spec/
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/integration/network/handler.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/integration/network/handler.rb b/spec/integration/network/handler.rb new file mode 100755 index 000000000..44152dacf --- /dev/null +++ b/spec/integration/network/handler.rb @@ -0,0 +1,25 @@ +#!/usr/bin/env ruby + +require File.dirname(__FILE__) + '/../../spec_helper' + +require 'puppet/network/client' + +describe Puppet::Network::Handler do + %w{ca filebucket fileserver master report resource runner status}.each do |name| + it "should have a #{name} client" do + Puppet::Network::Handler.handler(name).should be_instance_of(Class) + end + + it "should have a name" do + Puppet::Network::Handler.handler(name).name.to_s.downcase.should == name.to_s.downcase + end + + it "should have an interface" do + Puppet::Network::Handler.handler(name).interface.should_not be_nil + end + + it "should have a prefix for the interface" do + Puppet::Network::Handler.handler(name).interface.prefix.should_not be_nil + end + end +end |
