aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2012-09-03 20:30:43 +0200
committerYves Senn <yves.senn@gmail.com>2012-09-03 20:30:43 +0200
commit77ca2815f5c5fc20a9ca7fa4cdd16d0c4b908682 (patch)
tree826132ef4d0d098f3813332b58a55d77b0aba3fa /activerecord/test/models
parent30a8f0d5b675d0eddc0af05103f4eb7f95c7caad (diff)
downloadrails-77ca2815f5c5fc20a9ca7fa4cdd16d0c4b908682.tar.gz
rails-77ca2815f5c5fc20a9ca7fa4cdd16d0c4b908682.tar.bz2
rails-77ca2815f5c5fc20a9ca7fa4cdd16d0c4b908682.zip
rewrite inheritance tests with a custom inheritance_column
previously the tests with and without a custom `inheritance_column` used the same models. Since the model then has both fields this can lead to false positives.
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/vegetables.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/models/vegetables.rb b/activerecord/test/models/vegetables.rb
index 59cedfd9f5..1f41cde3a5 100644
--- a/activerecord/test/models/vegetables.rb
+++ b/activerecord/test/models/vegetables.rb
@@ -12,3 +12,13 @@ end
class Cabbage < Vegetable
end
+
+class GreenCabbage < Cabbage
+end
+
+class KingCole < GreenCabbage
+end
+
+class RedCabbage < Cabbage
+ belongs_to :seller, :class_name => 'Company'
+end