inspec/test/unit/resources/vbscript_test.rb

16 lines
389 B
Ruby
Raw Normal View History

require "helper"
require "inspec/resource"
require "inspec/resources/vbscript"
2016-03-19 16:26:30 +00:00
describe "Inspec::Resources::VbScript" do
2016-03-19 16:26:30 +00:00
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