Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vbscript resource #559

Merged
merged 4 commits into from
Mar 20, 2016
Merged

Add vbscript resource #559

merged 4 commits into from
Mar 20, 2016

Conversation

chris-rock
Copy link
Contributor

This PR adds support for vbscript for Windows:

# script with multiple lines
myscript = <<-EOH
  WScript.Echo "hello"
EOH

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

# simple script without any newline
describe vbscript("Wscript.Stdout.Write \"hello\"") do
  its('stdout') { should eq 'hello' }
end

#
# Since Windows does not delete tmp files automatically, we remove the VBScript
# after we executed it
# @see https://msdn.microsoft.com/en-us/library/aa364991.aspx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic description!

@arlimus
Copy link
Contributor

arlimus commented Mar 20, 2016

Kudos, great resource 👍 :)

arlimus added a commit that referenced this pull request Mar 20, 2016
@arlimus arlimus merged commit 1d7c110 into master Mar 20, 2016
@arlimus arlimus deleted the chris-rock/vbscript branch March 20, 2016 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants