aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/inner_join_association_test.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-05-27 16:52:42 +0200
committerYves Senn <yves.senn@gmail.com>2013-05-27 21:07:39 +0200
commitaff928bacfb26f164c3f0ccbee7bcfa8228941cb (patch)
treea990247d441525ba02ab335f33ec91b87ed80507 /activerecord/test/cases/associations/inner_join_association_test.rb
parent95ce5062ca973d1cd66c94512fac968da74b0f3a (diff)
downloadrails-aff928bacfb26f164c3f0ccbee7bcfa8228941cb.tar.gz
rails-aff928bacfb26f164c3f0ccbee7bcfa8228941cb.tar.bz2
rails-aff928bacfb26f164c3f0ccbee7bcfa8228941cb.zip
`implicit_readonly` is being removed in favor of calling `readonly` explicitly
Diffstat (limited to 'activerecord/test/cases/associations/inner_join_association_test.rb')
-rw-r--r--activerecord/test/cases/associations/inner_join_association_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/associations/inner_join_association_test.rb b/activerecord/test/cases/associations/inner_join_association_test.rb
index 918783e8f1..9baf94399a 100644
--- a/activerecord/test/cases/associations/inner_join_association_test.rb
+++ b/activerecord/test/cases/associations/inner_join_association_test.rb
@@ -46,10 +46,10 @@ class InnerJoinAssociationTest < ActiveRecord::TestCase
assert_equal 2, authors.count
end
- def test_find_with_implicit_inner_joins_honors_readonly_without_select
- authors = Author.joins(:posts).to_a
- assert !authors.empty?, "expected authors to be non-empty"
- assert authors.all? {|a| a.readonly? }, "expected all authors to be readonly"
+ def test_find_with_implicit_inner_joins_without_select_does_not_imply_readonly
+ authors = Author.joins(:posts)
+ assert_not authors.empty?, "expected authors to be non-empty"
+ assert authors.none? {|a| a.readonly? }, "expected no authors to be readonly"
end
def test_find_with_implicit_inner_joins_honors_readonly_with_select