inspec/test/unit/resources/vbscript_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

15 lines
389 B
Ruby

require 'helper'
require 'inspec/resource'
require 'inspec/resources/vbscript'
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