serverspec 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -88,7 +88,7 @@ module Serverspec
88
88
  end
89
89
 
90
90
  def check_uid user, uid
91
- "id #{user} | grep uid=#{uid}("
91
+ "id #{user} | grep '^uid=#{uid}('"
92
92
  end
93
93
 
94
94
  def check_login_shell user, path_to_shell
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.2.17"
2
+ VERSION = "0.2.18"
3
3
  end
@@ -120,7 +120,7 @@ end
120
120
 
121
121
  describe 'have_uid', :os => :debian do
122
122
  subject { commands.check_uid('root', 0) }
123
- it { should eq "id root | grep uid=0(" }
123
+ it { should eq "id root | grep '^uid=0('" }
124
124
  end
125
125
 
126
126
  describe 'have_login_shell', :os => :debian do
@@ -119,7 +119,7 @@ end
119
119
 
120
120
  describe 'have_uid', :os => :gentoo do
121
121
  subject { commands.check_uid('root', 0) }
122
- it { should eq "id root | grep uid=0(" }
122
+ it { should eq "id root | grep '^uid=0('" }
123
123
  end
124
124
 
125
125
  describe 'have_login_shell', :os => :gentoo do
@@ -119,7 +119,7 @@ end
119
119
 
120
120
  describe 'have_uid', :os => :redhat do
121
121
  subject { commands.check_uid('root', 0) }
122
- it { should eq "id root | grep uid=0(" }
122
+ it { should eq "id root | grep '^uid=0('" }
123
123
  end
124
124
 
125
125
  describe 'have_login_shell', :os => :redhat do
@@ -119,7 +119,7 @@ end
119
119
 
120
120
  describe 'have_uid', :os => :solaris do
121
121
  subject { commands.check_uid('root', 0) }
122
- it { should eq "id root | grep uid=0(" }
122
+ it { should eq "id root | grep '^uid=0('" }
123
123
  end
124
124
 
125
125
  describe 'have_login_shell', :os => :solaris do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 17
10
- version: 0.2.17
9
+ - 18
10
+ version: 0.2.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gosuke Miyashita