diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-05-31 15:37:30 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-05-31 15:37:30 -0700 |
commit | 97927e321d1e24554ad21b92ef4afb1bd64c0167 (patch) | |
tree | df2f82066114918911670749887812674e4a72e1 /spec/unit/interfaces_spec.rb | |
parent | 59173268a5c6525a4a5df55b362775d07bc6b52d (diff) | |
parent | 9404a7a3bb8da660e26897d052cdd03c291fb0bb (diff) | |
download | facter-master.tar.gz facter-master.tar.xz facter-master.zip |
Diffstat (limited to 'spec/unit/interfaces_spec.rb')
-rwxr-xr-x | spec/unit/interfaces_spec.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/unit/interfaces_spec.rb b/spec/unit/interfaces_spec.rb index 8b295d6..cfe4226 100755 --- a/spec/unit/interfaces_spec.rb +++ b/spec/unit/interfaces_spec.rb @@ -3,17 +3,14 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require 'facter' +require 'facter/util/ip' describe "Per Interface IP facts" do - before do - Facter.loadfacts - end - it "should replace the ':' in an interface list with '_'" do # So we look supported Facter.fact(:kernel).stubs(:value).returns("SunOS") - Facter::Util::IP.expects(:get_interfaces).returns %w{eth0:1 eth1:2} + Facter::Util::IP.stubs(:get_interfaces).returns %w{eth0:1 eth1:2} Facter.fact(:interfaces).value.should == %{eth0_1,eth1_2} end end |