spec/gentoo/commands_spec.rb in serverspec-0.2.1 vs spec/gentoo/commands_spec.rb in serverspec-0.2.2
- old
+ new
@@ -57,18 +57,18 @@
describe commands.check_file_contain_within('Gemfile', 'rspec', '/^group :test do/', '/^end/') do
it { should eq "sed -n '/^group :test do/,/^end/p' Gemfile | grep -q 'rspec' -" }
end
describe commands.check_mode('/etc/sudoers', 440) do
- it { should eq 'stat -c %a /etc/sudoers | grep 440' }
+ it { should eq 'stat -c %a /etc/sudoers | grep \'^440$\'' }
end
describe commands.check_owner('/etc/passwd', 'root') do
- it { should eq 'stat -c %U /etc/passwd | grep root' }
+ it { should eq 'stat -c %U /etc/passwd | grep \'^root$\'' }
end
describe commands.check_grouped('/etc/passwd', 'wheel') do
- it { should eq 'stat -c %G /etc/passwd | grep wheel' }
+ it { should eq 'stat -c %G /etc/passwd | grep \'^wheel$\'' }
end
describe commands.check_cron_entry('root', '* * * * * /usr/local/bin/batch.sh') do
it { should eq 'crontab -u root -l | grep "\* \* \* \* \* /usr/local/bin/batch.sh"' }
end