diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-26 01:24:10 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-26 01:24:10 +0000 |
commit | ba1db2de63b022b53cc2569fc89a6617824b0415 (patch) | |
tree | 84db0e5ba2876a0443c011fd8a20e5a551d9bdbb /actionpack/test/controller | |
parent | 1d564d97c5216210be03862d90fd7ea222afdc52 (diff) | |
download | rails-ba1db2de63b022b53cc2569fc89a6617824b0415.tar.gz rails-ba1db2de63b022b53cc2569fc89a6617824b0415.tar.bz2 rails-ba1db2de63b022b53cc2569fc89a6617824b0415.zip |
uses_component_template_root looks at caller[0] which turns up the deprecation method rather than the controller. Use caller[1] instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/components_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/controller/components_test.rb b/actionpack/test/controller/components_test.rb index c71de444dc..fbe4637536 100644 --- a/actionpack/test/controller/components_test.rb +++ b/actionpack/test/controller/components_test.rb @@ -134,7 +134,8 @@ module A class NestedController < ActionController::Base # Stub for uses_component_template_root def self.caller - ['./test/fixtures/a/b/c/nested_controller.rb'] + [ '/path/to/active_support/deprecation.rb:93:in `uses_component_template_root', + './test/fixtures/a/b/c/nested_controller.rb' ] end end end |