inspec/test/integration/default/vbscript_spec.rb
2016-03-19 19:04:31 +01:00

15 lines
320 B
Ruby

# encoding: utf-8
# script that may have multiple lines
vbscript = <<-EOH
WScript.Echo "hello"
EOH
describe vbscript(vbscript) do
its('stdout') { should eq "hello\r\n" }
end
# ensure that we do not require a newline
describe vbscript("Wscript.Stdout.Write \"hello\"") do
its('stdout') { should eq 'hello' }
end