aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/kernel/fork_spec.rb
blob: 8919d0914dd15c13afec62ea91e823831aecbea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
require File.expand_path('../../../shared/process/fork', __FILE__)

describe "Kernel#fork" do
  it "is a private method" do
    Kernel.should have_private_instance_method(:fork)
  end

  it_behaves_like :process_fork, :fork, KernelSpecs::Method.new
end

describe "Kernel.fork" do
  it_behaves_like :process_fork, :fork, Kernel
end