Sha256: 4989f7f743b24adf00d905029cc91bf41e516c55115ce7494bb0119ff8ab9bee
Contents?: true
Size: 709 Bytes
Versions: 2
Compression:
Stored size: 709 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "RubyProcess" do it "should be able to do basic stuff" do require "stringio" Ruby_process::Cproxy.run do |data| data[:subproc].static(:Object, :require, "rubygems") data[:subproc].static(:Object, :require, "rexml/document") doc = Ruby_process::Cproxy::REXML::Document.new doc.add_element("test") strio = StringIO.new doc.write(strio) raise "Didnt expect REXML to be defined in host process." if Kernel.const_defined?(:REXML) raise "Expected strio to contain '<test/>' but it didnt: '#{strio.string}'." if strio.string != "<test/>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_process-0.0.7 | spec/cproxy_spec.rb |
ruby_process-0.0.5 | spec/cproxy_spec.rb |