Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 03e051b

Browse files
committed
Adding fixtures after sanitizing private data
Fixtures were created using `curl -is URL` for a dump of the headers response as well as the body of the message.
1 parent 94fe2c7 commit 03e051b

13 files changed

Lines changed: 132 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ test/version_tmp
1717
tmp
1818
notes.txt
1919
.DS_STORE
20-
spec/fixtures/
20+
spec/fixtures/updates_by_profile_id_sent.txt
2121
utility.rb

spec/fixtures/destroy.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Wed, 15 May 2013 01:43:34 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
x-frame-options: SAMEORIGIN
7+
Content-Length: 828
8+
Connection: keep-alive
9+
10+
{"success":true,"message":"Update deleted successfully"}

spec/fixtures/info.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Thu, 16 May 2013 22:05:18 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
x-frame-options: SAMEORIGIN
7+
Content-Length: 2820
8+
Connection: keep-alive
9+
10+
{"services":{"twitter":{"types":{"profile":{"name":"Twitter","character_limit":140,"schedule_limit":288,"icons":{"16":"http:\/\/static.bufferapp.com\/images\/services\/twitter-16x16.png","32":"http:\/\/static.bufferapp.com\/images\/services\/twitter-32x32.png","64":"http:\/\/static.bufferapp.com\/images\/services\/twitter-64x64.png"},"supported_interactions":["favorites","favorite","mentions","mention","retweets","retweet"]}},"urls":{"user":"https:\/\/twitter.com\/","hashtag":"https:\/\/twitter.com\/#!\/search?q=%23","cashtag":"https:\/\/twitter.com\/#!\/search?q=%24"}},"facebook":{"types":{"profile":{"name":"Facebook","character_limit":5000,"schedule_limit":5,"icons":{"16":"http:\/\/static.bufferapp.com\/images\/services\/facebook-16x16.png","32":"http:\/\/static.bufferapp.com\/images\/services\/facebook-32x32.png","64":"http:\/\/static.bufferapp.com\/images\/services\/facebook-64x64.png"},"supported_interactions":["likes","like","comments","comment"]},"page":{"name":"Facebook Page","character_limit":5000,"schedule_limit":5,"icons":{"16":"http:\/\/static.bufferapp.com\/images\/services\/facebook-16x16.png","32":"http:\/\/static.bufferapp.com\/images\/services\/facebook-32x32.png","64":"http:\/\/static.bufferapp.com\/images\/services\/facebook-64x64.png"},"supported_interactions":["likes","like","comments","comment"]}},"urls":{"user":"https:\/\/www.facebook.com\/"}},"linkedin":{"types":{"profile":{"name":"LinkedIn","character_limit":700,"schedule_limit":25,"icons":{"16":"http:\/\/static.bufferapp.com\/images\/services\/linkedin-16x16.png","32":"http:\/\/static.bufferapp.com\/images\/services\/linkedin-32x32.png","64":"http:\/\/static.bufferapp.com\/images\/services\/linkedin-64x64.png"},"supported_interactions":["comments","comment","likes","like"]},"group":{"name":"LinkedIn Group","character_limit":200,"schedule_limit":100,"icons":{"16":"http:\/\/static.bufferapp.com\/images\/services\/linkedin-16x16.png","32":"http:\/\/static.bufferapp.com\/images\/services\/linkedin-32x32.png","64":"http:\/\/static.bufferapp.com\/images\/services\/linkedin-64x64.png"},"supported_interactions":["comments","comment","likes","like"]}},"urls":{"user":"http:\/\/www.linkedin.com\/search\/fpsearch?type=people&keywords="}},"appdotnet":{"types":{"profile":{"name":"App.net","character_limit":256,"schedule_limit":288,"icons":{"16":"http:\/\/static.bufferapp.com\/images\/services\/appdotnet-alpha-16x16.png","32":"http:\/\/static.bufferapp.com\/images\/services\/appdotnet-alpha2-32x32.png","64":"http:\/\/static.bufferapp.com\/images\/services\/appdotnet-alpha-64x64.png"},"supported_interactions":[]}},"urls":{"user":"https:\/\/alpha.app.net\/","hashtag":"https:\/\/alpha.app.net\/hashtags\/"}}},"media":{"picture_size_min":0,"picture_size_max":5242880,"picture_filetypes":["jpeg","jpg","gif","png"]}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Fri, 17 May 2013 04:21:13 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
x-frame-options: SAMEORIGIN
7+
Content-Length: 29
8+
Connection: keep-alive
9+
10+
{"total":0,"interactions":[]}

spec/fixtures/link.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Wed, 15 May 2013 01:43:34 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
x-frame-options: SAMEORIGIN
7+
Content-Length: 828
8+
Connection: keep-alive
9+
10+
{
11+
"shares":47348
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Tue, 14 May 2013 05:02:18 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
X-Cache: Awwww Yea
7+
x-frame-options: SAMEORIGIN
8+
Content-Length: 845
9+
Connection: keep-alive
10+
11+
[{"_id":"5160746d13f04a5e3a00000f","avatar":"http:\/\/a0.twimg.com\/profile_images\/3604112130.jpeg","avatar_https":"https:\/\/twimg0-a.akamaihd.net\/profile_images\/3604112130.jpeg","counts":{"pending":1,"sent":40},"created_at":1365275757,"default":true,"disconnected":null,"formatted_service":"Twitter","formatted_username":"@example","id":"5160746d13d04a5e3a00000f","quick_signin":true,"schedules":[{"days":["mon","tue","wed","thu","fri","sat","sun"],"times":["06:13","09:10","11:58","12:17","13:49","18:07","21:04","22:13"]}],"service":"twitter","service_id":"737649619","service_type":"profile","service_username":"example","statistics":{"followers":179},"timezone":"America\/New_York","user_id":"5160746d13d04a5e3a00000d","utm_tracking":"enabled","verb":"tweet"}]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Wed, 15 May 2013 01:53:50 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
x-frame-options: SAMEORIGIN
7+
Content-Length: 128
8+
Connection: keep-alive
9+
10+
[{"days":["mon","tue","wed","thu","fri","sat","sun"],"times":["06:13","09:10","11:58","12:17","13:49","18:07","21:04","22:13"]}]

spec/fixtures/profiles_by_id.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Wed, 15 May 2013 01:43:34 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
x-frame-options: SAMEORIGIN
7+
Content-Length: 828
8+
Connection: keep-alive
9+
10+
{"_id":"5160746d13d04a5e3a00000f","avatar":"http:\/\/a0.twimg.com\/profile_images\/3604112130.jpeg","avatar_https":"https:\/\/twimg0-a.akamaihd.net\/profile_images\/3604112130.jpeg","counts":{"pending":1,"sent":46},"created_at":1365275757,"disconnected":null,"formatted_service":"Twitter","formatted_username":"@example","id":"5160746d13d04a5e3a00000f","quick_signin":true,"schedules":[{"days":["mon","tue","wed","thu","fri","sat","sun"],"times":["06:13","09:10","11:58","12:17","13:49","18:07","21:04","22:13"]}],"service":"twitter","service_id":"737649619","service_type":"profile","service_username":"example","statistics":{"followers":179},"timezone":"America\/New_York","user_id":"5160746d13d04a5e3a00000d","utm_tracking":"enabled","verb":"tweet"}

spec/fixtures/update_by_id.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
HTTP/1.1 200 Awesome
2+
Content-Type: application/json;charset=UTF-8
3+
Date: Wed, 15 May 2013 01:43:34 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
x-frame-options: SAMEORIGIN
7+
Content-Length: 828
8+
Connection: keep-alive
9+
10+
{"id":"4eb8565e0acb04bb82000004","created_at":1320703582,"day":"Monday 7th November","due_at":1320742680,"due_time":"10:09 pm","profile_id":"4eb854340acb04e870000010","profile_service":"twitter","sent_at":1320744001,"service_update_id":"133667319959392256","statistics":{"reach":2460,"clicks":56,"retweets":20,"favorites":1,"mentions":1},"status":"sent","text":"This is just the beginning, the very beginning, of the transfor...","text_formatted":"This is just the beginning, the very beginning, of th...","user_id":"4eb9276e0acb04bb81000067","via":"chrome"}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
HTTP/1.1 401 Authorization Required
2+
Content-Type: text/html; charset=UTF-8
3+
Date: Fri, 17 May 2013 02:46:37 GMT
4+
Server: Apache
5+
Vary: Accept-Encoding,User-Agent
6+
WWW-Authenticate: OAuth realm='Service', error='invalid_request', error_description='The request is missing a required parameter, includes an unsupported parameter or parameter value, repeats the same parameter, uses more than one method for including an access token, or is otherwise malformed.'
7+
Content-Length: 0
8+
Connection: keep-alive
9+

0 commit comments

Comments
 (0)