2015-09-14 13:15:32 +00:00
|
|
|
# encoding utf-8
|
|
|
|
|
|
|
|
require 'helper'
|
|
|
|
require 'vulcano/resource'
|
|
|
|
|
2015-09-21 10:31:14 +00:00
|
|
|
describe 'Vulcano::Resources::Service' do
|
2015-09-22 16:33:05 +00:00
|
|
|
# TODO: make OS dependent
|
|
|
|
let(:resource) { load_resource('service', 'dhcp') }
|
2015-09-14 13:15:32 +00:00
|
|
|
|
2015-09-22 16:33:05 +00:00
|
|
|
# windows
|
|
|
|
# it 'verify service parsing' do
|
|
|
|
# pkg = { name: 'dhcp', description: 'DHCP Client', installed: true, running: true, enabled: true, type: 'windows' }
|
|
|
|
# _(resource.info).must_equal pkg
|
|
|
|
# _(resource.installed?).must_equal true
|
|
|
|
# _(resource.enabled?).must_equal true
|
|
|
|
# _(resource.running?).must_equal true
|
|
|
|
# end
|
2015-09-14 13:15:32 +00:00
|
|
|
end
|