aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/class
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-11-19 18:29:33 +0100
committerJosé Valim <jose.valim@gmail.com>2010-11-20 19:40:29 +0100
commitd7db6a88734c3b666f4b85f266d223eff408b294 (patch)
treeccfa0ed1a0e92b9c3324bf92f92391f2d20be95c /activesupport/test/core_ext/class
parent8d8062190ddd0452088f6ea917267ed993a70990 (diff)
downloadrails-d7db6a88734c3b666f4b85f266d223eff408b294.tar.gz
rails-d7db6a88734c3b666f4b85f266d223eff408b294.tar.bz2
rails-d7db6a88734c3b666f4b85f266d223eff408b294.zip
class inheritable attributes is used no more! all internal use of class inheritable has been changed to class_attribute. class inheritable attributes has been deprecated.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/test/core_ext/class')
-rw-r--r--activesupport/test/core_ext/class/class_inheritable_attributes_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/class/class_inheritable_attributes_test.rb b/activesupport/test/core_ext/class/class_inheritable_attributes_test.rb
index b284e5ee1c..020dfce56a 100644
--- a/activesupport/test/core_ext/class/class_inheritable_attributes_test.rb
+++ b/activesupport/test/core_ext/class/class_inheritable_attributes_test.rb
@@ -3,9 +3,14 @@ require 'active_support/core_ext/class/inheritable_attributes'
class ClassInheritableAttributesTest < Test::Unit::TestCase
def setup
+ ActiveSupport::Deprecation.silenced = true
@klass = Class.new
end
+ def teardown
+ ActiveSupport::Deprecation.silenced = false
+ end
+
def test_reader_declaration
assert_nothing_raised do
@klass.class_inheritable_reader :a