spec/fixtures/1.8.7/cassette_spec/example.yml in vcr-0.1.1 vs spec/fixtures/1.8.7/cassette_spec/example.yml in vcr-0.1.2

- old
+ new

@@ -1,11 +1,11 @@ ---- -- !ruby/struct:VCR::RecordedResponse - method: :get - uri: http://example.com:80/ - response: !ruby/object:Net::HTTPOK - body: | +--- +- !ruby/struct:VCR::RecordedResponse + method: :get + uri: http://example.com:80/ + response: !ruby/object:Net::HTTPOK + body: | <HTML> <HEAD> <TITLE>Example Web Page</TITLE> </HEAD> <body> @@ -16,63 +16,93 @@ for registration. See <a href="http://www.rfc-editor.org/rfc/rfc2606.txt">RFC 2606</a>, Section 3.</p> </BODY> </HTML> - - body_exist: true - code: "200" - header: - etag: - - "\"24ec5-1b6-4059a80bfd280\"" - last-modified: - - Tue, 15 Nov 2005 13:24:10 GMT - connection: - - Keep-Alive - content-type: - - text/html; charset=UTF-8 - date: - - Thu, 25 Feb 2010 07:53:51 GMT - server: - - Apache/2.2.3 (CentOS) - content-length: - - "438" - age: - - "9260" - accept-ranges: - - bytes - http_version: "1.1" - message: OK - read: true - socket: -- !ruby/struct:VCR::RecordedResponse - method: :get - uri: http://example.com:80/foo - response: !ruby/object:Net::HTTPNotFound - body: | - <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> - <html><head> - <title>404 Not Found</title> - </head><body> - <h1>Not Found</h1> - <p>The requested URL /foo was not found on this server.</p> - <hr> - <address>Apache/2.2.3 (CentOS) Server at example.com Port 80</address> - </body></html> - - body_exist: true - code: "404" - header: - content-type: - - text/html; charset=iso-8859-1 - connection: - - close - server: - - Apache/2.2.3 (CentOS) - date: - - Thu, 25 Feb 2010 07:53:52 GMT - content-length: - - "277" - http_version: "1.1" - message: Not Found - read: true - socket: + + body_exist: true + code: "200" + header: + etag: + - "\"24ec5-1b6-4059a80bfd280\"" + last-modified: + - Tue, 15 Nov 2005 13:24:10 GMT + connection: + - Keep-Alive + content-type: + - text/html; charset=UTF-8 + date: + - Thu, 25 Feb 2010 07:53:51 GMT + server: + - Apache/2.2.3 (CentOS) + content-length: + - "438" + age: + - "9260" + accept-ranges: + - bytes + http_version: "1.1" + message: OK + read: true + socket: +- !ruby/struct:VCR::RecordedResponse + method: :get + uri: http://example.com:80/foo + response: !ruby/object:Net::HTTPNotFound + body: | + <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> + <html><head> + <title>404 Not Found</title> + </head><body> + <h1>Not Found</h1> + <p>The requested URL /foo was not found on this server.</p> + <hr> + <address>Apache/2.2.3 (CentOS) Server at example.com Port 80</address> + </body></html> + + body_exist: true + code: "404" + header: + content-type: + - text/html; charset=iso-8859-1 + connection: + - close + server: + - Apache/2.2.3 (CentOS) + date: + - Thu, 25 Feb 2010 07:53:52 GMT + content-length: + - "277" + http_version: "1.1" + message: Not Found + read: true + socket: +- !ruby/struct:VCR::RecordedResponse + method: :get + uri: http://example.com:80/ + response: !ruby/object:Net::HTTPOK + body: Another example.com response + body_exist: true + code: "200" + header: + etag: + - "\"24ec5-1b6-4059a80bfd280\"" + last-modified: + - Tue, 15 Nov 2005 13:24:10 GMT + connection: + - Keep-Alive + content-type: + - text/html; charset=UTF-8 + date: + - Thu, 25 Feb 2010 07:53:51 GMT + server: + - Apache/2.2.3 (CentOS) + content-length: + - "438" + age: + - "9260" + accept-ranges: + - bytes + http_version: "1.1" + message: OK + read: true + socket: