diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-29 01:13:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-29 01:13:53 +0000 |
commit | 11803022002e188eb94868335d79ea2b16bd7934 (patch) | |
tree | e4cc4bf58874f11abddb6e70ea46a09c7b219798 /test/ruby/test_class.rb | |
parent | df158322cf05830b0d78f17c66c0699f71b7bcb3 (diff) |
* test/ruby/test_class.rb (test_cannot_reinitialize_class_with_initialize_copy),
(test_invalid_superclass): get rid of confusing ruby-mode.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r-- | test/ruby/test_class.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index fa50d2f3e7..47c9d9d99f 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -272,7 +272,7 @@ class TestClass < Test::Unit::TestCase end def test_cannot_reinitialize_class_with_initialize_copy # [ruby-core:50869] - assert_in_out_err([], <<-RUBY, ["Object"], []) + assert_in_out_err([], <<-'end;', ["Object"], []) class Class def initialize_copy(*); super; end end @@ -283,7 +283,7 @@ class TestClass < Test::Unit::TestCase A.send(:initialize_copy, Class.new(B)) rescue nil p A.superclass - RUBY + end; end module M @@ -302,38 +302,38 @@ class TestClass < Test::Unit::TestCase def test_invalid_superclass assert_raise(TypeError) do - eval <<-EOF + eval <<-'end;' class C < nil end - EOF + end; end assert_raise(TypeError) do - eval <<-EOF + eval <<-'end;' class C < false end - EOF + end; end assert_raise(TypeError) do - eval <<-EOF + eval <<-'end;' class C < true end - EOF + end; end assert_raise(TypeError) do - eval <<-EOF + eval <<-'end;' class C < 0 end - EOF + end; end assert_raise(TypeError) do - eval <<-EOF + eval <<-'end;' class C < "" end - EOF + end; end end end |