diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2005-10-17 15:51:07 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2005-10-17 15:51:07 +0000 |
commit | cb8bb70aa7fa100ea04b8de39fa5fcb99271758d (patch) | |
tree | c4acea3d5defbad90f8bb0840694d9faf6167612 /actionpack/test/controller | |
parent | 2c64b9d1270b0ef468f13152c9acd68e0bb49fd6 (diff) | |
download | rails-cb8bb70aa7fa100ea04b8de39fa5fcb99271758d.tar.gz rails-cb8bb70aa7fa100ea04b8de39fa5fcb99271758d.tar.bz2 rails-cb8bb70aa7fa100ea04b8de39fa5fcb99271758d.zip |
Make string-keys locals assigns optional
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index f7cf77c204..9894a70755 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -77,12 +77,16 @@ class TestController < ActionController::Base def accessing_local_assigns_in_inline_template name = params[:local_name] - render :inline => "<%= 'Goodbye, ' + local_name %>", :locals => { :local_name => name } + render :inline => "<%= 'Goodbye, ' + local_name %>", + :locals => { :local_name => name } end def accessing_local_assigns_in_inline_template_with_string_keys name = params[:local_name] - render :inline => "<%= 'Goodbye, ' + local_name %>", :locals => { "local_name" => name } + ActionView::Base.local_assigns_support_string_keys = true + render :inline => "<%= 'Goodbye, ' + local_name %>", + :locals => { "local_name" => name } + ActionView::Base.local_assigns_support_string_keys = false end def rescue_action(e) raise end |