aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeffrey Hardy <packagethief@gmail.com>2009-09-02 11:20:17 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-02 11:21:20 -0500
commit41b3c912b769596f70d078e3b70b23fd8e98bd47 (patch)
treefda997f5a19b98b1709356083e81e960db25bbf0 /activerecord/test
parent847907d7531331e4b8bc1b8bd80352f87b45ad3a (diff)
downloadrails-41b3c912b769596f70d078e3b70b23fd8e98bd47.tar.gz
rails-41b3c912b769596f70d078e3b70b23fd8e98bd47.tar.bz2
rails-41b3c912b769596f70d078e3b70b23fd8e98bd47.zip
Remove ClassInheritableAttributes test case, already covered by ActiveSupport [#3114 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/class_inheritable_attributes_test.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/activerecord/test/cases/class_inheritable_attributes_test.rb b/activerecord/test/cases/class_inheritable_attributes_test.rb
deleted file mode 100644
index abeb63c591..0000000000
--- a/activerecord/test/cases/class_inheritable_attributes_test.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-require 'test/unit'
-require "cases/helper"
-require 'active_support/core_ext/class/inheritable_attributes'
-
-class A
- include ClassInheritableAttributes
-end
-
-class B < A
- write_inheritable_array "first", [ :one, :two ]
-end
-
-class C < A
- write_inheritable_array "first", [ :three ]
-end
-
-class D < B
- write_inheritable_array "first", [ :four ]
-end
-
-
-class ClassInheritableAttributesTest < ActiveRecord::TestCase
- def test_first_level
- assert_equal [ :one, :two ], B.read_inheritable_attribute("first")
- assert_equal [ :three ], C.read_inheritable_attribute("first")
- end
-
- def test_second_level
- assert_equal [ :one, :two, :four ], D.read_inheritable_attribute("first")
- assert_equal [ :one, :two ], B.read_inheritable_attribute("first")
- end
-end