Sha256: bf9c81c15a35a93c935eb2ccbeeda098f0dacd5fa38a4717337810c1cdce702f
Contents?: true
Size: 1.15 KB
Versions: 14
Compression:
Stored size: 1.15 KB
Contents
require 'spec_helper' include SpecInfra::Helper::Fedora describe process("memcached") do let(:stdout) { " 1407\n" } its(:pid) { should eq 1407 } its(:command) { should eq "ps -C memcached -o pid= | head -1" } end describe process("memcached") do let(:stdout) { "/usr/bin/memcached -m 14386 -p 11211 -u nobody -l 10.11.1.53 -c 30000\n" } its(:args) { should match /-c 30000\b/ } its(:command) { should eq "ps -C memcached -o args= | head -1" } end describe process("memcached") do let(:stdout) { "nobody\n" } its(:user) { should eq "nobody" } its(:command) { should eq "ps -C memcached -o user= | head -1" } end describe process("memcached") do let(:stdout) { "nobody\n" } its(:group) { should eq "nobody" } its(:command) { should eq "ps -C memcached -o group= | head -1" } end describe process("memcached") do context "when running" do let(:stdout) { " 1407\n" } it { should be_running } its(:command) { should eq "ps -C memcached -o pid= | head -1" } end context "when not running" do let(:stdout) { " 1407\n" } it { should be_running } its(:command) { should eq "ps -C memcached -o pid= | head -1" } end end
Version data entries
14 entries across 14 versions & 1 rubygems