Sha256: 78996f010b44885cbffb958a5fc6ec1fa51f2a939ff52369cf69bb444e7f5054
Contents?: true
Size: 800 Bytes
Versions: 21
Compression:
Stored size: 800 Bytes
Contents
Dir.chdir File.join File.dirname(__FILE__), '../../../' require './spec/env/iface.rb' RSpec.describe "iface:driver:pipe_spec" do include_context "iface:driver" it "does close the read back pipe when when a syntax error occurs" do @pipe.puts "a" expect(@pipe).to raise_eof_from_readline_within(6.seconds) end it "does not close the read back pipe when when no syntax error occurs" do @pipe.puts "[]" expect(@pipe).not_to raise_eof_from_readline_within(6.seconds) end it "does terminate the proccess when a syntax error occurs" do pid = @pipe.pid @pipe.puts "a" expect(pid).to die_within(6.seconds) end it "does terminate the proccess when the pipe is closed" do pid = @pipe.pid @pipe.close expect(pid).to die_within(6.seconds) end end
Version data entries
21 entries across 21 versions & 1 rubygems