From a57c6441a829a08d3ca341eecf4f1b4a5e43b909 Mon Sep 17 00:00:00 2001 From: lest Date: Wed, 21 Dec 2011 18:53:38 +0300 Subject: remove Kernel#singleton_class from core_ext as it is present in ruby 1.9 --- activesupport/test/core_ext/kernel_test.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'activesupport/test/core_ext') diff --git a/activesupport/test/core_ext/kernel_test.rb b/activesupport/test/core_ext/kernel_test.rb index 995bc0751a..73a7179872 100644 --- a/activesupport/test/core_ext/kernel_test.rb +++ b/activesupport/test/core_ext/kernel_test.rb @@ -42,11 +42,6 @@ class KernelTest < Test::Unit::TestCase assert_equal 1, silence_stderr { 1 } end - def test_singleton_class - o = Object.new - assert_equal class << o; self end, o.singleton_class - end - def test_class_eval o = Object.new class << o; @x = 1; end @@ -112,4 +107,4 @@ class KernelDebuggerTest < Test::Unit::TestCase ensure Object.send(:remove_const, "Rails") end -end \ No newline at end of file +end -- cgit v1.2.3