Skip to content

Instantly share code, notes, and snippets.

@hunner
Last active January 4, 2016 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunner/8568791 to your computer and use it in GitHub Desktop.
Save hunner/8568791 to your computer and use it in GitHub Desktop.
require 'spec_helper_acceptance'
describe 'ntp class' do
it "applies idempotently" do
pp = "class { 'ntp': }"
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end
describe file("/etc/ntp.conf") do
it { should be_file }
it { should contain("tinker panic 0") }
end
describe service("ntp") do
it { should be_running }
it { should be_enabled }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment