We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
guard -> { respond_to? }
1 parent 711251a commit dc2f828Copy full SHA for dc2f828
1 file changed
core/process/_fork_spec.rb
@@ -5,6 +5,8 @@
5
Process.respond_to?(:_fork).should == Process.respond_to?(:fork)
6
end
7
8
+ # Using respond_to? in a guard here is OK because the correct semantics
9
+ # are that _fork is implemented if and only if fork is (see above).
10
guard_not -> { Process.respond_to?(:fork) } do
11
it "raises a NotImplementedError when called" do
12
-> { Process._fork }.should raise_error(NotImplementedError)
0 commit comments