Sha256: d3b8c0d07760e5bcba00479e72a2d5232a88fe63ef4edc3303f9945a760e8cf5

Contents?: true

Size: 349 Bytes

Versions: 8

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'Plamo'
end

describe cgroup('group1') do
  let(:stdout) { "1\r\n" }
  its('cpuset.cpus') { should eq 1 }
  its(:command) { should eq "cgget -n -r cpuset.cpus group1 | awk '{print $2}'" }
end

describe cgroup('group1') do
  let(:stdout) { "1\r\n" }
  its('cpuset.cpus') { should_not eq 0 }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/plamo/cgroup_spec.rb
serverspec-0.11.0 spec/plamo/cgroup_spec.rb
serverspec-0.10.13 spec/plamo/cgroup_spec.rb
serverspec-0.10.12 spec/plamo/cgroup_spec.rb
serverspec-0.10.11 spec/plamo/cgroup_spec.rb
serverspec-0.10.10 spec/plamo/cgroup_spec.rb
serverspec-0.10.9 spec/plamo/cgroup_spec.rb
serverspec-0.10.8 spec/plamo/cgroup_spec.rb