Methods
S
T
Instance Public methods
setup()
# File actionpack/test/dispatch/response_test.rb, line 4
def setup
  @response = ActionDispatch::Response.new
end
test_response_body_encoding()
# File actionpack/test/dispatch/response_test.rb, line 8
def test_response_body_encoding
  # FIXME: remove this conditional on Rails 4.0
  return unless "<3".encoding_aware?

  body = ["hello".encode('utf-8')]
  response = ActionDispatch::Response.new 200, {}, body
  assert_equal Encoding::UTF_8, response.body.encoding
end