poptart 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +3 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +88 -0
- data/README.md +0 -0
- data/Rakefile +18 -0
- data/lib/poptart/.DS_Store +0 -0
- data/lib/poptart/model.rb +17 -0
- data/lib/poptart/question.rb +19 -0
- data/lib/poptart/request.rb +48 -0
- data/lib/poptart/root.rb +11 -0
- data/lib/poptart/survey.rb +37 -0
- data/lib/poptart/survey_question.rb +42 -0
- data/lib/poptart/user.rb +46 -0
- data/lib/poptart.rb +22 -0
- data/lib/version.rb +3 -0
- data/poptart.gemspec +31 -0
- data/spec/requests/answering_survey_questions_spec.rb +56 -0
- data/spec/requests/root_spec.rb +8 -0
- data/spec/requests/user_management_spec.rb +17 -0
- data/spec/spec_helper.rb +68 -0
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +1588 -0
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +330 -0
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +272 -0
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +330 -0
- data/spec/vcr/poptart/root/returns_survey_links.yml +72 -0
- data/spec/vcr/poptart/user/answers_a_survey_question.yml +1580 -0
- data/spec/vcr/poptart/user/creates_a_user.yml +135 -0
- data/spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml +341 -0
- data/spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml +272 -0
- data/spec/vcr/poptart/user/finds_survey_question_for_id.yml +327 -0
- data/spec/vcr/poptart/user/returns_a_user.yml +267 -0
- data/spec/vcr/user/management_creates_a_user.yml +135 -0
- data/spec/vcr/user/management_returns_a_user.yml +267 -0
- data/tags +72 -0
- metadata +266 -0
@@ -0,0 +1,267 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Api-Token:
|
15
|
+
- testing
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: 'OK '
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- chrome=1
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
Etag:
|
36
|
+
- '"a723ac88b99a06c255a3384c2d01f4fb"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 0f4f068d-0e1d-4330-8bf7-4751facb9b05
|
41
|
+
X-Runtime:
|
42
|
+
- '0.009373'
|
43
|
+
Server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
45
|
+
Date:
|
46
|
+
- Sun, 25 May 2014 18:41:14 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '305'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |-
|
54
|
+
{
|
55
|
+
"_links": {
|
56
|
+
"self": {
|
57
|
+
"href": "http://localhost:3000/api"
|
58
|
+
},
|
59
|
+
"surveys": {
|
60
|
+
"href": "http://localhost:3000/api/surveys"
|
61
|
+
},
|
62
|
+
"users": {
|
63
|
+
"href": "http://localhost:3000/api/users"
|
64
|
+
},
|
65
|
+
"questions": {
|
66
|
+
"href": "http://localhost:3000/api/questions"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 25 May 2014 18:41:14 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: http://localhost:3000/api/users
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"user":{"external_user_id":43}}'
|
78
|
+
headers:
|
79
|
+
User-Agent:
|
80
|
+
- Faraday v0.9.0
|
81
|
+
Content-Type:
|
82
|
+
- application/json
|
83
|
+
Api-Token:
|
84
|
+
- testing
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 201
|
92
|
+
message: 'Created '
|
93
|
+
headers:
|
94
|
+
X-Frame-Options:
|
95
|
+
- SAMEORIGIN
|
96
|
+
X-Xss-Protection:
|
97
|
+
- 1; mode=block
|
98
|
+
X-Content-Type-Options:
|
99
|
+
- nosniff
|
100
|
+
X-Ua-Compatible:
|
101
|
+
- chrome=1
|
102
|
+
Content-Type:
|
103
|
+
- application/json; charset=utf-8
|
104
|
+
Etag:
|
105
|
+
- '"24879a080aff83a710788f72ad1c23c5"'
|
106
|
+
Cache-Control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
X-Request-Id:
|
109
|
+
- 0b81f3b3-27af-4261-9def-1ac91daa8c42
|
110
|
+
X-Runtime:
|
111
|
+
- '0.009868'
|
112
|
+
Server:
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
114
|
+
Date:
|
115
|
+
- Sun, 25 May 2014 18:41:14 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '275'
|
118
|
+
Connection:
|
119
|
+
- Keep-Alive
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: |-
|
123
|
+
{
|
124
|
+
"id": 219,
|
125
|
+
"external_user_id": 43,
|
126
|
+
"token": "b1bdb39c61259ee38af9d5f1333af8adb04b818358ce7427d4a49b20b4e9470803ec7aaeebe8d2cb38e48a74007c0c98d582c954ec52ad6f5948ba7da7feb216",
|
127
|
+
"_links": {
|
128
|
+
"self": {
|
129
|
+
"href": "http://localhost:3000/api/users/219"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
http_version:
|
134
|
+
recorded_at: Sun, 25 May 2014 18:41:14 GMT
|
135
|
+
- request:
|
136
|
+
method: get
|
137
|
+
uri: http://localhost:3000/
|
138
|
+
body:
|
139
|
+
encoding: US-ASCII
|
140
|
+
string: ''
|
141
|
+
headers:
|
142
|
+
User-Agent:
|
143
|
+
- Faraday v0.9.0
|
144
|
+
Content-Type:
|
145
|
+
- application/json
|
146
|
+
Api-Token:
|
147
|
+
- testing
|
148
|
+
Accept-Encoding:
|
149
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
|
+
Accept:
|
151
|
+
- "*/*"
|
152
|
+
response:
|
153
|
+
status:
|
154
|
+
code: 200
|
155
|
+
message: 'OK '
|
156
|
+
headers:
|
157
|
+
X-Frame-Options:
|
158
|
+
- SAMEORIGIN
|
159
|
+
X-Xss-Protection:
|
160
|
+
- 1; mode=block
|
161
|
+
X-Content-Type-Options:
|
162
|
+
- nosniff
|
163
|
+
X-Ua-Compatible:
|
164
|
+
- chrome=1
|
165
|
+
Content-Type:
|
166
|
+
- application/json; charset=utf-8
|
167
|
+
Etag:
|
168
|
+
- '"a723ac88b99a06c255a3384c2d01f4fb"'
|
169
|
+
Cache-Control:
|
170
|
+
- max-age=0, private, must-revalidate
|
171
|
+
X-Request-Id:
|
172
|
+
- a84a44e7-ca15-4a1d-a33e-9ab093844ad5
|
173
|
+
X-Runtime:
|
174
|
+
- '0.008499'
|
175
|
+
Server:
|
176
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
177
|
+
Date:
|
178
|
+
- Sun, 25 May 2014 18:41:14 GMT
|
179
|
+
Content-Length:
|
180
|
+
- '305'
|
181
|
+
Connection:
|
182
|
+
- Keep-Alive
|
183
|
+
body:
|
184
|
+
encoding: UTF-8
|
185
|
+
string: |-
|
186
|
+
{
|
187
|
+
"_links": {
|
188
|
+
"self": {
|
189
|
+
"href": "http://localhost:3000/api"
|
190
|
+
},
|
191
|
+
"surveys": {
|
192
|
+
"href": "http://localhost:3000/api/surveys"
|
193
|
+
},
|
194
|
+
"users": {
|
195
|
+
"href": "http://localhost:3000/api/users"
|
196
|
+
},
|
197
|
+
"questions": {
|
198
|
+
"href": "http://localhost:3000/api/questions"
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
http_version:
|
203
|
+
recorded_at: Sun, 25 May 2014 18:41:14 GMT
|
204
|
+
- request:
|
205
|
+
method: get
|
206
|
+
uri: http://localhost:3000/api/users/43
|
207
|
+
body:
|
208
|
+
encoding: US-ASCII
|
209
|
+
string: ''
|
210
|
+
headers:
|
211
|
+
User-Agent:
|
212
|
+
- Faraday v0.9.0
|
213
|
+
Content-Type:
|
214
|
+
- application/json
|
215
|
+
Api-Token:
|
216
|
+
- testing
|
217
|
+
Accept-Encoding:
|
218
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
219
|
+
Accept:
|
220
|
+
- "*/*"
|
221
|
+
response:
|
222
|
+
status:
|
223
|
+
code: 200
|
224
|
+
message: 'OK '
|
225
|
+
headers:
|
226
|
+
X-Frame-Options:
|
227
|
+
- SAMEORIGIN
|
228
|
+
X-Xss-Protection:
|
229
|
+
- 1; mode=block
|
230
|
+
X-Content-Type-Options:
|
231
|
+
- nosniff
|
232
|
+
X-Ua-Compatible:
|
233
|
+
- chrome=1
|
234
|
+
Content-Type:
|
235
|
+
- application/json; charset=utf-8
|
236
|
+
Etag:
|
237
|
+
- '"24879a080aff83a710788f72ad1c23c5"'
|
238
|
+
Cache-Control:
|
239
|
+
- max-age=0, private, must-revalidate
|
240
|
+
X-Request-Id:
|
241
|
+
- 3fca7dbd-4a95-46d3-aca5-7c7fe1f970ff
|
242
|
+
X-Runtime:
|
243
|
+
- '0.015779'
|
244
|
+
Server:
|
245
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
246
|
+
Date:
|
247
|
+
- Sun, 25 May 2014 18:41:14 GMT
|
248
|
+
Content-Length:
|
249
|
+
- '275'
|
250
|
+
Connection:
|
251
|
+
- Keep-Alive
|
252
|
+
body:
|
253
|
+
encoding: UTF-8
|
254
|
+
string: |-
|
255
|
+
{
|
256
|
+
"id": 219,
|
257
|
+
"external_user_id": 43,
|
258
|
+
"token": "b1bdb39c61259ee38af9d5f1333af8adb04b818358ce7427d4a49b20b4e9470803ec7aaeebe8d2cb38e48a74007c0c98d582c954ec52ad6f5948ba7da7feb216",
|
259
|
+
"_links": {
|
260
|
+
"self": {
|
261
|
+
"href": "http://localhost:3000/api/users/219"
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
http_version:
|
266
|
+
recorded_at: Sun, 25 May 2014 18:41:14 GMT
|
267
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,135 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Api-Token:
|
15
|
+
- testing
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: 'OK '
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- chrome=1
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
Etag:
|
36
|
+
- '"a723ac88b99a06c255a3384c2d01f4fb"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- cdc36699-4c28-4dee-88d5-4d4e8ed95718
|
41
|
+
X-Runtime:
|
42
|
+
- '0.007406'
|
43
|
+
Server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
45
|
+
Date:
|
46
|
+
- Mon, 26 May 2014 20:53:54 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '305'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |-
|
54
|
+
{
|
55
|
+
"_links": {
|
56
|
+
"self": {
|
57
|
+
"href": "http://localhost:3000/api"
|
58
|
+
},
|
59
|
+
"surveys": {
|
60
|
+
"href": "http://localhost:3000/api/surveys"
|
61
|
+
},
|
62
|
+
"users": {
|
63
|
+
"href": "http://localhost:3000/api/users"
|
64
|
+
},
|
65
|
+
"questions": {
|
66
|
+
"href": "http://localhost:3000/api/questions"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
http_version:
|
71
|
+
recorded_at: Mon, 26 May 2014 20:53:54 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: http://localhost:3000/api/users
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"user":{"external_user_id":42}}'
|
78
|
+
headers:
|
79
|
+
User-Agent:
|
80
|
+
- Faraday v0.9.0
|
81
|
+
Content-Type:
|
82
|
+
- application/json
|
83
|
+
Api-Token:
|
84
|
+
- testing
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 201
|
92
|
+
message: 'Created '
|
93
|
+
headers:
|
94
|
+
X-Frame-Options:
|
95
|
+
- SAMEORIGIN
|
96
|
+
X-Xss-Protection:
|
97
|
+
- 1; mode=block
|
98
|
+
X-Content-Type-Options:
|
99
|
+
- nosniff
|
100
|
+
X-Ua-Compatible:
|
101
|
+
- chrome=1
|
102
|
+
Content-Type:
|
103
|
+
- application/json; charset=utf-8
|
104
|
+
Etag:
|
105
|
+
- '"c8f3f8219218e38f738f540ec303a024"'
|
106
|
+
Cache-Control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
X-Request-Id:
|
109
|
+
- b24559ec-0dc3-424f-af97-cf9444dd826a
|
110
|
+
X-Runtime:
|
111
|
+
- '0.009153'
|
112
|
+
Server:
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
114
|
+
Date:
|
115
|
+
- Mon, 26 May 2014 20:53:54 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '275'
|
118
|
+
Connection:
|
119
|
+
- Keep-Alive
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: |-
|
123
|
+
{
|
124
|
+
"id": 237,
|
125
|
+
"external_user_id": 42,
|
126
|
+
"token": "9038b1959ca074678c14f401e150643e670cb08149767792277728f564980eae8e4f35420fce55763e6b80942e399e9c282794b7b449e1ba5a72d0946319d49a",
|
127
|
+
"_links": {
|
128
|
+
"self": {
|
129
|
+
"href": "http://localhost:3000/api/users/237"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
http_version:
|
134
|
+
recorded_at: Mon, 26 May 2014 20:53:54 GMT
|
135
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,267 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Api-Token:
|
15
|
+
- testing
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: 'OK '
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- chrome=1
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
Etag:
|
36
|
+
- '"a723ac88b99a06c255a3384c2d01f4fb"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 570e03df-cf67-4dd7-83aa-396d69771baf
|
41
|
+
X-Runtime:
|
42
|
+
- '0.007673'
|
43
|
+
Server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
45
|
+
Date:
|
46
|
+
- Mon, 26 May 2014 20:53:54 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '305'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |-
|
54
|
+
{
|
55
|
+
"_links": {
|
56
|
+
"self": {
|
57
|
+
"href": "http://localhost:3000/api"
|
58
|
+
},
|
59
|
+
"surveys": {
|
60
|
+
"href": "http://localhost:3000/api/surveys"
|
61
|
+
},
|
62
|
+
"users": {
|
63
|
+
"href": "http://localhost:3000/api/users"
|
64
|
+
},
|
65
|
+
"questions": {
|
66
|
+
"href": "http://localhost:3000/api/questions"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
http_version:
|
71
|
+
recorded_at: Mon, 26 May 2014 20:53:54 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: http://localhost:3000/api/users
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"user":{"external_user_id":43}}'
|
78
|
+
headers:
|
79
|
+
User-Agent:
|
80
|
+
- Faraday v0.9.0
|
81
|
+
Content-Type:
|
82
|
+
- application/json
|
83
|
+
Api-Token:
|
84
|
+
- testing
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 201
|
92
|
+
message: 'Created '
|
93
|
+
headers:
|
94
|
+
X-Frame-Options:
|
95
|
+
- SAMEORIGIN
|
96
|
+
X-Xss-Protection:
|
97
|
+
- 1; mode=block
|
98
|
+
X-Content-Type-Options:
|
99
|
+
- nosniff
|
100
|
+
X-Ua-Compatible:
|
101
|
+
- chrome=1
|
102
|
+
Content-Type:
|
103
|
+
- application/json; charset=utf-8
|
104
|
+
Etag:
|
105
|
+
- '"f5d5e4d6941fc83be5f6520032f7ffd2"'
|
106
|
+
Cache-Control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
X-Request-Id:
|
109
|
+
- 5d2d8ff9-1677-4d61-93a6-0fc717cb2ddb
|
110
|
+
X-Runtime:
|
111
|
+
- '0.009754'
|
112
|
+
Server:
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
114
|
+
Date:
|
115
|
+
- Mon, 26 May 2014 20:53:54 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '275'
|
118
|
+
Connection:
|
119
|
+
- Keep-Alive
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: |-
|
123
|
+
{
|
124
|
+
"id": 238,
|
125
|
+
"external_user_id": 43,
|
126
|
+
"token": "9038b1959ca074678c14f401e150643e670cb08149767792277728f564980eae8e4f35420fce55763e6b80942e399e9c282794b7b449e1ba5a72d0946319d49a",
|
127
|
+
"_links": {
|
128
|
+
"self": {
|
129
|
+
"href": "http://localhost:3000/api/users/238"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
http_version:
|
134
|
+
recorded_at: Mon, 26 May 2014 20:53:54 GMT
|
135
|
+
- request:
|
136
|
+
method: get
|
137
|
+
uri: http://localhost:3000/
|
138
|
+
body:
|
139
|
+
encoding: US-ASCII
|
140
|
+
string: ''
|
141
|
+
headers:
|
142
|
+
User-Agent:
|
143
|
+
- Faraday v0.9.0
|
144
|
+
Content-Type:
|
145
|
+
- application/json
|
146
|
+
Api-Token:
|
147
|
+
- testing
|
148
|
+
Accept-Encoding:
|
149
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
|
+
Accept:
|
151
|
+
- "*/*"
|
152
|
+
response:
|
153
|
+
status:
|
154
|
+
code: 200
|
155
|
+
message: 'OK '
|
156
|
+
headers:
|
157
|
+
X-Frame-Options:
|
158
|
+
- SAMEORIGIN
|
159
|
+
X-Xss-Protection:
|
160
|
+
- 1; mode=block
|
161
|
+
X-Content-Type-Options:
|
162
|
+
- nosniff
|
163
|
+
X-Ua-Compatible:
|
164
|
+
- chrome=1
|
165
|
+
Content-Type:
|
166
|
+
- application/json; charset=utf-8
|
167
|
+
Etag:
|
168
|
+
- '"a723ac88b99a06c255a3384c2d01f4fb"'
|
169
|
+
Cache-Control:
|
170
|
+
- max-age=0, private, must-revalidate
|
171
|
+
X-Request-Id:
|
172
|
+
- a00010b2-0a01-4869-b7aa-053594dadeb8
|
173
|
+
X-Runtime:
|
174
|
+
- '0.007469'
|
175
|
+
Server:
|
176
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
177
|
+
Date:
|
178
|
+
- Mon, 26 May 2014 20:53:54 GMT
|
179
|
+
Content-Length:
|
180
|
+
- '305'
|
181
|
+
Connection:
|
182
|
+
- Keep-Alive
|
183
|
+
body:
|
184
|
+
encoding: UTF-8
|
185
|
+
string: |-
|
186
|
+
{
|
187
|
+
"_links": {
|
188
|
+
"self": {
|
189
|
+
"href": "http://localhost:3000/api"
|
190
|
+
},
|
191
|
+
"surveys": {
|
192
|
+
"href": "http://localhost:3000/api/surveys"
|
193
|
+
},
|
194
|
+
"users": {
|
195
|
+
"href": "http://localhost:3000/api/users"
|
196
|
+
},
|
197
|
+
"questions": {
|
198
|
+
"href": "http://localhost:3000/api/questions"
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
http_version:
|
203
|
+
recorded_at: Mon, 26 May 2014 20:53:54 GMT
|
204
|
+
- request:
|
205
|
+
method: get
|
206
|
+
uri: http://localhost:3000/api/users/43
|
207
|
+
body:
|
208
|
+
encoding: US-ASCII
|
209
|
+
string: ''
|
210
|
+
headers:
|
211
|
+
User-Agent:
|
212
|
+
- Faraday v0.9.0
|
213
|
+
Content-Type:
|
214
|
+
- application/json
|
215
|
+
Api-Token:
|
216
|
+
- testing
|
217
|
+
Accept-Encoding:
|
218
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
219
|
+
Accept:
|
220
|
+
- "*/*"
|
221
|
+
response:
|
222
|
+
status:
|
223
|
+
code: 200
|
224
|
+
message: 'OK '
|
225
|
+
headers:
|
226
|
+
X-Frame-Options:
|
227
|
+
- SAMEORIGIN
|
228
|
+
X-Xss-Protection:
|
229
|
+
- 1; mode=block
|
230
|
+
X-Content-Type-Options:
|
231
|
+
- nosniff
|
232
|
+
X-Ua-Compatible:
|
233
|
+
- chrome=1
|
234
|
+
Content-Type:
|
235
|
+
- application/json; charset=utf-8
|
236
|
+
Etag:
|
237
|
+
- '"f5d5e4d6941fc83be5f6520032f7ffd2"'
|
238
|
+
Cache-Control:
|
239
|
+
- max-age=0, private, must-revalidate
|
240
|
+
X-Request-Id:
|
241
|
+
- a06b742f-99b6-4e9d-bbb7-52cd593d0db3
|
242
|
+
X-Runtime:
|
243
|
+
- '0.010142'
|
244
|
+
Server:
|
245
|
+
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
|
246
|
+
Date:
|
247
|
+
- Mon, 26 May 2014 20:53:54 GMT
|
248
|
+
Content-Length:
|
249
|
+
- '275'
|
250
|
+
Connection:
|
251
|
+
- Keep-Alive
|
252
|
+
body:
|
253
|
+
encoding: UTF-8
|
254
|
+
string: |-
|
255
|
+
{
|
256
|
+
"id": 238,
|
257
|
+
"external_user_id": 43,
|
258
|
+
"token": "9038b1959ca074678c14f401e150643e670cb08149767792277728f564980eae8e4f35420fce55763e6b80942e399e9c282794b7b449e1ba5a72d0946319d49a",
|
259
|
+
"_links": {
|
260
|
+
"self": {
|
261
|
+
"href": "http://localhost:3000/api/users/238"
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
http_version:
|
266
|
+
recorded_at: Mon, 26 May 2014 20:53:54 GMT
|
267
|
+
recorded_with: VCR 2.6.0
|