aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-08-01 23:55:47 +0100
committerJon Leighton <j@jonathanleighton.com>2012-08-01 23:55:47 +0100
commitb33e7ba140277ade581ed3506144111d29448c9f (patch)
tree9307561fda41aa6519286ee3a41e32c1b5bc990f /activerecord/test
parent0e1cafcbc4d67854faf35e489571bc30f5e2ac14 (diff)
downloadrails-b33e7ba140277ade581ed3506144111d29448c9f.tar.gz
rails-b33e7ba140277ade581ed3506144111d29448c9f.tar.bz2
rails-b33e7ba140277ade581ed3506144111d29448c9f.zip
s/scoped/scope/
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/associations/has_one_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb
index 3ba2987f14..112735839f 100644
--- a/activerecord/test/cases/associations/has_one_associations_test.rb
+++ b/activerecord/test/cases/associations/has_one_associations_test.rb
@@ -226,7 +226,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase
def test_build_and_create_should_not_happen_within_scope
pirate = pirates(:blackbeard)
- scoped_count = pirate.association(:foo_bulb).scoped.where_values.count
+ scoped_count = pirate.association(:foo_bulb).scope.where_values.count
bulb = pirate.build_foo_bulb
assert_not_equal scoped_count, bulb.scope_after_initialize.where_values.count