Sha256: 37cd6794402cca553c282fe2a4c938f8b664d02e4563efe683654219565eddf0
Contents?: true
Size: 834 Bytes
Versions: 2
Compression:
Stored size: 834 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "RubyProcess" do it "should be able to do basic stuff" do RubyProcess::ClassProxy.run do |data| sp = data[:subproc] sp.new(:String, "Wee") ts = [] 1.upto(50) do |tcount| ts << Thread.new do 1.upto(250) do str = sp.new(:String, "Kasper Johansen") str.__rp_marshal.should eq "Kasper Johansen" str << " More" str.__rp_marshal.should include "Johansen" str << " Even more" str.__rp_marshal.should_not include "Christina" str << " Much more" str.__rp_marshal.should eq "Kasper Johansen More Even more Much more" end end end ts.each do |t| t.join end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ruby_process-0.0.13 | spec/hard_load_spec.rb |
RubyProcess-0.0.12 | spec/hard_load_spec.rb |