From 77ca2815f5c5fc20a9ca7fa4cdd16d0c4b908682 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 3 Sep 2012 20:30:43 +0200 Subject: 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. --- activerecord/test/models/vegetables.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'activerecord/test/models') 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 -- cgit v1.2.3