inspec/test/unit/resources/vbscript_test.rb

19 lines
427 B
Ruby
Raw Normal View History

2016-03-19 16:26:30 +00:00
# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter
require 'helper'
require 'inspec/resource'
describe 'Inspec::Resources::VbScript' do
vb_script = <<-EOH
WScript.Echo "hello vbscript"
EOH
it 'check if `vbscript` for windows is properly generated ' do
resource = MockLoader.new(:windows).load_resource('vbscript', vb_script)
2016-09-05 10:12:34 +00:00
_(resource.command.to_s).must_include vb_script
2016-03-19 16:26:30 +00:00
end
end