aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-05-03 00:38:30 +0100
committerJon Leighton <j@jonathanleighton.com>2012-05-04 12:50:07 +0100
commit75a22814ef331ebeb35ee827699fc4177984921f (patch)
tree199230c62ed0ccb81078199d8fa0684792db06bb /activerecord/test/cases
parent0c76a52c472546083a199f685f96170031b36fdd (diff)
downloadrails-75a22814ef331ebeb35ee827699fc4177984921f.tar.gz
rails-75a22814ef331ebeb35ee827699fc4177984921f.tar.bz2
rails-75a22814ef331ebeb35ee827699fc4177984921f.zip
extract code from AR::Base
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/named_scope_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb
index 479b375360..393e578219 100644
--- a/activerecord/test/cases/named_scope_test.rb
+++ b/activerecord/test/cases/named_scope_test.rb
@@ -442,11 +442,11 @@ end
class DynamicScopeMatchTest < ActiveRecord::TestCase
def test_scoped_by_no_match
- assert_nil ActiveRecord::DynamicMatchers::ScopedBy.match("not_scoped_at_all")
+ assert_nil ActiveRecord::DynamicMatchers::ScopedBy.match(nil, "not_scoped_at_all")
end
def test_scoped_by
- match = ActiveRecord::DynamicMatchers::ScopedBy.match("scoped_by_age_and_sex_and_location")
+ match = ActiveRecord::DynamicMatchers::ScopedBy.match(nil, "scoped_by_age_and_sex_and_location")
assert_not_nil match
assert_equal %w(age sex location), match.attribute_names
end