3
require File.dirname(__FILE__) + '/../spec_helper'
7
describe "Per Interface IP facts" do
12
it "should replace the ':' in an interface list with '_'" do
13
# So we look supported
14
Facter.fact(:kernel).stubs(:value).returns("SunOS")
16
Facter::Util::IP.expects(:get_interfaces).returns %w{eth0:1 eth1:2}
17
Facter.fact(:interfaces).value.should == %{eth0_1,eth1_2}