about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_process.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_process.rb b/test/test_process.rb
new file mode 100644
index 0000000..a480312
--- /dev/null
+++ b/test/test_process.rb
@@ -0,0 +1,12 @@
+# -*- encoding: binary -*-
+# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
+# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+require './test/helper'
+require 'dtas/process'
+class TestProcess < Minitest::Unit::TestCase
+ include DTAS::Process
+
+ def test_qx_env
+   assert_equal "WORLD\n", qx({"HELLO" => "WORLD"}, 'echo $HELLO')
+ end
+end