aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_open3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_open3.rb')
-rw-r--r--test/test_open3.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_open3.rb b/test/test_open3.rb
index 24b82e7ec9..a0586622c1 100644
--- a/test/test_open3.rb
+++ b/test/test_open3.rb
@@ -59,9 +59,9 @@ class TestOpen3 < Test::Unit::TestCase
end
def test_commandline
- commandline = [RUBY, '-e', 'print :quux'].map{|s|/\s/=~s ? s.dump : s}.join(' ')
+ commandline = "echo quux\n"
Open3.popen3(commandline) {|i,o,e,t|
- assert_equal("quux", o.read)
+ assert_equal("quux\n", o.read)
}
end