Module: Rack::Test

Defined in:
lib/rack/test.rb,
lib/rack/test/utils.rb,
lib/rack/test/methods.rb,
lib/rack/test/version.rb,
lib/rack/test/cookie_jar.rb,
lib/rack/test/uploaded_file.rb

Defined Under Namespace

Modules: Methods, Utils Classes: Cookie, CookieJar, Error, Session, UploadedFile

Constant Summary collapse

DEFAULT_HOST =

The default host to use for requests, when a full URI is not provided.

'example.org'.freeze
MULTIPART_BOUNDARY =

The default multipart boundary to use for multipart request bodies

'----------XnJLe9ZIbbGUYtzPQJ16u1'.freeze
START_BOUNDARY =

The starting boundary in multipart requests

"--#{MULTIPART_BOUNDARY}\r\n".freeze
END_BOUNDARY =

The ending boundary in multipart requests

"--#{MULTIPART_BOUNDARY}--\r\n".freeze
VERSION =
'2.1.0'.freeze

Class Method Summary collapse

Class Method Details

.encoding_aware_strings?Boolean

Whether the version of rack in use handles encodings.

Returns:

  • (Boolean)


375
376
377
# File 'lib/rack/test.rb', line 375

def self.encoding_aware_strings?
  Rack.release >= '1.6'
end