Skip to content

Commit

Permalink
Added failing test_vm test about method_missing with a block for a pr…
Browse files Browse the repository at this point in the history
…ivate method.

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2444 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
alloy committed Aug 31, 2009
1 parent 73bad43 commit 62252d8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test_vm/dispatch.rb
Expand Up @@ -325,6 +325,18 @@ def method_missing(x, *args, &block)
X.new.foo { 42 }
}

assert ':ok', %{
class X
def method_missing(x, *args, &block)
p :ok if x == :foo and block.call == 42
end
private
def foo; end
end
X.new.foo { 42 }
}

assert ':ok', %{
module M
def initialize(*args)
Expand Down

0 comments on commit 62252d8

Please sign in to comment.