Sha256: d52b44385170b51d0cff1aaba97c74a66a1f24179ead490232ec575ff58c7674

Contents?: true

Size: 363 Bytes

Versions: 29

Compression:

Stored size: 363 Bytes

Contents

#! /usr/bin/env ruby

require 'spec_helper'
require 'facter/util/vlans'

describe Facter::Util::Vlans do
  it "should return a list of vlans on Linux" do
    linux_vlanconfig = my_fixture_read("linux_vlan_config")
    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

29 entries across 29 versions & 2 rubygems

Version Path
facter-1.7.6 spec/unit/util/vlans_spec.rb
facter-2.0.1.rc1 spec/unit/util/vlans_spec.rb
facter-2.0.1.rc1-x86-mingw32 spec/unit/util/vlans_spec.rb
facter-2.0.1.rc1-universal-darwin spec/unit/util/vlans_spec.rb
facter-1.7.5 spec/unit/util/vlans_spec.rb
facter-1.7.5.rc2 spec/unit/util/vlans_spec.rb
facter-1.7.5.rc1 spec/unit/util/vlans_spec.rb
facter-1.7.4 spec/unit/util/vlans_spec.rb
facter-1.7.4.rc1 spec/unit/util/vlans_spec.rb
facter-1.7.3 spec/unit/util/vlans_spec.rb
facter-1.7.3.rc1 spec/unit/util/vlans_spec.rb
facter-1.7.2 spec/unit/util/vlans_spec.rb
facter-1.7.2.rc1 spec/unit/util/vlans_spec.rb
facter-1.7.1 spec/unit/util/vlans_spec.rb
facter-1.7.1.rc1 spec/unit/util/vlans_spec.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/facter-1.6.17/spec/unit/util/vlans_spec.rb
facter-1.7.0 spec/unit/util/vlans_spec.rb
facter-1.7.0.rc2 spec/unit/util/vlans_spec.rb
facter-1.7.0.rc1 spec/unit/util/vlans_spec.rb
facter-1.6.18 spec/unit/util/vlans_spec.rb