spec/fixtures/1.8.7/cassette_spec/example.yml in vcr-0.3.1 vs spec/fixtures/1.8.7/cassette_spec/example.yml in vcr-0.4.0
- old
+ new
@@ -1,108 +1,110 @@
----
-- !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>
- <p>You have reached this web page by typing "example.com",
- "example.net",
- or "example.org" into your web browser.</p>
- <p>These domain names are reserved for use in documentation and are not available
- 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:
-- !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:
+---
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: http://example.com:80/
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ 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
+ body: |
+ <HTML>
+ <HEAD>
+ <TITLE>Example Web Page</TITLE>
+ </HEAD>
+ <body>
+ <p>You have reached this web page by typing "example.com",
+ "example.net",
+ or "example.org" into your web browser.</p>
+ <p>These domain names are reserved for use in documentation and are not available
+ for registration. See <a href="http://www.rfc-editor.org/rfc/rfc2606.txt">RFC
+ 2606</a>, Section 3.</p>
+ </BODY>
+ </HTML>
+
+ http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: http://example.com:80/foo
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 404
+ message: Not Found
+ headers:
+ 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"
+ 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>
+
+ http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: http://example.com:80/
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ 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
+ body: Another example.com response
+ http_version: "1.1"