Skip to content
Browse files

Adding fixtures for liking/unliking

  • Loading branch information...
1 parent d1c5a0f commit 0c2c2b822125ec866e4c8f2acef1399931582d34 @mwunsch mwunsch committed Mar 13, 2010
View
31 test/fixtures/vcr_cassettes/read/like.yml
@@ -0,0 +1,31 @@
+---
+- !ruby/struct:VCR::RecordedResponse
+ method: :post
+ uri: http://www.tumblr.com:80/api/like
+ response: !ruby/object:Net::HTTPOK
+ body: Liked post 445597771.
+ body_exist: true
+ code: "200"
+ header:
+ p3p:
+ - CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"
+ content-type:
+ - text/plain; charset=utf-8
+ connection:
+ - close
+ x-tumblr-usec:
+ - D=91330
+ server:
+ - Apache/2.2.3 (Red Hat)
+ date:
+ - Sat, 13 Mar 2010 16:30:58 GMT
+ content-length:
+ - "21"
+ x-tumblr-perf:
+ - "\"ch:0/ cm:0/ ce:0/ c:0/0 d:0/0 e:0/0\""
+ vary:
+ - Accept-Encoding
+ http_version: "1.1"
+ message: OK
+ read: true
+ socket:
View
42 test/fixtures/vcr_cassettes/read/tumblrgemtest.yml
@@ -0,0 +1,42 @@
+---
+- !ruby/struct:VCR::RecordedResponse
+ method: :get
+ uri: http://tumblrgemtest.tumblr.com:80/api/read/
+ response: !ruby/object:Net::HTTPOK
+ body: |
+ <?xml version="1.0" encoding="UTF-8"?>
+ <tumblr version="1.0"><tumblelog name="tumblrgemtest" timezone="US/Eastern" title="Testing Tumblr Gem"></tumblelog><posts start="0" total="1"><post id="445597771" url="http://tumblrgemtest.tumblr.com/post/445597771" url-with-slug="http://tumblrgemtest.tumblr.com/post/445597771/simple-post-to-check-liking-unliking" type="regular" date-gmt="2010-03-13 16:16:00 GMT" date="Sat, 13 Mar 2010 11:16:00" unix-timestamp="1268496960" format="markdown" reblog-key="DLVWOpfh" slug="simple-post-to-check-liking-unliking"><regular-body>&lt;p&gt;Simple post to check liking/unliking.&lt;/p&gt;</regular-body></post></posts></tumblr>
+
+ body_exist: true
+ code: "200"
+ header:
+ last-modified:
+ - Sat, 13 Mar 2010 16:16:00 GMT
+ p3p:
+ - CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"
+ content-type:
+ - text/xml; charset=UTF-8
+ connection:
+ - close
+ x-tumblr-usec:
+ - D=270024
+ x-robots-tag:
+ - noindex
+ server:
+ - Apache/2.2.3 (CentOS)
+ date:
+ - Sat, 13 Mar 2010 16:29:06 GMT
+ content-length:
+ - "660"
+ x-cache-auto:
+ - miss
+ x-tumblr-perf:
+ - "\"ch:4/tumblelog_id_for_host,tumblelogs,country_code_for_ip,tumblelog_post_count cm:4/rate-limiter,rate-limiter,rate-limiter,auto ce:0/ c:0/0 d:0/0 e:0/0\""
+ vary:
+ - Accept-Encoding
+ cache-control:
+ - max-age=900
+ http_version: "1.1"
+ message: OK
+ read: true
+ socket:
View
31 test/fixtures/vcr_cassettes/read/unlike.yml
@@ -0,0 +1,31 @@
+---
+- !ruby/struct:VCR::RecordedResponse
+ method: :post
+ uri: http://www.tumblr.com:80/api/unlike
+ response: !ruby/object:Net::HTTPOK
+ body: Unliked post 445597771.
+ body_exist: true
+ code: "200"
+ header:
+ p3p:
+ - CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"
+ content-type:
+ - text/plain; charset=utf-8
+ connection:
+ - close
+ x-tumblr-usec:
+ - D=119300
+ server:
+ - Apache/2.2.3 (Red Hat)
+ date:
+ - Sat, 13 Mar 2010 16:33:13 GMT
+ content-length:
+ - "23"
+ x-tumblr-perf:
+ - "\"ch:0/ cm:0/ ce:0/ c:0/0 d:0/0 e:0/0\""
+ vary:
+ - Accept-Encoding
+ http_version: "1.1"
+ message: OK
+ read: true
+ socket:

0 comments on commit 0c2c2b8

Please sign in to comment.
Something went wrong with that request. Please try again.