Skip to content

Commit

Permalink
Binmode?
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jan 4, 2018
1 parent 7df9718 commit 182828f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/remote_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def write_program(code)
def remote_debug(*commands)
enter(*commands)

Open3.popen2e("ruby #{example_path}") do |_i, _oe, t|
Open3.popen2e("ruby #{example_path}") do |i, oe, t|
i.binmode
oe.binmode

launch_client

t.value
Expand Down
2 changes: 1 addition & 1 deletion test/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def cleanup_namespace
# Temporary file where code for each test is saved
#
def example_file
@example_file ||= File.new(example_path, "w+")
@example_file ||= File.new(example_path, "wb+")
end

#
Expand Down

0 comments on commit 182828f

Please sign in to comment.