Sha256: 9def46a94ff0e980432aa9505fb4b24fcea53c2fded7a9396486e2c851b85a5b
Contents?: true
Size: 484 Bytes
Versions: 52
Compression:
Stored size: 484 Bytes
Contents
#! /usr/bin/env ruby require 'spec_helper' describe "Physical processor count fact" do ["linux", "windows", "sunos", "openbsd"].each do |kernel| it "should return the value of the 'physicalcount' key of the 'processors' fact on #{kernel}" do Facter.fact(:kernel).stubs(:value).returns("#{kernel}") Facter.fact("processors").stubs(:value).returns({"physicalcount" => 2, "count" => 4}) Facter.fact("physicalprocessorcount").value.should eq 2 end end end
Version data entries
52 entries across 52 versions & 1 rubygems