Sha256: d862406ad1d6a3e8aee572c046a594c747d829c6dd8b558d49bfadab87a7f881

Contents?: true

Size: 457 Bytes

Versions: 12

Compression:

Stored size: 457 Bytes

Contents

# encoding: utf-8

return unless os.windows?

# script that may have multiple lines
vbscript = <<-EOH
  WScript.Echo "hello"
EOH

describe vbscript(vbscript) do
  its('stdout') { should eq "hello\r\n" }
end

# remove whitespace \r\n from stdout
describe vbscript(vbscript) do
  its('strip') { should eq "hello" }
end

# ensure that we do not require a newline
describe vbscript("Wscript.Stdout.Write \"hello\"") do
  its('stdout') { should eq 'hello' }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
inspec-0.30.0 test/integration/default/vbscript_spec.rb
inspec-0.29.0 test/integration/default/vbscript_spec.rb
inspec-0.28.1 test/integration/default/vbscript_spec.rb
inspec-0.28.0 test/integration/default/vbscript_spec.rb
inspec-0.27.1 test/integration/default/vbscript_spec.rb
inspec-0.27.0 test/integration/default/vbscript_spec.rb
inspec-0.26.0 test/integration/default/vbscript_spec.rb
inspec-0.25.0 test/integration/default/vbscript_spec.rb
inspec-0.24.0 test/integration/default/vbscript_spec.rb
inspec-0.23 test/integration/default/vbscript_spec.rb
inspec-0.22.1 test/integration/default/vbscript_spec.rb
inspec-0.22.0 test/integration/default/vbscript_spec.rb