aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-02-13 17:17:48 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-19 13:46:09 -0800
commitd0733ba8c0528aa4bc6e890e189afaac62ebe58f (patch)
treeb40eb4ffa2394eba5efad7ac93f0eef5eef1ba8f /actionview/test/template
parent4f77982e213e31d9c6e7195c7db86429b8092744 (diff)
downloadrails-d0733ba8c0528aa4bc6e890e189afaac62ebe58f.tar.gz
rails-d0733ba8c0528aa4bc6e890e189afaac62ebe58f.tar.bz2
rails-d0733ba8c0528aa4bc6e890e189afaac62ebe58f.zip
Move inline rendering content-type test to a controller test
This commit is to remove direct access to the "rendered_format" attribute on the lookup context. "rendered_format" is an implementation detail that we shouldn't test directly.
Diffstat (limited to 'actionview/test/template')
-rw-r--r--actionview/test/template/render_test.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb
index 8d28f71585..ee8a110b44 100644
--- a/actionview/test/template/render_test.rb
+++ b/actionview/test/template/render_test.rb
@@ -69,11 +69,6 @@ module RenderTestCases
assert_match "<error>No Comment</error>", @view.render(template: "comments/empty", formats: [:xml])
end
- def test_rendered_format_without_format
- @view.render(inline: "test")
- assert_equal :html, @view.lookup_context.rendered_format
- end
-
def test_render_partial_implicitly_use_format_of_the_rendered_template
@view.lookup_context.formats = [:json]
assert_equal "Hello world", @view.render(template: "test/one", formats: [:html])