diff options
author | Vipul A M <vipulnsward@gmail.com> | 2015-01-14 18:31:30 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2015-01-14 21:36:58 +0530 |
commit | 4ae59ebee8d404def8f9f7c716d1869fb7bb6f01 (patch) | |
tree | 6a1de52aacc51db92782d1dc5e1ad8d83fe8220d /activerecord/test/fixtures | |
parent | 850159bd2c5e1e108d0256dd05424bbbf7926b59 (diff) | |
download | rails-4ae59ebee8d404def8f9f7c716d1869fb7bb6f01.tar.gz rails-4ae59ebee8d404def8f9f7c716d1869fb7bb6f01.tar.bz2 rails-4ae59ebee8d404def8f9f7c716d1869fb7bb6f01.zip |
Fixes #18492
- Add check for not deleting previously created fixtures, to overcome sti fixtures from multiple files
- Added fixtures and fixtures test to verify the same
- Fixed wrong fixtures duplicating data insertion in same table
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/dead_parrots.yml | 5 | ||||
-rw-r--r-- | activerecord/test/fixtures/live_parrots.yml | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/dead_parrots.yml b/activerecord/test/fixtures/dead_parrots.yml new file mode 100644 index 0000000000..da5529dd27 --- /dev/null +++ b/activerecord/test/fixtures/dead_parrots.yml @@ -0,0 +1,5 @@ +deadbird: + name: "Dusty DeadBird" + treasures: [ruby, sapphire] + parrot_sti_class: DeadParrot + killer: blackbeard diff --git a/activerecord/test/fixtures/live_parrots.yml b/activerecord/test/fixtures/live_parrots.yml new file mode 100644 index 0000000000..95b2078da7 --- /dev/null +++ b/activerecord/test/fixtures/live_parrots.yml @@ -0,0 +1,4 @@ +dusty: + name: "Dusty Bluebird" + treasures: [ruby, sapphire] + parrot_sti_class: LiveParrot |