Skip to content
Permalink
Browse files
Fixing cassettes between 1.8 and 1.9.
Uuuuuugh. It's Syck/Psych all over again.
  • Loading branch information
steveklabnik committed Feb 15, 2012
1 parent e3f2ae6 commit 1293e5a422ff1d86e65968b85920f415e60ff60f
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 5 deletions.
@@ -17,11 +17,11 @@
content-language:
- en-US
cache-control:
- private, max-age=600
- private, max-age=574
expires:
- Tue, 14 Feb 2012 20:01:14 GMT
- Wed, 15 Feb 2012 21:37:02 GMT
date:
- Tue, 14 Feb 2012 19:51:14 GMT
- Wed, 15 Feb 2012 21:27:28 GMT
content-length:
- '796'
connection:
@@ -32,5 +32,5 @@
\ \t\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n{\"searchTerms\":\"+cityid:1007 AND +statecode:NC
AND +historical:fall +_val_:"add(product(10.0,staticNewbie),add(product(100.0,recal(add(ms(NOW,explorationth),3.16911),3.16e-11,1,1)),add(product(10000.0,add(product(1.25,sun(5.0,
static)),product(0.75,stationor))),add(product(100000.0,stationeri),add(product(1000000.0,sun(10.0,staticNeedBinary)),0)))))"
> Many Farms, Arizona\",\"searchURL\":\"http://www.donorschoose.org/donors/search.html?community=1007%3a3&state=NC&utm_source=api&utm_medium=feed&utm_content=searchlink&utm_campaign=DONORSCHOOSE\",\"totalProposals\":\"0\",\"index\":\"0\",\"max\":\"10\",\"proposals\":[]}\r\n"
> Many Farms, Arizona\",\"searchURL\":\"http://www.donorschoose.org/donors/search.html?state=NC&community=1007%3a3&utm_source=api&utm_medium=feed&utm_content=searchlink&utm_campaign=DONORSCHOOSE\",\"totalProposals\":\"0\",\"index\":\"0\",\"max\":\"10\",\"proposals\":[]}\r\n"
http_version: '1.1'
@@ -0,0 +1,109 @@
---
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
uri: http://api.donorschoose.org:80/common/json_feed.html?APIKey=DONORSCHOOSE&community=1007:3&state=NC
body:
headers:
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 200
message: OK
headers:
server:
- nginx
content-type:
- text/plain;charset=UTF-8
content-language:
- en-US
cache-control:
- private, max-age=585
expires:
- Wed, 15 Feb 2012 21:37:07 GMT
date:
- Wed, 15 Feb 2012 21:27:22 GMT
content-length:
- "796"
connection:
- keep-alive
x-n:
- S
body: |
{"searchTerms":"+cityid:1007 AND +statecode:NC AND +historical:fall +_val_:"add(product(10.0,staticNewbie),add(product(100.0,recal(add(ms(NOW,explorationth),3.16911),3.16e-11,1,1)),add(product(10000.0,add(product(1.25,sun(5.0, static)),product(0.75,stationor))),add(product(100000.0,stationeri),add(product(1000000.0,sun(10.0,staticNeedBinary)),0)))))" > Many Farms, Arizona","searchURL":"http://www.donorschoose.org/donors/search.html?state=NC&community=1007%3a3&utm_source=api&utm_medium=feed&utm_content=searchlink&utm_campaign=DONORSCHOOSE","totalProposals":"0","index":"0","max":"10","proposals":[]}
http_version: "1.1"
@@ -3,9 +3,10 @@

require 'vcr'
require 'webmock'
YAML_SERIALIZATION_VERSION = RUBY_VERSION =~ /1\.9/ ? '1.9' : 'not_1.9'
VCR.config do |c|
c.cassette_library_dir = File.join(File.dirname(__FILE__), '..', 'cassettes', YAML_SERIALIZATION_VERSION)
c.stub_with :webmock
c.cassette_library_dir = 'cassettes'
end

RSpec.configure do |config|

0 comments on commit 1293e5a

Please sign in to comment.