From b33d8c6461d4dd52d1fe03be47c8aad46934e7e3 Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 11 Aug 2008 12:20:36 +0100 Subject: Add module level tests for Facter::IPAddress --- spec/unit/util/ip.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 spec/unit/util/ip.rb 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 + -- cgit