lib/expectr.rb in expectr-0.8.1 vs lib/expectr.rb in expectr-0.8.2
- old
+ new
@@ -212,9 +212,10 @@
#
# Send +str+ to application
#
def send(str)
+ raise ArgumentError unless @pid > 0
@stdin.syswrite str
end
#
# === Synopsis
- old
+ new