test/test_interaction.rb in expectr-1.0.3 vs test/test_interaction.rb in expectr-1.1.0
- old
+ new
@@ -35,10 +35,14 @@
@exp.send("quit\n")
sleep 2
assert_raises(Expectr::ProcessError) { @exp.send("test\n") }
end
+ def test_winsize_set
+ assert_not_equal [0, 0], @exp.winsize
+ end
+
def test_interact_sets_appropriate_flags
[
Thread.new {
assert_equal false, @exp.interact?
@@ -102,13 +106,7 @@
@exp.send("quit\n")
}
].each {|x| x.join}
assert_not_nil @exp.expect(/321/)
- end
-
- def test_kill_process
- assert_equal true, @exp.kill!
- assert_equal 0, @exp.pid
- assert_raises(Expectr::ProcessError) { @exp.send("test\n") }
end
end