summaryrefslogtreecommitdiffstats
path: root/spec/unit/interfaces_spec.rb
diff options
context:
space:
mode:
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