summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-17 16:59:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-17 16:59:23 +0000
commit23980c8ba0a7e332204da31ba2b8ad5ae134c9c6 (patch)
treeb5fc5025a671277f2dc83f3ff76f3f3a7532a96c /bootstraptest
parentad82a53e5df909c10eb631b791dcc2af3d72972c (diff)
* bootstraptest/test_attr.rb: moved test for [ruby-core:14641].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_attr.rb26
-rw-r--r--bootstraptest/test_knownbug.rb23
2 files changed, 26 insertions, 23 deletions
diff --git a/bootstraptest/test_attr.rb b/bootstraptest/test_attr.rb
index c70e2c2..721a847 100644
--- a/bootstraptest/test_attr.rb
+++ b/bootstraptest/test_attr.rb
@@ -1,3 +1,29 @@
+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
+ begin
+ M::A.eval_str(<<-END)
+ workflow_rule do |r|
+ r.at 1
+ end
+ END
+ rescue ArgumentError => e
+ print "ok"
+ end
+}, '[ruby-core:14641]'
+
assert_equal %{ok}, %{
class A
attr :m
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index a2ada59..e8ad927 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -66,29 +66,6 @@ assert_equal 'ok', %q{
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]'
-
assert_equal 'true', %{
t = Thread.new { loop {} }
pid = fork {