diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-05-04 14:30:57 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-05-04 14:31:19 +0100 |
commit | 510cf0ad93f07e9285178c8b7ba7d4d68c139fec (patch) | |
tree | 151a0fe3bc9c050c943c17c6bc0f82b717a30dcc /activerecord/test/cases | |
parent | ffad3600ea01cda457b447fafd4d38907f4d0bfb (diff) | |
download | rails-510cf0ad93f07e9285178c8b7ba7d4d68c139fec.tar.gz rails-510cf0ad93f07e9285178c8b7ba7d4d68c139fec.tar.bz2 rails-510cf0ad93f07e9285178c8b7ba7d4d68c139fec.zip |
extract deprecated dynamic methods
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/named_scope_test.rb | 4 |
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 393e578219..2e87c5be2f 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(nil, "not_scoped_at_all") + assert_nil ActiveRecord::DynamicMatchers::Method.match(nil, "not_scoped_at_all") end def test_scoped_by - match = ActiveRecord::DynamicMatchers::ScopedBy.match(nil, "scoped_by_age_and_sex_and_location") + match = ActiveRecord::DynamicMatchers::Method.match(nil, "scoped_by_age_and_sex_and_location") assert_not_nil match assert_equal %w(age sex location), match.attribute_names end |