inspec/test/unit/resources/ntp_conf_test.rb
Miah Johnson 2a1b1d8e88 Remove all leading newlines.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-31 11:43:44 -07:00

13 lines
386 B
Ruby

require 'helper'
require 'inspec/resource'
require 'inspec/resources/ntp_conf'
describe 'Inspec::Resources::NtpConf' do
it 'verify ntp config parsing' do
resource = load_resource('ntp_conf')
_(resource.driftfile).must_equal '/var/lib/ntp/ntp.drift'
_(resource.server).must_equal %w{
0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org
}
end
end