Sha256: 5a4d71b503fa3183c64ea7c27ebab9409e9214729c13ab1ff3a9155db38c09d0

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../../spec_helper'

require 'facter/util/vlans'

describe Facter::Util::Vlans do
    it "should return a list of vlans on Linux" do
        sample_output_file = File.dirname(__FILE__) + '/../data/linux_vlan_config'
        linux_vlanconfig = File.new(sample_output_file).read();
        Facter::Util::Vlans.stubs(:get_vlan_config).returns(linux_vlanconfig)
        Facter::Util::Vlans.get_vlans().should == %{400,300,200,100}
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facter-1.5.8 spec/unit/util/vlans.rb