Skip to content

Commit d7578db

Browse files
aardvark179eregon
authored andcommitted
Add check that proof has been populated in the errinfo spec.
(cherry picked from commit 6e58fa8)
1 parent 01dfb7e commit d7578db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/ruby/optional/capi/kernel_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,11 @@
313313
@s.rb_protect_null_status(42) { |x| raise }.should == nil
314314
end
315315

316-
it "ppoulates errinfo with the captured exception" do
316+
it "poulates errinfo with the captured exception" do
317317
proof = []
318318
@s.rb_protect_errinfo(77, proof) { |x| raise NameError }.class.should == NameError
319+
proof[0].should == 23
320+
proof[1].should == nil
319321
end
320322

321323
end

0 commit comments

Comments
 (0)