spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-0.0.1 vs spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-1.0.0

- old
+ new

@@ -34,11 +34,11 @@ - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"Texto de muestra"}]}' - http_version: + http_version: recorded_at: Sun, 10 Dec 2017 20:34:26 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN body: @@ -71,11 +71,11 @@ Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}' - http_version: + http_version: recorded_at: Sun, 10 Dec 2017 20:34:26 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=invalid body: @@ -104,11 +104,11 @@ Connection: - keep-alive body: encoding: UTF-8 string: '' - http_version: + http_version: recorded_at: Sun, 10 Dec 2017 20:34:27 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN body: @@ -137,11 +137,11 @@ Connection: - keep-alive body: encoding: UTF-8 string: '{"message":"Parameter ''text'' not specified."}' - http_version: + http_version: recorded_at: Sun, 10 Dec 2017 20:34:27 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN body: @@ -170,8 +170,46 @@ Connection: - keep-alive body: encoding: UTF-8 string: '{"message":"Parameter ''target_lang'' not specified."}' - http_version: + http_version: recorded_at: Sun, 10 Dec 2017 20:34:28 GMT +- request: + method: post + uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN + body: + encoding: US-ASCII + string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Content-Type: + - application/x-www-form-urlencoded + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Thu, 04 Jan 2018 18:09:50 GMT + Content-Type: + - application/json + Content-Length: + - '85' + Connection: + - keep-alive + Access-Control-Allow-Origin: + - "*" + body: + encoding: UTF-8 + string: '{"translations":[{"detected_source_language":"EN","text":"<p>Texto + de muestra</p>"}]}' + http_version: + recorded_at: Thu, 04 Jan 2018 18:09:49 GMT recorded_with: VCR 4.0.0