Permalink
Browse files

Apparently different versions of ruby dump yaml differently (I didn't…

… know that before). The yaml files I dumped while running ruby 1.9.1 don't work when running the specs under 1.8.6.

To fix this, I've split up the yaml fixtures into separate directories for each ruby version.
  • Loading branch information...
1 parent 6d9cf3b commit e3b1365c73d416f93c271e8dae29172630d728c9 @myronmarston committed Feb 25, 2010
View
@@ -19,4 +19,4 @@ rdoc
pkg
## PROJECT::SPECIFIC
-features/fixtures/vcr_sandboxes/temp/
+features/fixtures/vcr_sandboxes/**/temp/
@@ -0,0 +1,43 @@
+---
+- !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:
@@ -0,0 +1,45 @@
+---
+- !ruby/struct:VCR::RecordedResponse
+ method: :get
+ uri: http://example.com:80/before_nested
+ response: !ruby/object:Net::HTTPNotFound
+ body: The before_nested response
+ 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 15:23:39 GMT
+ content-length:
+ - "287"
+ http_version: "1.1"
+ message: Not Found
+ read: true
+ socket:
+- !ruby/struct:VCR::RecordedResponse
+ method: :get
+ uri: http://example.com:80/after_nested
+ response: !ruby/object:Net::HTTPNotFound
+ body: The after_nested response
+ 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 15:23:39 GMT
+ content-length:
+ - "286"
+ http_version: "1.1"
+ message: Not Found
+ read: true
+ socket:
@@ -0,0 +1,23 @@
+---
+- !ruby/struct:VCR::RecordedResponse
+ method: :get
+ uri: http://example.com:80/nested
+ response: !ruby/object:Net::HTTPNotFound
+ body: The nested response
+ 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 15:19:40 GMT
+ content-length:
+ - "280"
+ http_version: "1.1"
+ message: Not Found
+ read: true
+ socket:
@@ -0,0 +1,43 @@
+---
+- !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:20:47 GMT
+ server:
+ - Apache/2.2.3 (CentOS)
+ content-length:
+ - "438"
+ age:
+ - "2546"
+ accept-ranges:
+ - bytes
+ http_version: "1.1"
+ message: OK
+ read: true
+ socket:
@@ -0,0 +1,43 @@
+---
+- !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:
@@ -0,0 +1,45 @@
+---
+- !ruby/struct:VCR::RecordedResponse
+ method: :get
+ uri: http://example.com:80/before_nested
+ response: !ruby/object:Net::HTTPNotFound
+ body: The before_nested response
+ 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 15:23:39 GMT
+ content-length:
+ - "287"
+ http_version: "1.1"
+ message: Not Found
+ read: true
+ socket:
+- !ruby/struct:VCR::RecordedResponse
+ method: :get
+ uri: http://example.com:80/after_nested
+ response: !ruby/object:Net::HTTPNotFound
+ body: The after_nested response
+ 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 15:23:39 GMT
+ content-length:
+ - "286"
+ http_version: "1.1"
+ message: Not Found
+ read: true
+ socket:
@@ -0,0 +1,23 @@
+---
+- !ruby/struct:VCR::RecordedResponse
+ method: :get
+ uri: http://example.com:80/nested
+ response: !ruby/object:Net::HTTPNotFound
+ body: The nested response
+ 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 15:19:40 GMT
+ content-length:
+ - "280"
+ http_version: "1.1"
+ message: Not Found
+ read: true
+ socket:
@@ -0,0 +1,43 @@
+---
+- !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:20:47 GMT
+ server:
+ - Apache/2.2.3 (CentOS)
+ content-length:
+ - "438"
+ age:
+ - "2546"
+ accept-ranges:
+ - bytes
+ http_version: "1.1"
+ message: OK
+ read: true
+ socket:
@@ -12,7 +12,7 @@
require 'spec/expectations'
VCR.config do |c|
- c.cache_dir = File.join(File.dirname(__FILE__), '..', 'fixtures', 'vcr_sandboxes')
+ c.cache_dir = File.join(File.dirname(__FILE__), '..', 'fixtures', 'vcr_sandboxes', RUBY_VERSION)
end
VCR.module_eval do
Oops, something went wrong.

0 comments on commit e3b1365

Please sign in to comment.