Sha256: a7b4839963d2c0ca8a847f61820e03b77f32278169168eefe06f7279ff1e9be6

Contents?: true

Size: 723 Bytes

Versions: 15

Compression:

Stored size: 723 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)
require "pid_behavior"

if ChildProcess.jruby?
  describe ChildProcess::JRuby::IO do
    let(:io) { ChildProcess::JRuby::IO.new }

    it "raises an ArgumentError if given IO does not respond to :to_outputstream" do
      lambda { io.stdout = nil }.should raise_error(ArgumentError)
    end
  end

  describe ChildProcess::JRuby::Process do
    if ChildProcess.jruby_on_unix?
      it_behaves_like "a platform that provides the child's pid"
    else
      it "raises an error when trying to access the child's pid" do
        process = exit_with(0)
        process.start
        lambda { process.pid }.should raise_error(NotImplementedError)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/childprocess-0.1.7/spec/jruby_spec.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/childprocess-0.1.7/spec/jruby_spec.rb
childprocess-0.2.8 spec/jruby_spec.rb
childprocess-0.2.7 spec/jruby_spec.rb
childprocess-0.2.6 spec/jruby_spec.rb
childprocess-0.2.5 spec/jruby_spec.rb
childprocess-0.2.4 spec/jruby_spec.rb
childprocess-0.2.3 spec/jruby_spec.rb
childprocess-0.2.2 spec/jruby_spec.rb
childprocess-0.2.1 spec/jruby_spec.rb
childprocess-0.2.0 spec/jruby_spec.rb
childprocess-0.1.9 spec/jruby_spec.rb
childprocess-0.1.8 spec/jruby_spec.rb
childprocess-0.1.8.pre spec/jruby_spec.rb
childprocess-0.1.7 spec/jruby_spec.rb