aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
diff options
context:
space:
mode:
authorRyan Bates <ryan@railscasts.com>2008-05-20 12:11:25 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-05-20 12:27:14 +0100
commit73c59638549686fccc749ffd3ac53cb533c5fd61 (patch)
tree44aebe6752869fdb13240d0bf8422388cca81767 /activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
parentebb642fa3a2b1a4e31abf9610ca634e6bb5d57d3 (diff)
downloadrails-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/has_and_belongs_to_many_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
index 64565141f9..294b993c55 100644
--- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -401,6 +401,8 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
def test_include_uses_array_include_after_loaded
project = projects(:active_record)
+ project.developers.class # force load target
+
developer = project.developers.first
assert_no_queries do