diff options
author | Paul Nasrat <pnasrat@googlemail.com> | 2008-08-11 12:20:36 +0100 |
---|---|---|
committer | Paul Nasrat <pnasrat@googlemail.com> | 2008-08-11 12:20:36 +0100 |
commit | b33d8c6461d4dd52d1fe03be47c8aad46934e7e3 (patch) | |
tree | 11fdbb0acd05bc6581f8f00bb74abf80e3f113cc | |
parent | d8b708b9d8e9685f1395042cb3ff5507856d2ac7 (diff) | |
download | facter-b33d8c6461d4dd52d1fe03be47c8aad46934e7e3.tar.gz facter-b33d8c6461d4dd52d1fe03be47c8aad46934e7e3.tar.xz facter-b33d8c6461d4dd52d1fe03be47c8aad46934e7e3.zip |
Add module level tests for Facter::IPAddress
-rw-r--r-- | spec/unit/util/ip.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/unit/util/ip.rb b/spec/unit/util/ip.rb new file mode 100644 index 0000000..31d9482 --- /dev/null +++ b/spec/unit/util/ip.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +require File.dirname(__FILE__) + '/../../spec_helper' + +require 'facter/util/ip' + +describe Facter::IPAddress do + + it "should return a list of interfaces" do + Facter::IPAddress.should respond_to(:get_interfaces) + end + + it "should return a value for a specific interface" do + Facter::IPAddress.should respond_to(:get_interface_value) + end + +end + |