aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-23 15:19:33 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-23 15:19:33 +0000
commit97849debf33123387d33ba11fa5cf776873a5e94 (patch)
tree4fe50bf70770464f74e5cf047dfdb146138a4fe4 /activerecord/test
parentd336ca5280523c4f4c9387d8a6778273469f856c (diff)
downloadrails-97849debf33123387d33ba11fa5cf776873a5e94.tar.gz
rails-97849debf33123387d33ba11fa5cf776873a5e94.tar.bz2
rails-97849debf33123387d33ba11fa5cf776873a5e94.zip
Fixed that association proxies would fail === tests like PremiumSubscription === @account.subscription
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/associations_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index 0e992526bc..420fae069b 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -74,6 +74,10 @@ class HasOneAssociationsTest < Test::Unit::TestCase
assert_equal Account.find(1).credit_limit, @signals37.account.credit_limit
end
+ def test_triple_equality
+ assert Account === @signals37.account
+ end
+
def test_type_mismatch
assert_raises(ActiveRecord::AssociationTypeMismatch) { @signals37.account = 1 }
assert_raises(ActiveRecord::AssociationTypeMismatch) { @signals37.account = Project.find(1) }