diff options
Diffstat (limited to 'spec/ruby/core/process')
| -rw-r--r-- | spec/ruby/core/process/_fork_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/core/process/_fork_spec.rb b/spec/ruby/core/process/_fork_spec.rb index 8e907f54bb..e1f45e2656 100644 --- a/spec/ruby/core/process/_fork_spec.rb +++ b/spec/ruby/core/process/_fork_spec.rb @@ -5,6 +5,8 @@ describe "Process._fork" do Process.respond_to?(:_fork).should == Process.respond_to?(:fork) end + # Using respond_to? in a guard here is OK because the correct semantics + # are that _fork is implemented if and only if fork is (see above). guard_not -> { Process.respond_to?(:fork) } do it "raises a NotImplementedError when called" do -> { Process._fork }.should raise_error(NotImplementedError) |
