diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-02-06 04:26:40 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-02-06 04:26:40 +0000 |
commit | 692dbbf79387b56e241e1acd05f74f7d71ff79a6 (patch) | |
tree | 7d1c1c9f7a8baa517b525a0d02821fd47ca34daf /actionpack/test/controller/render_test.rb | |
parent | 8bc9018882c55cea06d062a9d2d4a32f92b2dc47 (diff) | |
download | rails-692dbbf79387b56e241e1acd05f74f7d71ff79a6.tar.gz rails-692dbbf79387b56e241e1acd05f74f7d71ff79a6.tar.bz2 rails-692dbbf79387b56e241e1acd05f74f7d71ff79a6.zip |
Introduce a Template class to ActionView. Closes #11024 [lifofifo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 4768dffba2..01a7ad6eec 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -140,14 +140,6 @@ class TestController < ActionController::Base :locals => { :local_name => name } end - def accessing_local_assigns_in_inline_template_with_string_keys - name = params[:local_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 formatted_html_erb end @@ -387,11 +379,6 @@ class RenderTest < Test::Unit::TestCase assert_equal "Goodbye, Local David", @response.body end - def test_accessing_local_assigns_in_inline_template_with_string_keys - get :accessing_local_assigns_in_inline_template_with_string_keys, :local_name => "Local David" - assert_equal "Goodbye, Local David", @response.body - end - def test_render_200_should_set_etag get :render_hello_world_from_variable assert_equal etag_for("hello david"), @response.headers['ETag'] |