Skip to content

Commit 99572c4

Browse files
committed
Enable a language/send spec for methods yielding
1 parent 2d10d3b commit 99572c4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spec/filters/bugs/language/send.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
fails "Invoking a method passes literal hashes without curly braces as the last parameter"
77
fails "Invoking a method raises a SyntaxError with both a literal block and an object as block"
88
fails "Invoking a method with an object as a block uses 'to_proc' for coercion"
9-
fails "Invoking a method with a block makes it available to yield"
109
end

spec/rubyspec/language/fixtures/send.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def self.fooM0O1R(a=1, *r); [a, r]; end
1919
def self.fooM1O1R(a, b=1, *r); [a, b, r]; end
2020

2121
def self.one(a); a; end
22-
# def oneb(a,&b); [a,yield(b)]; end
22+
def self.oneb(a,&b); [a,yield(b)]; end
2323
# def twob(a,b,&c); [a,b,yield(c)]; end
2424
def self.makeproc(&b) b end
2525

0 commit comments

Comments
 (0)