aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/vegetables.yml
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/fixtures/vegetables.yml
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/fixtures/vegetables.yml')
-rw-r--r--activerecord/test/fixtures/vegetables.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/vegetables.yml b/activerecord/test/fixtures/vegetables.yml
index 82bd607701..b9afbfbb05 100644
--- a/activerecord/test/fixtures/vegetables.yml
+++ b/activerecord/test/fixtures/vegetables.yml
@@ -6,4 +6,15 @@ first_cucumber:
first_cabbage:
id: 2
custom_type: Cabbage
- name: 'my cabbage' \ No newline at end of file
+ name: 'my cabbage'
+
+second_cabbage:
+ id: 3
+ custom_type: Cabbage
+ name: 'his cabbage'
+
+red_cabbage:
+ id: 4
+ custom_type: RedCabbage
+ name: 'red cabbage'
+ seller_id: 3 \ No newline at end of file