poptart 0.0.3 → 0.0.4
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 +4 -4
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +2 -2
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +3674 -719
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +106 -77
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +34 -35
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +104 -78
- data/spec/vcr/poptart/root/returns_survey_links.yml +5 -5
- data/spec/vcr/user/management_creates_a_user.yml +20 -20
- data/spec/vcr/user/management_returns_a_user.yml +40 -40
- metadata +2 -14
- data/spec/vcr/poptart/user/answers_a_survey_question.yml +0 -1580
- data/spec/vcr/poptart/user/creates_a_user.yml +0 -135
- data/spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml +0 -341
- data/spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml +0 -272
- data/spec/vcr/poptart/user/finds_survey_question_for_id.yml +0 -327
- data/spec/vcr/poptart/user/returns_a_user.yml +0 -267
@@ -1,267 +0,0 @@
|
|
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
|