spec/freebsd/file_spec.rb in serverspec-1.11.0 vs spec/freebsd/file_spec.rb in serverspec-1.12.0
- old
+ new
@@ -79,28 +79,28 @@
it { should_not be_mode 'invalid' }
end
describe file('/etc/passwd') do
it { should be_owned_by 'root' }
- its(:command) { should eq "stat -c %U /etc/passwd | grep -- \\^root\\$" }
+ its(:command) { should eq "stat -f%Su /etc/passwd | grep -- \\^root\\$" }
end
describe file('/etc/passwd') do
it { should_not be_owned_by 'invalid-owner' }
end
describe file('/etc/passwd') do
it { should be_grouped_into 'root' }
- its(:command) { should eq "stat -c %G /etc/passwd | grep -- \\^root\\$" }
+ its(:command) { should eq "stat -f%Sg /etc/passwd | grep -- \\^root\\$" }
end
describe file('/etc/passwd') do
it { should_not be_grouped_into 'invalid-group' }
end
describe file('/etc/pam.d/system-auth') do
it { should be_linked_to '/etc/pam.d/system-auth-ac' }
- its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | egrep -e \"-> ./etc/pam.d/system-auth-ac.\"" }
+ its(:command) { should eq "stat -f%Y /etc/pam.d/system-auth | grep -- \"./etc/pam.d/system-auth-ac.\"" }
end
describe file('dummy-link') do
it { should_not be_linked_to '/invalid/target' }
end