1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
rest-client--rest-client/spec/unit
Andy Brody de03c9d4d1 Use URI.get_encoding to look up encodings.
Use the (undocumented) URI.get_encoding method introduced in Ruby 2.1 to
look up encodings by the aliases specified in HTML5. This means that the
behavior will differ slightly between versions of Ruby, but the
encodings selected are largely compatible.

For example, `ISO-8859-1` is an alias for `Windows-1252` per the HTML5
specification, while in ruby versions < 2.1 it will be used as is. These
two encodings are largely compatible, and the alias exists due to
servers that return a `charset=ISO-8859-1` when they actually are using
`Windows-1252`.

Other aliases that differ include `shift_jis` (rendered as
`Windows-31J`) and `euc-jp` (rendered as `CP51932`).
2015-11-16 15:23:08 -08:00
..
windows Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
_lib.rb Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
abstract_response_spec.rb Add tests for new header multi value handling. 2015-03-23 21:55:40 -07:00
exceptions_spec.rb Add compatibility tests. 2015-11-11 17:20:48 -08:00
master_shake.jpg Reorganize specs 2013-08-30 18:45:06 -07:00
payload_spec.rb Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
raw_response_spec.rb Merge pull request #365 from rest-client/ab-cookies 2015-03-22 17:54:14 -07:00
request2_spec.rb Append GET params with & when adding more. 2015-11-08 00:56:58 -08:00
request_spec.rb Append GET params with & when adding more. 2015-11-08 00:56:58 -08:00
resource_spec.rb Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
response_spec.rb Store redirection history on reqs/responses. 2015-04-15 15:14:29 -07:00
restclient_spec.rb Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
utils_spec.rb Use URI.get_encoding to look up encodings. 2015-11-16 15:23:08 -08:00