summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/unit/util/ip.rb18
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
+