aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/render_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index cd7c32e0a2..f7cf77c204 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -79,6 +79,11 @@ class TestController < ActionController::Base
name = params[:local_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 }
+ end
def rescue_action(e) raise end
@@ -216,6 +221,12 @@ class RenderTest < Test::Unit::TestCase
@request.query_parameters[:local_name] = "Local David"
assert_equal "Goodbye, Local David", process_request.body
end
+
+ def test_accessing_local_assigns_in_inline_template_with_string_keys
+ @request.action = "accessing_local_assigns_in_inline_template_with_string_keys"
+ @request.query_parameters[:local_name] = "Local David"
+ assert_equal "Goodbye, Local David", process_request.body
+ end
private
def process_request