diff options
author | Pavel Gorbokon <pahanix@gmail.com> | 2010-11-24 10:17:49 +0200 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-15 14:02:30 -0800 |
commit | 96bae30538951367a82235785e7dba3577b50a5a (patch) | |
tree | f32ea8949e2faf5f63ecded1b827a4a7cd1e1606 /activerecord/test/cases/relation_scoping_test.rb | |
parent | aa40543022303d8a1b695e73ed71406c0da15bde (diff) | |
download | rails-96bae30538951367a82235785e7dba3577b50a5a.tar.gz rails-96bae30538951367a82235785e7dba3577b50a5a.tar.bz2 rails-96bae30538951367a82235785e7dba3577b50a5a.zip |
Replace rudimentary named_scope with scope. [#6052 state:resolved]
* rename method names (actually in tests)
* rename instance variable @_named_scopes_cache to @_scopes_cache
* rename references in doc comments
* don't touch CHANGELOG :)
Diffstat (limited to 'activerecord/test/cases/relation_scoping_test.rb')
-rw-r--r-- | activerecord/test/cases/relation_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation_scoping_test.rb b/activerecord/test/cases/relation_scoping_test.rb index 1678e631e5..f113a9c516 100644 --- a/activerecord/test/cases/relation_scoping_test.rb +++ b/activerecord/test/cases/relation_scoping_test.rb @@ -422,7 +422,7 @@ class DefaultScopingTest < ActiveRecord::TestCase assert_equal expected, received end - def test_named_scope_overwrites_default + def test_scope_overwrites_default expected = Developer.find(:all, :order => 'salary DESC, name DESC').collect { |dev| dev.name } received = DeveloperOrderedBySalary.by_name.find(:all).collect { |dev| dev.name } assert_equal expected, received |