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.7 spec/unit/util/partitions_spec.rb
facter-2.5.7-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.7-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.7-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.5.6-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.6-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.6-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.5.6 spec/unit/util/partitions_spec.rb
facter-2.5.5-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.5-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.5-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.5.5 spec/unit/util/partitions_spec.rb
facter-2.5.4-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.4-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.4-universal-darwin spec/unit/util/partitions_spec.rb
facter-2.5.4 spec/unit/util/partitions_spec.rb
facter-2.5.1 spec/unit/util/partitions_spec.rb
facter-2.5.1-x86-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.1-x64-mingw32 spec/unit/util/partitions_spec.rb
facter-2.5.1-universal-darwin spec/unit/util/partitions_spec.rb