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
@ -66,3 +66,26 @@ assert_equal 'ok', %q{
|
|||||||
end
|
end
|
||||||
C.new.foo {}
|
C.new.foo {}
|
||||||
}, '[ruby-core:14813]'
|
}, '[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…
x
Reference in New Issue
Block a user