Skip to content

Commit

Permalink
Enable a language/send spec for methods yielding
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 2, 2013
1 parent 2d10d3b commit 99572c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion spec/filters/bugs/language/send.rb
Expand Up @@ -6,5 +6,4 @@
fails "Invoking a method passes literal hashes without curly braces as the last parameter"
fails "Invoking a method raises a SyntaxError with both a literal block and an object as block"
fails "Invoking a method with an object as a block uses 'to_proc' for coercion"
fails "Invoking a method with a block makes it available to yield"
end
2 changes: 1 addition & 1 deletion spec/rubyspec/language/fixtures/send.rb
Expand Up @@ -19,7 +19,7 @@ def self.fooM0O1R(a=1, *r); [a, r]; end
def self.fooM1O1R(a, b=1, *r); [a, b, r]; end

def self.one(a); a; end
# def oneb(a,&b); [a,yield(b)]; end
def self.oneb(a,&b); [a,yield(b)]; end
# def twob(a,b,&c); [a,b,yield(c)]; end
def self.makeproc(&b) b end

Expand Down

0 comments on commit 99572c4

Please sign in to comment.