mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add test_knownbug [ruby-core:14813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e2fe4a1eb
commit
4d6c034752
1 changed files with 23 additions and 0 deletions
|
@ -66,3 +66,26 @@ assert_equal 'ok', %q{
|
|||
end
|
||||
C.new.foo {}
|
||||
}, '[ruby-core:14813]'
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
module M
|
||||
class A
|
||||
class << self
|
||||
attr_accessor :at
|
||||
def workflow_rule
|
||||
yield self
|
||||
end
|
||||
|
||||
def eval_str(str)
|
||||
eval(str)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
M::A.eval_str(<<END)
|
||||
workflow_rule do |r|
|
||||
r.at 1
|
||||
end
|
||||
END
|
||||
}, '[ruby-core:14641]'
|
||||
|
|
Loading…
Add table
Reference in a new issue