SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
2014-11-14 - Why Test Driven Development (TDD) Works for Sysadmins @ LISA14
8.
require 'spec_helper'
!
describe package('httpd') do
it { should be_installed }
end
!
describe service('httpd') do
it { should be_enabled }
it { should be_running }
end
!
describe port(80) do
it { should be_listening }
end
9.
$ rake spec
!
Package "httpd"
should be installed
!
Service "httpd"
should be enabled
should be running
!
Port "80"
should be listening
!
4 examples, 0 failures