spec/debian/commands_spec.rb in serverspec-0.6.12 vs spec/debian/commands_spec.rb in serverspec-0.6.13

- old
+ new

@@ -68,9 +68,14 @@ describe 'check_enabled' do subject { commands.check_enabled('httpd') } it { should eq "ls /etc/rc3.d/ | grep -- httpd || grep 'start on' /etc/init/httpd.conf" } end +describe 'check_enabled with run level 5' do + subject { commands.check_enabled('httpd', 5) } + it { should eq "ls /etc/rc5.d/ | grep -- httpd || grep 'start on' /etc/init/httpd.conf" } +end + describe 'check_installed' do subject { commands.check_installed('httpd') } it { should eq "dpkg -s httpd && ! dpkg -s httpd | grep -E '^Status: .+ not-installed$'" } end