Skip to content

Commit

Permalink
Rename the test description from content_type to media_type. Follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaynikam committed Jun 2, 2019
1 parent 2a015f6 commit 02f14cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actionpack/test/controller/render_xml_test.rb
Expand Up @@ -35,7 +35,7 @@ def render_with_to_xml
def formatted_xml_erb
end

def render_xml_with_custom_content_type
def render_xml_with_custom_media_type
render xml: "<blah/>", content_type: "application/atomsvc+xml"
end

Expand Down Expand Up @@ -90,12 +90,12 @@ def test_should_render_formatted_xml_erb_template
assert_equal "<test>passed formatted xml erb</test>", @response.body
end

def test_should_render_xml_but_keep_custom_content_type
get :render_xml_with_custom_content_type
def test_should_render_xml_but_keep_custom_media_type
get :render_xml_with_custom_media_type
assert_equal "application/atomsvc+xml", @response.media_type
end

def test_should_use_implicit_content_type
def test_should_use_implicit_media_type
get :implicit_content_type, format: "atom"
assert_equal Mime[:atom], @response.media_type
end
Expand Down

0 comments on commit 02f14cb

Please sign in to comment.