aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-12-28 14:20:54 +0530
committerPratik Naik <pratiknaik@gmail.com>2009-12-28 14:20:54 +0530
commit92c982d973c3e3125982309ff8bb6c22608696c5 (patch)
treeb26e384888d4284550f26420f22640fb616639f1 /activerecord/test/cases/associations
parent9f4e98330b3a7f85a4bca91fca062106ffbee2bf (diff)
downloadrails-92c982d973c3e3125982309ff8bb6c22608696c5.tar.gz
rails-92c982d973c3e3125982309ff8bb6c22608696c5.tar.bz2
rails-92c982d973c3e3125982309ff8bb6c22608696c5.zip
Relation#readonly(false) should toggle the readonly flag
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/inner_join_association_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/inner_join_association_test.rb b/activerecord/test/cases/associations/inner_join_association_test.rb
index 6220fab383..18a1cd3cd0 100644
--- a/activerecord/test/cases/associations/inner_join_association_test.rb
+++ b/activerecord/test/cases/associations/inner_join_association_test.rb
@@ -64,7 +64,7 @@ class InnerJoinAssociationTest < ActiveRecord::TestCase
end
def test_find_with_implicit_inner_joins_honors_readonly_false
- authors = Author.find(:all, :joins => :posts, :readonly => false)
+ authors = Author.joins(:posts).readonly(false).to_a
assert !authors.empty?, "expected authors to be non-empty"
assert authors.all? {|a| !a.readonly? }, "expected no authors to be readonly"
end