Sha256: 89060be19ad56313f6564a7c152ef5fc1129c780b42a47c71d79d31492714b5e
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "RubyProcess" do it "should be able to clean up after itself when timeout" do require "timeout" RubyProcess::ClassProxy.run do |data| sp = data[:subproc] begin Timeout.timeout(1) do sp.static(:Object, :sleep, 2) end raise "Expected timeout to be raised." rescue Timeout::Error #ignore. end answers = sp.instance_variable_get(:@answers) answers.should be_empty end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ruby_process-0.0.13 | spec/leaks_spec.rb |
RubyProcess-0.0.12 | spec/leaks_spec.rb |