inspec/test/integration/default/vbscript_spec.rb

21 lines
430 B
Ruby
Raw Normal View History

2016-03-18 22:22:15 +00:00
# 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
2016-03-26 21:35:33 +00:00
# remove whitespace \r\n from stdout
describe vbscript(vbscript) do
its('strip') { should eq "hello" }
end
2016-03-18 22:22:15 +00:00
# ensure that we do not require a newline
describe vbscript("Wscript.Stdout.Write \"hello\"") do
its('stdout') { should eq 'hello' }
end