serverspec 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ module Serverspec
36
36
  end
37
37
 
38
38
  def check_process process
39
- "ps aux | grep -qw #{process}"
39
+ "ps aux | grep -w #{process} | grep -qv grep"
40
40
  end
41
41
 
42
42
  def check_file_contain file, expected_pattern
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -35,7 +35,7 @@ describe commands.check_running('httpd') do
35
35
  end
36
36
 
37
37
  describe commands.check_process('httpd') do
38
- it { should eq 'ps aux | grep -qw httpd' }
38
+ it { should eq 'ps aux | grep -w httpd | grep -qv grep' }
39
39
  end
40
40
 
41
41
  describe commands.check_file_contain('/etc/passwd', 'root') do
@@ -35,7 +35,7 @@ describe commands.check_running('httpd') do
35
35
  end
36
36
 
37
37
  describe commands.check_process('httpd') do
38
- it { should eq 'ps aux | grep -qw httpd' }
38
+ it { should eq 'ps aux | grep -w httpd | grep -qv grep' }
39
39
  end
40
40
 
41
41
  describe commands.check_file_contain('/etc/passwd', 'root') do
@@ -35,7 +35,7 @@ describe commands.check_running('httpd') do
35
35
  end
36
36
 
37
37
  describe commands.check_process('httpd') do
38
- it { should eq 'ps aux | grep -qw httpd' }
38
+ it { should eq 'ps aux | grep -w httpd | grep -qv grep' }
39
39
  end
40
40
 
41
41
  describe commands.check_file_contain('/etc/passwd', 'root') do
@@ -35,7 +35,7 @@ describe commands.check_running('httpd') do
35
35
  end
36
36
 
37
37
  describe commands.check_process('httpd') do
38
- it { should eq 'ps aux | grep -qw httpd' }
38
+ it { should eq 'ps aux | grep -w httpd | grep -qv grep' }
39
39
  end
40
40
 
41
41
  describe commands.check_file_contain('/etc/passwd', 'root') do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-03 00:00:00.000000000 Z
12
+ date: 2013-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 1.8.25
154
+ rubygems_version: 1.8.23
155
155
  signing_key:
156
156
  specification_version: 3
157
157
  summary: RSpec tests for your servers provisioned by Puppet, Chef or anything else