Permalink
Browse files

test suite: 80 seconds to <1 second, thanks to VCR gem

  • Loading branch information...
1 parent ccb6f04 commit 6d7fa0433408f31ab37f391be7e53e67c1e4d690 @adelevie committed Sep 20, 2012
View
3 Gemfile
@@ -13,9 +13,12 @@ group :development do
gem "rest-client"
gem "activesupport"
gem "activemodel"
+ gem "vcr"
+ gem "webmock"
end
gem "rest-client"
gem "activesupport"
gem "activemodel"
gem "json"
+
View
8 Gemfile.lock
@@ -7,7 +7,9 @@ GEM
i18n (~> 0.6)
activesupport (3.1.3)
multi_json (~> 1.0)
+ addressable (2.3.2)
builder (3.0.0)
+ crack (0.3.1)
git (1.2.5)
i18n (0.6.0)
jeweler (1.6.4)
@@ -31,6 +33,10 @@ GEM
ruby_parser (2.3.1)
sexp_processor (~> 3.0)
sexp_processor (3.0.9)
+ vcr (2.2.4)
+ webmock (1.8.10)
+ addressable (>= 2.2.7)
+ crack (>= 0.1.7)
PLATFORMS
ruby
@@ -44,3 +50,5 @@ DEPENDENCIES
rcov
reek (~> 1.2.8)
rest-client
+ vcr
+ webmock
View
161 fixtures/vcr_cassettes/test_all.yml
@@ -0,0 +1,161 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"11222"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '17'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:37 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/54C6KpIVdM
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTk0NzlkNjE4NTM3ZTY4MTM0ZGU1MWMyNzQ5NmY0ODQ%3D--205d43d2cee87f0d45f723e29d26fbfdf41119ad;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:37 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.034132'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:37.170Z","objectId":"54C6KpIVdM"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:37 GMT
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"112ssd22"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '20'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:37 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/ZvIMP5SSSS
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZDFjYzBlYjM1MmRkNzRlZmQ2YzE3Mjk1ZjQxZDdiNGU%3D--5bbc4d2ef162a05ac166470436c2d44d7fa5439d;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:37 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.050751'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:37.429Z","objectId":"ZvIMP5SSSS"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:37 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:37 GMT
+ Etag:
+ - ! '"bbfb53bdfe116c52c5ab517838b9ff42"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzNlZDAyNGMyMDhlOWNhNjk0YzY3ODQ4YzhjYjJhMjY%3D--026e69dca673c05e7c79ca99e1add79f2767b15b;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:37 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.036593'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '256'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"title":"11222","createdAt":"2012-09-20T04:31:37.170Z","updatedAt":"2012-09-20T04:31:37.170Z","objectId":"54C6KpIVdM"},{"title":"112ssd22","createdAt":"2012-09-20T04:31:37.429Z","updatedAt":"2012-09-20T04:31:37.429Z","objectId":"ZvIMP5SSSS"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:37 GMT
+recorded_with: VCR 2.2.4
View
57 fixtures/vcr_cassettes/test_attribute_getters.yml
@@ -0,0 +1,57 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"title1"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '18'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:37 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/0LUIcFSUQZ
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWIzYmVmN2Q3YmE0ZDMxZWVhZWYyOTI4NjhjODBiNzc%3D--82e42ed02caf03df7430dbfc4cf8db56633c2fdc;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:37 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.024802'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:37.855Z","objectId":"0LUIcFSUQZ"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:37 GMT
+recorded_with: VCR 2.2.4
View
57 fixtures/vcr_cassettes/test_attribute_setters.yml
@@ -0,0 +1,57 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"1"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '13'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:38 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/iS3FSrerRc
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWNhMjQ4MjA0NmNiYTAxYjhkZjJhYzgzNDU0OGNlMjc%3D--daea95c2a5193789487cc8f412bbba3656336143;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:38 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.095108'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:38.173Z","objectId":"iS3FSrerRc"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:38 GMT
+recorded_with: VCR 2.2.4
View
155 fixtures/vcr_cassettes/test_authenticate.yml
@@ -0,0 +1,155 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/users
+ body:
+ encoding: UTF-8
+ string: ! '{"username":"fake_person","password":"fake_pass"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '49'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:53 GMT
+ Location:
+ - https://api.parse.com/1/users/oA6BqJskE6
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTMwY2I4YmFhMDAwM2NmYzM2MzkxMzc1YTY4YmM0Yzg%3D--c932bbdd67e73b52419fbaf7e00a3a4171f25775;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:53 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.178267'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '107'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:53.888Z","objectId":"oA6BqJskE6","sessionToken":"69cr2yktcow753usha7xxxnqo"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:54 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/login?password=fake_pass&username=fake_person
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:54 GMT
+ Etag:
+ - ! '"de2816b2fcd20195b49353fd8194a9c6"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjZkNDc1Yzc0YWViNDk2M2M5ZTA5N2JkMmY5MjgwYTM%3D--c7ffcf2011fca388e5fcf8ed8b63f3e967a8503e;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:54 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.168505'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '171'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"username":"fake_person","createdAt":"2012-09-20T04:31:53.888Z","updatedAt":"2012-09-20T04:31:53.888Z","objectId":"oA6BqJskE6","sessionToken":"69cr2yktcow753usha7xxxnqo"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:54 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/login?password=wrong_pass&username=wrong_username
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 404
+ message: Not Found
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:54 GMT
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOGU5YTU1YzdmZjMxNmEyOGFjZmU5YzM5YmZjZDExNzg%3D--4ce3c84dd6398a1799e83fb88b6a27cc585ecb24;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:54 GMT; HttpOnly
+ Status:
+ - 404 Not Found
+ X-Runtime:
+ - '0.026655'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '47'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"code":101,"error":"invalid login parameters"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:54 GMT
+recorded_with: VCR 2.2.4
View
161 fixtures/vcr_cassettes/test_chained_wheres.yml
@@ -0,0 +1,161 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"chained_wheres","body":"testing"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '43'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:38 GMT
+ Location:
+ - https://api.parse.com/1/classes/Straw/FL3FsElVDU
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjUwZTU4MmM4ZTRhODA4ZTFiNDg0YzAzNTJlNzU5ODk%3D--1b9978b036952a4d2853c52700ddb5de8dfa6b46;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:38 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.013914'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:38.398Z","objectId":"FL3FsElVDU"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:38 GMT
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"chained_wheres","body":"testing_2"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '45'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:38 GMT
+ Location:
+ - https://api.parse.com/1/classes/Straw/EiMkUW21F9
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGZlOTAyOGQ2YmNhYjNjOWY2NTY5OWQ3NzM3NjQyNWM%3D--fed8429400e1612c711c50260e4567c843c9c932;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:38 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.266132'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:38.837Z","objectId":"EiMkUW21F9"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:38 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Straw?where=%7B%22title%22:%22chained_wheres%22,%22body%22:%22testing%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:39 GMT
+ Etag:
+ - ! '"e8d2d2c53bb53f6da366d8852e6a8c02"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYjViMWQ5ZjIwMGNhODRmYTNhNzYxYmI3NGEyOWFiODc%3D--2d77312f7832d65b24819f424f8f71e87aba2c3e;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.057036'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '159'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"title":"chained_wheres","body":"testing","createdAt":"2012-09-20T04:31:38.398Z","updatedAt":"2012-09-20T04:31:38.398Z","objectId":"FL3FsElVDU"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
+recorded_with: VCR 2.2.4
View
411 fixtures/vcr_cassettes/test_count.yml
@@ -0,0 +1,411 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?where=%7B%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:39 GMT
+ Etag:
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMWNmMzdiNDgyNzNhMDVhMDUxN2MyNTlmYzY1NTRkYjc%3D--6bd9e34c3a6f6dd5d6e1867ec0f6376b6898a7dd;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.018870'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '14'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author
+ body:
+ encoding: UTF-8
+ string: ! '{"name":"bar"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '14'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:39 GMT
+ Location:
+ - https://api.parse.com/1/classes/Author/C4ti144zgK
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2IwOTA4MDY3NTk2NGY2MjczMzk2OTZhOTU2NTI0MWU%3D--578b07ab6b45ccfaa2a79c05aadb44b0f9d9dc2e;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.020418'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:39.585Z","objectId":"C4ti144zgK"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author
+ body:
+ encoding: UTF-8
+ string: ! '{"name":"jab"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '14'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:39 GMT
+ Location:
+ - https://api.parse.com/1/classes/Author/z59Z8Zx8DX
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzgwODI2OTNiMDI3MmY1N2E5ZTA5MzNiYzRhNjM1ZDY%3D--16b4c5528f16d7d991cbc541eaa1c8294560d174;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.017508'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:39.798Z","objectId":"z59Z8Zx8DX"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:39 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?count=1&where=%7B%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:39 GMT
+ Etag:
+ - ! '"087d666cef98e5739d2b45c8be6c4bc0"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMzMzZDJmOTQ2NjViYjA1ZGQ5ZTI2MjFlZjJkNWQxNTk%3D--e3de473c3021250f25cf2e4754fc745768ecb66c;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:39 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.020040'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '257'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"name":"bar","createdAt":"2012-09-20T04:31:39.585Z","updatedAt":"2012-09-20T04:31:39.585Z","objectId":"C4ti144zgK"},{"name":"jab","createdAt":"2012-09-20T04:31:39.798Z","updatedAt":"2012-09-20T04:31:39.798Z","objectId":"z59Z8Zx8DX"}],"count":2}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?count=1&where=%7B%22name%22:%22jab%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:40 GMT
+ Etag:
+ - ! '"183c77737ed3100aec277c288cd89a4d"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNDFlNzEyN2ZiZDJiMmVlNmQwNTVjZWQwNjUzNmQ4N2U%3D--b5b35a48bf39bf4ae97721fc440b315970c5053e;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.035050'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '140'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"name":"jab","createdAt":"2012-09-20T04:31:39.798Z","updatedAt":"2012-09-20T04:31:39.798Z","objectId":"z59Z8Zx8DX"}],"count":1}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
+- request:
+ method: delete
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author/C4ti144zgK
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:40 GMT
+ Etag:
+ - ! '"99914b932bd37a50b983c5e7c90ae93b"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMGQ5NjMxNTQ2MWZhOGEzMWJlNzA5M2ZiMzEyMGU0Mzk%3D--8776a4197f90bbacaee006ac17778524c2ab9e44;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.017867'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '2'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
+- request:
+ method: delete
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author/z59Z8Zx8DX
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:40 GMT
+ Etag:
+ - ! '"99914b932bd37a50b983c5e7c90ae93b"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYTBjZTA5ZDQ0OGRiYTdiYjFlN2JmOGM2NmQ2M2JmYTM%3D--c1358e349986eabab3a594c39dbd6ab0296e3848;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.034690'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '2'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Author?count=1&where=%7B%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:40 GMT
+ Etag:
+ - ! '"8c97ea0119fb2eb809f32e913cb37202"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlY2I1YzgxNWM2MmQwYzYyNDAxMjhkMjcyNjU3MDMzYjA%3D--fbceb363fbed8a1dceb2a147ac92f8619f85b969;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:40 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.044170'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '24'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[],"count":0}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:40 GMT
+recorded_with: VCR 2.2.4
View
57 fixtures/vcr_cassettes/test_create.yml
@@ -0,0 +1,57 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon
+ body:
+ encoding: UTF-8
+ string: ! '{"length":"1234567890created!"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '31'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:41 GMT
+ Location:
+ - https://api.parse.com/1/classes/Spoon/qTvSODGDAF
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlM2ZmZWQwZWYwMjY2ZTg2YWRmYTc4NjMwOGUxMzA2YzA%3D--dfd395ae98106c61f5972f9386895345f198a169;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:41 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.028833'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:41.056Z","objectId":"qTvSODGDAF"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:41 GMT
+recorded_with: VCR 2.2.4
View
57 fixtures/vcr_cassettes/test_created_at.yml
@@ -0,0 +1,57 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"testing created_at"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '30'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:41 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/0oivuHzQvJ
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTA1MGEwMTQ3YTcwZTA4OGYxNWQzZGExMGY1YzJjZjY%3D--6fb8e314f4a8e8f43ef88e4da3c31c26b4a4004d;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:41 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.026637'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:41.315Z","objectId":"0oivuHzQvJ"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:41 GMT
+recorded_with: VCR 2.2.4
View
157 fixtures/vcr_cassettes/test_destroy.yml
@@ -0,0 +1,157 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"hello1234567890abc!"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '31'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:41 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/HJtVz2Facc
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWFjMGI1Nzk4ZWNiY2NmNTI0ZWM0MmY3ODlhMDhhM2U%3D--db82503591fc5776b873305c70aa2004f4bed24d;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:41 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.017814'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:41.537Z","objectId":"HJtVz2Facc"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:41 GMT
+- request:
+ method: delete
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post/HJtVz2Facc
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:41 GMT
+ Etag:
+ - ! '"99914b932bd37a50b983c5e7c90ae93b"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZWMxN2JkYTBiNGZiMmMxNDJkMjA3MGJiNzI2OTM4NDM%3D--484b22d11c45137c05ebb2d15f51c483995017ed;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:41 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.018668'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '2'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:41 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22hello1234567890abc!%22,%22objectId%22:%22HJtVz2Facc%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:42 GMT
+ Etag:
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzIxOGU4NDc3YTQ4MGM5YWEzMmRmMjk0YTkxOWFiNTc%3D--c69d986c653d866281f07ff7a4b2dd10945ef00a;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:42 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.278392'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '14'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:42 GMT
+recorded_with: VCR 2.2.4
View
207 fixtures/vcr_cassettes/test_destroy_all.yml
@@ -0,0 +1,207 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Knife
+ body:
+ encoding: UTF-8
+ string: ! '{"is_shiny":"arbitrary"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '24'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:42 GMT
+ Location:
+ - https://api.parse.com/1/classes/Knife/WDFVFDfcEC
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmMyYTk3YjE1MTZjNDA4Yzc4ODA4YzFiODRhMjRmNWI%3D--3b621bd342d440e0601a1de74e7ae0e69f9d0199;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:42 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.019350'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:42.391Z","objectId":"WDFVFDfcEC"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:42 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Knife?where=%7B%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:42 GMT
+ Etag:
+ - ! '"92c0f92b7c224a4c38d7d2597fd6432d"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMGUwOGU1YTk0MWYyNGY1ZDUxZTM4MTkxYmE0ODFmY2Y%3D--abc4feeeb7fd8501c2aab6709370c42046d6f367;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:42 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.019219'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '140'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"is_shiny":"arbitrary","createdAt":"2012-09-20T04:31:42.391Z","updatedAt":"2012-09-20T04:31:42.391Z","objectId":"WDFVFDfcEC"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:42 GMT
+- request:
+ method: delete
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Knife/WDFVFDfcEC
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:42 GMT
+ Etag:
+ - ! '"99914b932bd37a50b983c5e7c90ae93b"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjkyZDM5NTk0OTJhMTljOTU1M2VlMTFhOGFlMzdmOWY%3D--4f423e78f0b76f05b64449a0d2e703cfe84a9ab8;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:42 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.027036'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '2'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:42 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Knife?count=1&where=%7B%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:42 GMT
+ Etag:
+ - ! '"8c97ea0119fb2eb809f32e913cb37202"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNDdlYzNmNzhiOTkyMjI3YzU1ZDVlZjViOTAzMTljNDY%3D--c7223fb9954b56c5f18775b25b095ebf49a590b5;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:42 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.021084'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '24'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[],"count":0}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:43 GMT
+recorded_with: VCR 2.2.4
View
269 fixtures/vcr_cassettes/test_each.yml
@@ -0,0 +1,269 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"each"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '16'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:43 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/ae7svSSL8B
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYmU1ZDU2ZDUwMjZhZWNjZTYxN2ZlZGZhM2UxYThkMWQ%3D--43cbbe6c3d2c26ee0fc4c17f003e9778c8470964;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:43 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.023730'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:43.203Z","objectId":"ae7svSSL8B"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:43 GMT
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"each"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '16'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:43 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/RCh2i7CPq8
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMGQwOTQyNzlmZDE2MzNhZjY1YzRiNzg0MmRhZmVkZDY%3D--c1ee7c40c832e2eda9ac22c8674f2fc8adb8cafd;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:43 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.017997'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:43.422Z","objectId":"RCh2i7CPq8"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:43 GMT
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"each"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '16'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:43 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/nKmvVD9S7K
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlODUyNjM0N2JmOWFmNjYzNGY5ZDlkMDFjY2E5YzRjMzA%3D--d90d97ee2778852dc69359446a440b431d352bef;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:43 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.016963'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:43.650Z","objectId":"nKmvVD9S7K"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:43 GMT
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"each"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '16'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:43 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/iptDOXYcAh
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZmY5YWE3NjFkMzViNjZhOTFkN2M2MDY1Yjk2MjE4OTU%3D--b4459b07069a830dc0973caf89f5f67d90e2687b;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:43 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.016830'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:43.895Z","objectId":"iptDOXYcAh"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:43 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22each%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:44 GMT
+ Etag:
+ - ! '"6a9a14b5c245189981d09ca917836522"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZjNmNjBhNzczYzYwNWNlMGJmODg3NDMyM2NlNTA2MzQ%3D--1f647c2092732fc4391ff48224f37f6c37d1a66e;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.090173'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '489'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"title":"each","createdAt":"2012-09-20T04:31:43.650Z","updatedAt":"2012-09-20T04:31:43.650Z","objectId":"nKmvVD9S7K"},{"title":"each","createdAt":"2012-09-20T04:31:43.895Z","updatedAt":"2012-09-20T04:31:43.895Z","objectId":"iptDOXYcAh"},{"title":"each","createdAt":"2012-09-20T04:31:43.422Z","updatedAt":"2012-09-20T04:31:43.422Z","objectId":"RCh2i7CPq8"},{"title":"each","createdAt":"2012-09-20T04:31:43.203Z","updatedAt":"2012-09-20T04:31:43.203Z","objectId":"ae7svSSL8B"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:44 GMT
+recorded_with: VCR 2.2.4
View
107 fixtures/vcr_cassettes/test_find.yml
@@ -0,0 +1,107 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon
+ body:
+ encoding: UTF-8
+ string: ! '{"length":"Welcome"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '20'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:44 GMT
+ Location:
+ - https://api.parse.com/1/classes/Spoon/xkJeYEfqMd
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNTM5MDNhZDI0NGFlN2YxZTMwNDM2NjJkZjNkYjFmMGE%3D--33984c7aa9a814b64c98ce0137696b136bc39277;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.021043'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:44.394Z","objectId":"xkJeYEfqMd"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:44 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon?where=%7B%22objectId%22:%22xkJeYEfqMd%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:44 GMT
+ Etag:
+ - ! '"06287f71cecc6f9c1b7bcad061d0d2e6"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2RjNjI0NmEyNzAzNjliYTUxNTYxNGVhMzMxNmU5ZWQ%3D--4ccddf11c1c866981b6ab7f8911da61322ff94bb;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.033418'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '136'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"length":"Welcome","createdAt":"2012-09-20T04:31:44.394Z","updatedAt":"2012-09-20T04:31:44.394Z","objectId":"xkJeYEfqMd"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:44 GMT
+recorded_with: VCR 2.2.4
View
157 fixtures/vcr_cassettes/test_find_all_by.yml
@@ -0,0 +1,157 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"Welcome111"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '22'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:44 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/ZwjYQFBuv6
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjgxODI3MWQzNDI3NDQ5MjA4N2NmODEzYTg2YzE2ZTQ%3D--4d8d0d1848d3e6f39f64be4b88ffd141a2623d2e;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.016997'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:44 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:44 GMT
+ Etag:
+ - ! '"4d7ab37dce0e55c0ac4f389a7bb8d329"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzZiMjMwZWYxNjExNDYwMjY5M2Y1ODNhNzJiNjljMDc%3D--d4e85c6d835e610b9442f6b16c0165eda0037edc;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:44 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.017498'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '138'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:45 GMT
+ Etag:
+ - ! '"4d7ab37dce0e55c0ac4f389a7bb8d329"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYzVmYWYzNmNiMzFhYzA0YmVjZTJiY2VhMDk4OWVhOWY%3D--936695426c77e609d0afcda770009da7cef0265a;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.122842'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '138'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
+recorded_with: VCR 2.2.4
View
157 fixtures/vcr_cassettes/test_find_by.yml
@@ -0,0 +1,157 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"Welcome111"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '22'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:45 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/HKWHSsET9H
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNWM1ZTQ4OGQyNDAxZDZkY2U3MTEzZDY4NjJjMWEyMDM%3D--42ccad36bbe260f8c2c857e38794c7ce36eb17f6;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.038513'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:45.557Z","objectId":"HKWHSsET9H"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:45 GMT
+ Etag:
+ - ! '"71f4d19c72a27b48f594eeabf6b014a9"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWJmYTA2NjJiZTY0MjYyNjczNzFiZDNmMDNhZmUzM2M%3D--6fbf1684c04019039f303bda99ddbd7501f3d125;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.027724'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '263'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:45.557Z","updatedAt":"2012-09-20T04:31:45.557Z","objectId":"HKWHSsET9H"},{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:45 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%22title%22:%22Welcome111%22%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:45 GMT
+ Etag:
+ - ! '"71f4d19c72a27b48f594eeabf6b014a9"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2EzNDM4MDlkMTZhOTgxYmI5OTYxZDUxM2MwNzhlOTk%3D--243e4d8590e49510bb4a6b2f80b0f3b7a5fc4fe9;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:45 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.022508'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '263'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"title":"Welcome111","createdAt":"2012-09-20T04:31:45.557Z","updatedAt":"2012-09-20T04:31:45.557Z","objectId":"HKWHSsET9H"},{"title":"Welcome111","createdAt":"2012-09-20T04:31:44.836Z","updatedAt":"2012-09-20T04:31:44.836Z","objectId":"ZwjYQFBuv6"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:46 GMT
+recorded_with: VCR 2.2.4
View
107 fixtures/vcr_cassettes/test_first.yml
@@ -0,0 +1,107 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Fork
+ body:
+ encoding: UTF-8
+ string: ! '{"points":"firsttt"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '20'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:46 GMT
+ Location:
+ - https://api.parse.com/1/classes/Fork/0ovCIsfae8
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlN2NjMGZjYjVkMzE1NTRlNjM0YzE3NzU1MzRmOTkyODQ%3D--81384f7ca942dd68ee11c3edf9e5ae60af7cafe2;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:46 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.021625'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:46.173Z","objectId":"0ovCIsfae8"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:46 GMT
+- request:
+ method: get
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Fork?limit=1&where=%7B%7D
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:46 GMT
+ Etag:
+ - ! '"510c294415b5ec815aef772b68cf6f16"'
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNzc3YzZlOTBlNDNmYzIyY2RkNTU3OTBkOGZkOTdkN2I%3D--9ef17c9204fb392d2c9fc5c74169c22a258230b8;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:46 GMT; HttpOnly
+ Status:
+ - 200 OK
+ X-Runtime:
+ - '0.021159'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '136'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"results":[{"points":"firsttt","createdAt":"2012-09-20T04:31:46.173Z","updatedAt":"2012-09-20T04:31:46.173Z","objectId":"0ovCIsfae8"}]}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:46 GMT
+recorded_with: VCR 2.2.4
View
57 fixtures/vcr_cassettes/test_id.yml
@@ -0,0 +1,57 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"testing id"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '22'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin:
+ - https://parse.com, https://www.parse.com
+ Access-Control-Request-Method:
+ - ! '*'
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Thu, 20 Sep 2012 04:31:46 GMT
+ Location:
+ - https://api.parse.com/1/classes/Post/z3QRn3tzr1
+ Server:
+ - nginx/1.2.2
+ Set-Cookie:
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZGQ2NzU3YjE1YWUyMzczMmYyNDk5NzFhNjBjZTg1MzI%3D--934689daa38e8602dbd4d8e4667d2b7b96578863;
+ domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:46 GMT; HttpOnly
+ Status:
+ - 201 Created
+ X-Runtime:
+ - '0.050280'
+ X-Ua-Compatible:
+ - IE=Edge,chrome=1
+ Content-Length:
+ - '64'
+ Connection:
+ - keep-alive
+ body:
+ encoding: US-ASCII
+ string: ! '{"createdAt":"2012-09-20T04:31:46.625Z","objectId":"z3QRn3tzr1"}'
+ http_version:
+ recorded_at: Thu, 20 Sep 2012 04:31:46 GMT
+recorded_with: VCR 2.2.4
View
864 fixtures/vcr_cassettes/test_limit.yml
@@ -0,0 +1,864 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
+ body:
+ encoding: UTF-8
+ string: ! '{"title":"foo_0"}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '17'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Access-Control-Allow-Origin: