aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/activerecord
diff options
context:
space:
mode:
authorPavel Gorbokon <pahanix@gmail.com>2010-11-24 10:17:49 +0200
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-15 14:02:30 -0800
commit96bae30538951367a82235785e7dba3577b50a5a (patch)
treef32ea8949e2faf5f63ecded1b827a4a7cd1e1606 /actionpack/test/activerecord
parentaa40543022303d8a1b695e73ed71406c0da15bde (diff)
downloadrails-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 'actionpack/test/activerecord')
-rw-r--r--actionpack/test/activerecord/render_partial_with_record_identification_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
index 43c534c111..99f09286ff 100644
--- a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
+++ b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
@@ -11,7 +11,7 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base
render :partial => @topic.replies
end
- def render_with_named_scope
+ def render_with_scope
render :partial => Reply.base
end
@@ -62,8 +62,8 @@ class RenderPartialWithRecordIdentificationTest < ActiveRecordTestCase
assert_equal 'Birdman is better!', @response.body
end
- def test_rendering_partial_with_named_scope
- get :render_with_named_scope
+ def test_rendering_partial_with_scope
+ get :render_with_scope
assert_template 'replies/_reply'
assert_equal 'Birdman is better!Nuh uh!', @response.body
end