2019-06-11 22:24:35 +00:00
|
|
|
require "helper"
|
|
|
|
require "inspec/resource"
|
|
|
|
require "inspec/resources/vbscript"
|
2016-03-19 16:26:30 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
describe "Inspec::Resources::VbScript" do
|
2016-03-19 16:26:30 +00:00
|
|
|
|
|
|
|
vb_script = <<-EOH
|
|
|
|
WScript.Echo "hello vbscript"
|
|
|
|
EOH
|
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
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
|