1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
require 'spec_helper'
property[:os] = nil
set :os, :family => 'redhat'
describe get_command(:enable_service, 'httpd') do
it { should eq 'chkconfig httpd on' }
end
describe get_command(:disable_service, 'httpd') do
it { should eq 'chkconfig httpd off' }
end
describe get_command(:start_service, 'httpd') do
it { should eq 'service httpd start' }
end
describe get_command(:stop_service, 'httpd') do
it { should eq 'service httpd stop' }
end
describe get_command(:restart_service, 'httpd') do
it { should eq 'service httpd restart' }
end
describe get_command(:reload_service, 'httpd') do
it { should eq 'service httpd reload' }
end
|