Skip to content

Commit 061c802

Browse files
committed
Fix typos in capi/proc_spec.rb specs added recently
1 parent 6e5f218 commit 061c802

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

spec/ruby/optional/capi/proc_spec.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@
9393
end
9494

9595
it "raises TypeError if the last argument is not a Hash" do
96-
prc = proc { |*args, **kwargs| [args, kw] }
97-
9896
-> {
99-
@p.rb_proc_call_kw(prc, [42])
97+
@p.rb_proc_call_kw(proc {}, [42])
10098
}.should raise_error(TypeError, 'no implicit conversion of Integer into Hash')
10199
end
102100
end
@@ -125,10 +123,8 @@
125123
end
126124

127125
it "raises TypeError if the last argument is not a Hash" do
128-
prc = proc { |*args, **kwargs, &block| [args, kw, block.call(42)] }
129-
130126
-> {
131-
@p.rb_proc_call_with_block_kw(prc, [42], proc {})
127+
@p.rb_proc_call_with_block_kw(proc {}, [42], proc {})
132128
}.should raise_error(TypeError, 'no implicit conversion of Integer into Hash')
133129
end
134130

0 commit comments

Comments
 (0)