Sha256: c63a19c5d6b4454c02f5f808a18a60314ad32a50982f85959c8f81769dfebb2f
Contents?: true
Size: 790 Bytes
Versions: 85
Compression:
Stored size: 790 Bytes
Contents
Dir.chdir File.join File.dirname(__FILE__), '../../../' require './spec/env/iface.rb' RSpec.describe "iface:kern:pipe" do include_context "iface:kern" 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
85 entries across 85 versions & 1 rubygems