Sha256: dcde535c8e3db0306ff651c88c88df8cd7f79663ae04e508a772505f5feacdfb

Contents?: true

Size: 350 Bytes

Versions: 11

Compression:

Stored size: 350 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'Gentoo'
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

11 entries across 11 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/gentoo/cgroup_spec.rb
serverspec-0.11.0 spec/gentoo/cgroup_spec.rb
serverspec-0.10.13 spec/gentoo/cgroup_spec.rb
serverspec-0.10.12 spec/gentoo/cgroup_spec.rb
serverspec-0.10.11 spec/gentoo/cgroup_spec.rb
serverspec-0.10.10 spec/gentoo/cgroup_spec.rb
serverspec-0.10.9 spec/gentoo/cgroup_spec.rb
serverspec-0.10.8 spec/gentoo/cgroup_spec.rb
serverspec-0.10.7 spec/gentoo/cgroup_spec.rb
serverspec-0.10.6 spec/gentoo/cgroup_spec.rb
serverspec-0.10.5 spec/gentoo/cgroup_spec.rb