mirror of
https://github.com/inspec/inspec
synced 2024-12-24 12:03:23 +00:00
a5309ea392
Signed-off-by: Ryan Davis <zenspider@chef.io>
15 lines
389 B
Ruby
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
|