blob: bce11d06c5020caf93eca5cdc1c8a047c5515d2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require File.expand_path('../../../spec_helper', __FILE__)
require 'etc'
ruby_version_is "2.2" do
describe "Etc.nprocessors" do
it "returns the number of online processors" do
Etc.nprocessors.should be_kind_of(Integer)
Etc.nprocessors.should >= 1
end
end
end
|