Sha256: 0f436a2b690a88b89bfc391874b838a2409b35ad9d175c3c3c842321d54a499e

Contents?: true

Size: 458 Bytes

Versions: 60

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'
require 'facter'
require 'facter/util/partitions'

describe 'Facter::Util::Partitions' do
  describe 'on unsupported OSs' do
    before :each do
      Facter.fact(:kernel).stubs(:value).returns("SunOS")
    end
    
    it 'list should return empty array' do
      Facter::Util::Partitions.list.should == []
    end

    it 'available? should return false' do
      Facter::Util::Partitions.available?.should == false
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
facter-2.5.0 spec/unit/util/partitions_spec.rb
facter-2.5.0-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.0-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.0-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.4.6 spec/unit/util/partitions_spec.rb
facter-2.4.6-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.6-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.6-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.4.5 spec/unit/util/partitions_spec.rb
facter-2.4.5-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.5-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.5-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.4.4 spec/unit/util/partitions_spec.rb
facter-2.4.4-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.4-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.4-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.4.3 spec/unit/util/partitions_spec.rb
facter-2.4.3-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.3-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.4.3-universal-darwin spec/unit/util/partitions_spec.rb