diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-11 12:01:08 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-11 12:20:54 -0700 |
commit | ddbeb15a5e7e0c3c5f316ccf65b557bc5311a6c4 (patch) | |
tree | 96af79cc6a1fbf6be739102bd2afeec1f2df7ef6 /activerecord/test/cases/associations | |
parent | e1854e0b199fba352ddcaa58a3af168e8cc70e3a (diff) | |
download | rails-ddbeb15a5e7e0c3c5f316ccf65b557bc5311a6c4.tar.gz rails-ddbeb15a5e7e0c3c5f316ccf65b557bc5311a6c4.tar.bz2 rails-ddbeb15a5e7e0c3c5f316ccf65b557bc5311a6c4.zip |
Revert "Fixed bug with polymorphic has_one :as pointing to an STI record"
[#2594 state:open]
This reverts commit 99c103be1165da9c8299bc0977188ecf167e06a5.
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_one_associations_test.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb index 3984945f9f..1ddb3f49bf 100644 --- a/activerecord/test/cases/associations/has_one_associations_test.rb +++ b/activerecord/test/cases/associations/has_one_associations_test.rb @@ -2,11 +2,9 @@ require "cases/helper" require 'models/developer' require 'models/project' require 'models/company' -require 'models/sponsor' -require 'models/organization' class HasOneAssociationsTest < ActiveRecord::TestCase - fixtures :accounts, :companies, :developers, :projects, :developers_projects, :organizations, :sponsors + fixtures :accounts, :companies, :developers, :projects, :developers_projects def setup Account.destroyed_account_ids.clear @@ -308,9 +306,4 @@ class HasOneAssociationsTest < ActiveRecord::TestCase Firm.find(@firm.id, :include => :account).save! end end - - def test_polymorphic_sti - assert_equal organizations(:sponsorable), sponsors(:org_sponsor).sponsorable - assert_equal sponsors(:org_sponsor), organizations(:sponsorable).sponsor - end end |