forked from vcr/vcr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got things to work for when a cassette records multiple requests made…
… to the same URL with the same HTTP verb, but different responses. We have to register an array of responses with fakeweb.
- Loading branch information
1 parent
6abe551
commit e0993a2
Showing
11 changed files
with
515 additions
and
147 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
- !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> | ||
This is not the real response from example.com | ||
</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 15:22:32 GMT | ||
server: | ||
- Apache/2.2.3 (CentOS) | ||
content-length: | ||
- "438" | ||
age: | ||
- "2643" | ||
accept-ranges: | ||
- bytes | ||
http_version: "1.1" | ||
message: OK | ||
read: true | ||
socket: | ||
- !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> | ||
This is another fake response from example.com | ||
</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 15:22:32 GMT | ||
server: | ||
- Apache/2.2.3 (CentOS) | ||
content-length: | ||
- "438" | ||
age: | ||
- "2643" | ||
accept-ranges: | ||
- bytes | ||
http_version: "1.1" | ||
message: OK | ||
read: true | ||
socket: |
85 changes: 85 additions & 0 deletions
85
features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
- !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> | ||
This is not the real response from example.com | ||
</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 15:22:32 GMT | ||
server: | ||
- Apache/2.2.3 (CentOS) | ||
content-length: | ||
- "438" | ||
age: | ||
- "2643" | ||
accept-ranges: | ||
- bytes | ||
http_version: "1.1" | ||
message: OK | ||
read: true | ||
socket: | ||
- !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> | ||
This is another fake response from example.com | ||
</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 15:22:32 GMT | ||
server: | ||
- Apache/2.2.3 (CentOS) | ||
content-length: | ||
- "438" | ||
age: | ||
- "2643" | ||
accept-ranges: | ||
- bytes | ||
http_version: "1.1" | ||
message: OK | ||
read: true | ||
socket: |
85 changes: 85 additions & 0 deletions
85
features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
- !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> | ||
This is not the real response from example.com | ||
</p> | ||
</BODY> | ||
</HTML> | ||
body_exist: true | ||
code: "200" | ||
header: | ||
server: | ||
- Apache/2.2.3 (Red Hat) | ||
last-modified: | ||
- Tue, 15 Nov 2005 13:24:10 GMT | ||
etag: | ||
- "\"b300b4-1b6-4059a80bfd280\"" | ||
accept-ranges: | ||
- bytes | ||
content-type: | ||
- text/html; charset=UTF-8 | ||
connection: | ||
- Keep-Alive | ||
date: | ||
- Thu, 28 Jan 2010 07:14:48 GMT | ||
age: | ||
- "1696" | ||
content-length: | ||
- "438" | ||
http_version: "1.1" | ||
message: OK | ||
read: true | ||
socket: | ||
- !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> | ||
This is another fake response from example.com | ||
</p> | ||
</BODY> | ||
</HTML> | ||
body_exist: true | ||
code: "200" | ||
header: | ||
server: | ||
- Apache/2.2.3 (Red Hat) | ||
last-modified: | ||
- Tue, 15 Nov 2005 13:24:10 GMT | ||
etag: | ||
- "\"b300b4-1b6-4059a80bfd280\"" | ||
accept-ranges: | ||
- bytes | ||
content-type: | ||
- text/html; charset=UTF-8 | ||
connection: | ||
- Keep-Alive | ||
date: | ||
- Thu, 28 Jan 2010 07:14:48 GMT | ||
age: | ||
- "1696" | ||
content-length: | ||
- "438" | ||
http_version: "1.1" | ||
message: OK | ||
read: true | ||
socket: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.