spec/debian/file_spec.rb in serverspec-0.7.5 vs spec/debian/file_spec.rb in serverspec-0.7.6

- old
+ new

@@ -142,11 +142,11 @@ it { should_not be_readable.by('others') } end describe file('/tmp') do it { should be_readable.by_user('mail') } - its(:command) { should eq "su -c \"test -r /tmp\" mail" } + its(:command) { should eq "su -s /bin/sh -c \"test -r /tmp\" mail" } end describe file('/tmp') do it { should_not be_readable.by_user('invalid-user') } end @@ -192,11 +192,11 @@ it { should_not be_writable.by('others') } end describe file('/tmp') do it { should be_writable.by_user('mail') } - its(:command) { should eq "su -c \"test -w /tmp\" mail" } + its(:command) { should eq "su -s /bin/sh -c \"test -w /tmp\" mail" } end describe file('/tmp') do it { should_not be_writable.by_user('invalid-user') } end @@ -242,10 +242,10 @@ it { should_not be_executable.by('others') } end describe file('/tmp') do it { should be_executable.by_user('mail') } - its(:command) { should eq "su -c \"test -x /tmp\" mail" } + its(:command) { should eq "su -s /bin/sh -c \"test -x /tmp\" mail" } end describe file('/tmp') do it { should_not be_executable.by_user('invalid-user') } end