2014-01-22 09:32:39 +00:00
|
|
|
require 'minitest/spec'
|
|
|
|
|
|
|
|
describe_recipe 'ntp::default' do
|
|
|
|
it "starts the ntp daemon" do
|
2014-01-27 15:07:01 +00:00
|
|
|
# ugly workaround because of race condition
|
|
|
|
assert_sh("sleep 3 && kill -0 $(cat /var/run/ntpd.pid)")
|
2014-01-22 09:32:39 +00:00
|
|
|
end
|
|
|
|
it "should sync the time" do
|
|
|
|
assert_sh("ntpq -p")
|
|
|
|
end
|
|
|
|
end
|