diff options
author | Ryan Bates <ryan@railscasts.com> | 2008-05-20 12:11:25 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-05-20 12:27:14 +0100 |
commit | 73c59638549686fccc749ffd3ac53cb533c5fd61 (patch) | |
tree | 44aebe6752869fdb13240d0bf8422388cca81767 /activerecord/test/cases/associations_test.rb | |
parent | ebb642fa3a2b1a4e31abf9610ca634e6bb5d57d3 (diff) | |
download | rails-73c59638549686fccc749ffd3ac53cb533c5fd61.tar.gz rails-73c59638549686fccc749ffd3ac53cb533c5fd61.tar.bz2 rails-73c59638549686fccc749ffd3ac53cb533c5fd61.zip |
Add first/last methods to associations/named_scope. [#226 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/cases/associations_test.rb')
-rwxr-xr-x | activerecord/test/cases/associations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb index d8fe98bf57..3ad8c608e0 100755 --- a/activerecord/test/cases/associations_test.rb +++ b/activerecord/test/cases/associations_test.rb @@ -99,12 +99,12 @@ class AssociationProxyTest < ActiveRecord::TestCase david = authors(:david) assert_equal david, david.posts.proxy_owner assert_equal david.class.reflect_on_association(:posts), david.posts.proxy_reflection - david.posts.first # force load target + david.posts.class # force load target assert_equal david.posts, david.posts.proxy_target assert_equal david, david.posts_with_extension.testing_proxy_owner assert_equal david.class.reflect_on_association(:posts_with_extension), david.posts_with_extension.testing_proxy_reflection - david.posts_with_extension.first # force load target + david.posts_with_extension.class # force load target assert_equal david.posts_with_extension, david.posts_with_extension.testing_proxy_target end |