Skip to content

Commit

Permalink
Change to run scripts through ruby interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed May 20, 2018
1 parent 64ea9e6 commit e01124f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/unit/pty_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
output = StringIO.new
cmd = TTY::Command.new(output: output)

out, err = cmd.run(phased_output, pty: true)
out, err = cmd.run("ruby #{phased_output}", pty: true)

expect(out).to eq('.' * 10)
expect(err).to eq('')
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
output = StringIO.new
cmd = TTY::Command.new(output: output)

out, err = cmd.run(phased_output)
out, err = cmd.run("ruby #{phased_output}")

expect(out).to eq('.' * 10)
expect(err).to eq('')
Expand Down

0 comments on commit e01124f

Please sign in to comment.