Namespace
Methods
T
Instance Public methods
test_using_custom_render_option()
# File actionpack/test/controller/render_other_test.rb, line 13
def test_using_custom_render_option
  ActionController.add_renderer :simon do |says, options|
    self.content_type  = Mime::TEXT
    self.response_body = "Simon says: #{says}"
  end

  get :render_simon_says
  assert_equal "Simon says: foo", @response.body
ensure
  ActionController.remove_renderer :simon
end