mirror of
https://github.com/inspec/inspec
synced 2024-12-22 19:13:24 +00:00
659b4b373a
Signed-off-by: Miah Johnson <miah@chia-pet.org>
17 lines
409 B
Ruby
17 lines
409 B
Ruby
# 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)
|
|
_(resource.command.to_s).must_include vb_script
|
|
end
|
|
end
|