Sha256: b3a372d4d9bdedc418ddf0e1eead4cee811e3c8f8081bf5ceff3f01de8215063

Contents?: true

Size: 378 Bytes

Versions: 60

Compression:

Stored size: 378 Bytes

Contents

require 'spec_helper'
require 'facter/util/posix'

describe Facter::Util::POSIX do
  describe "retrieving values via sysctl" do
    it "returns the result of the sysctl command" do
      Facter::Util::Resolution.expects(:exec).with("sysctl -n hw.pagesize 2>/dev/null").returns("somevalue")
      expect(described_class.sysctl("hw.pagesize")).to eq "somevalue"
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

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