Skip to content

Commit 2f62004

Browse files
committed
Simplify spec
1 parent 83b73dc commit 2f62004

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/ruby/optional/capi/proc_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@
104104

105105
# Ruby -> C -> Ruby -> Proc.new
106106
it "raises an ArgumentError when the C function calls a Ruby method that calls Proc.new" do
107-
def @p.Proc_new() Proc.new end
108-
-> { @p.rb_Proc_new(2) { :called } }.should raise_error(ArgumentError)
107+
-> {
108+
@p.rb_Proc_new(2) { :called }
109+
}.should raise_error(ArgumentError)
109110
end
110111

111112
# Ruby -> C -> Ruby -> C -> rb_funcall(Proc.new)

0 commit comments

Comments
 (0)