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