Sha256: 2fd37e4e908f9fd957140702bfc4838d94aabbd590d98fc80eb40f25f2884bfd
Contents?: true
Size: 753 Bytes
Versions: 10
Compression:
Stored size: 753 Bytes
Contents
require 'spec_helper' describe Specjour::CPU do context "on a Mac" do let(:hostinfo) do %( Mach kernel version: Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 Kernel configured for up to 2 processors. 2 processors are physically available. 220 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 Primary memory available: 4.00 gigabytes Default processor set: 72 tasks, 310 threads, 2 processors Load average: 0.09, Mach factor: 1.90 ) end before do stub(Specjour::CPU).command.returns(hostinfo) end it "returns the number of logically available processors" do Specjour::CPU.cores.should == 220 end end end
Version data entries
10 entries across 10 versions & 3 rubygems