aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-03-28 18:52:56 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2012-03-28 18:53:09 -0300
commitf0268d56afa6be2eb4eb1fb953821d241f5adfc9 (patch)
treedb6adb1cf231fd718474b5963efea83ca504bfd4 /actionpack/test/controller
parentc82fd8fc2ac9f8273825fc272a0bf17e5c583d71 (diff)
downloadrails-f0268d56afa6be2eb4eb1fb953821d241f5adfc9.tar.gz
rails-f0268d56afa6be2eb4eb1fb953821d241f5adfc9.tar.bz2
rails-f0268d56afa6be2eb4eb1fb953821d241f5adfc9.zip
Set proper rendered_format when doing render :inline
Closes #5632
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/render_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index e1f9b7dc9c..fce13d096c 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -1022,6 +1022,7 @@ class RenderTest < ActionController::TestCase
def test_accessing_local_assigns_in_inline_template
get :accessing_local_assigns_in_inline_template, :local_name => "Local David"
assert_equal "Goodbye, Local David", @response.body
+ assert_equal "text/html", @response.content_type
end
def test_should_implicitly_render_html_template_from_xhr_request