diff options
author | Xavier Noria <fxn@hashref.com> | 2010-04-05 12:15:08 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-04-05 12:15:08 -0700 |
commit | 89978f10afbad3f856e2959a811bed1982715408 (patch) | |
tree | 9913b04ec5a63e4e88dd70de023dc50029c43690 /activesupport/test/core_ext/object_and_class_ext_test.rb | |
parent | c140aca361506a3a759fbe03fad8adc748c807bb (diff) | |
download | rails-89978f10afbad3f856e2959a811bed1982715408.tar.gz rails-89978f10afbad3f856e2959a811bed1982715408.tar.bz2 rails-89978f10afbad3f856e2959a811bed1982715408.zip |
moves Object#singleton_class to Kernel#singleton_class to match Ruby also there, same for #class_eval to simplify, and adds coverage for class_eval
Diffstat (limited to 'activesupport/test/core_ext/object_and_class_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/object_and_class_ext_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activesupport/test/core_ext/object_and_class_ext_test.rb b/activesupport/test/core_ext/object_and_class_ext_test.rb index 437bb78a4e..5e03389dc2 100644 --- a/activesupport/test/core_ext/object_and_class_ext_test.rb +++ b/activesupport/test/core_ext/object_and_class_ext_test.rb @@ -118,11 +118,6 @@ class ObjectTests < ActiveSupport::TestCase assert duck.acts_like?(:time) assert !duck.acts_like?(:date) end - - def test_singleton_class - o = Object.new - assert_equal class << o; self end, o.singleton_class - end end class ObjectInstanceVariableTest < Test::Unit::TestCase |