summaryrefslogtreecommitdiffstats
path: root/spec/unit/interfaces_spec.rb
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-05-31 15:37:30 -0700
committerNick Lewis <nick@puppetlabs.com>2011-05-31 15:37:30 -0700
commit97927e321d1e24554ad21b92ef4afb1bd64c0167 (patch)
treedf2f82066114918911670749887812674e4a72e1 /spec/unit/interfaces_spec.rb
parent59173268a5c6525a4a5df55b362775d07bc6b52d (diff)
parent9404a7a3bb8da660e26897d052cdd03c291fb0bb (diff)
downloadfacter-master.tar.gz
facter-master.tar.xz
facter-master.zip
Merge branch 'ticket/master/7670'HEADmaster
Diffstat (limited to 'spec/unit/interfaces_spec.rb')
-rwxr-xr-xspec/unit/interfaces_spec.rb7
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