blob: a71e76e714389199bf35ca29bf0b3fd69f86fdf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env rspec
require 'spec_helper'
require 'puppet/network/handler'
describe Puppet::Network::Handler do
%w{ca filebucket fileserver report 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
|