From 9dc875f2460433e5f69eaf0a2dbb560e414db789 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Fri, 23 Aug 2013 16:00:08 +0900 Subject: add `cmd` (command output expression). --- test/io.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/io.rb') diff --git a/test/io.rb b/test/io.rb index 727c67303..315f3ea79 100644 --- a/test/io.rb +++ b/test/io.rb @@ -232,6 +232,10 @@ assert('IO#fileno') do io.closed? end +assert('`cmd`') do + assert_equal `echo foo`, "foo\n" +end + assert('IO TEST CLEANUP') do assert_nil MRubyIOTestUtil.io_test_cleanup end -- cgit v1.2.3