poptart 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/lib/poptart.rb +1 -4
  4. data/lib/poptart/link.rb +9 -0
  5. data/lib/poptart/model.rb +13 -29
  6. data/lib/poptart/question.rb +21 -17
  7. data/lib/poptart/root.rb +10 -1
  8. data/lib/poptart/survey.rb +34 -7
  9. data/lib/poptart/survey_question.rb +32 -12
  10. data/lib/poptart/user.rb +4 -21
  11. data/lib/version.rb +1 -1
  12. data/poptart.gemspec +0 -4
  13. data/spec/lib/poptart/model_spec.rb +95 -0
  14. data/spec/lib/poptart/question_spec.rb +47 -0
  15. data/spec/lib/poptart/root_spec.rb +50 -0
  16. data/spec/lib/poptart/survey_question_spec.rb +166 -0
  17. data/spec/lib/poptart/survey_spec.rb +105 -0
  18. data/spec/lib/poptart/user_spec.rb +45 -0
  19. data/spec/requests/questions_spec.rb +31 -0
  20. data/spec/requests/survey_questions_spec.rb +150 -0
  21. data/spec/requests/surveys_spec.rb +34 -5
  22. data/spec/requests/{user_management_spec.rb → users_spec.rb} +5 -5
  23. data/spec/spec_helper.rb +1 -4
  24. data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +1527 -1596
  25. data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +2942 -2035
  26. data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +254 -70
  27. data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +110 -48
  28. data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +1618 -286
  29. data/spec/vcr/poptart/survey/adds_a_question_to_a_survey.yml +1939 -0
  30. data/spec/vcr/poptart/survey/creates_a_random_survey.yml +318 -0
  31. data/spec/vcr/poptart/survey/creates_an_empty_survey.yml +702 -0
  32. data/spec/vcr/poptart/survey/returns_a_survey_by_id.yml +618 -0
  33. data/spec/vcr/poptart/user/creates_a_user.yml +179 -0
  34. data/spec/vcr/{user/management_creates_a_user.yml → poptart/user/returns_a_user.yml} +72 -69
  35. data/spec/vcr/questions/creates_a_question.yml +186 -0
  36. data/spec/vcr/questions/finds_a_question_by_id.yml +326 -0
  37. data/spec/vcr/questions/finds_a_question_by_key.yml +144 -0
  38. data/spec/vcr/questions/returns_all_answered_survey_questions_for_a_question.yml +1021 -0
  39. data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question.yml +533 -479
  40. data/spec/vcr/survey/questions_answers_a_multiple_choice_question.yml +1454 -0
  41. data/spec/vcr/survey/questions_answers_a_survey_question.yml +1772 -0
  42. data/spec/vcr/survey/questions_creates_and_returns_an_empty_survey.yml +372 -0
  43. data/spec/vcr/survey/questions_finds_survey_question_for_id.yml +3083 -0
  44. data/spec/vcr/survey/questions_returns_all_answered_survey_questions_for_a_question.yml +5756 -0
  45. data/spec/vcr/survey/questions_returns_all_answered_survey_questions_for_a_question_by_key.yml +973 -0
  46. data/spec/vcr/survey/questions_returns_all_answered_survey_questions_for_a_survey.yml +620 -0
  47. metadata +55 -72
  48. data/lib/poptart/boolean_question.rb +0 -14
  49. data/lib/poptart/multiple_response_question.rb +0 -9
  50. data/lib/poptart/range_question.rb +0 -9
  51. data/lib/poptart/time_question.rb +0 -9
  52. data/spec/requests/answering_survey_questions_spec.rb +0 -79
  53. data/spec/requests/answers_spec.rb +0 -45
  54. data/spec/requests/creating_questions_spec.rb +0 -30
@@ -0,0 +1,618 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/surveys
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
+ User-Token:
17
+ - 07f6713cffc7698aa5aad5792fbaaf40c603653138431974b4a32911b0591d5e
18
+ Service-User-Id:
19
+ - 3d963e0ead186f64cafd06c03b3e45b089d3f041fdc6d091569ed3c46c3faa17
20
+ Accept-Encoding:
21
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22
+ Accept:
23
+ - "*/*"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: 'OK '
28
+ headers:
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ X-Ua-Compatible:
36
+ - chrome=1
37
+ Content-Type:
38
+ - application/json; charset=utf-8
39
+ Etag:
40
+ - '"c4b4192f94d7d442b369dfb0f1350671"'
41
+ Cache-Control:
42
+ - max-age=0, private, must-revalidate
43
+ X-Request-Id:
44
+ - e9f5ad6c-6bf9-4836-a6bc-209ae892af10
45
+ X-Runtime:
46
+ - '0.015435'
47
+ Server:
48
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
49
+ Date:
50
+ - Fri, 09 Jan 2015 03:17:42 GMT
51
+ Content-Length:
52
+ - '570'
53
+ Connection:
54
+ - Keep-Alive
55
+ body:
56
+ encoding: UTF-8
57
+ string: |-
58
+ {
59
+ "surveys": [
60
+ {
61
+ "id": 4,
62
+ "service_user_id": "3d963e0ead186f64cafd06c03b3e45b089d3f041fdc6d091569ed3c46c3faa17",
63
+ "_links": {
64
+ "self": {
65
+ "href": "http://localhost:3000/api/surveys/4"
66
+ },
67
+ "survey_questions": {
68
+ "post": {
69
+ "href": "http://localhost:3000/api/surveys/4/survey_questions"
70
+ },
71
+ "put": {
72
+ "href": "http://localhost:3000/api/surveys/4/survey_questions"
73
+ }
74
+ }
75
+ },
76
+ "completed": true,
77
+ "survey_questions": [
78
+
79
+ ]
80
+ }
81
+ ]
82
+ }
83
+ http_version:
84
+ recorded_at: Fri, 09 Jan 2015 03:17:42 GMT
85
+ - request:
86
+ method: get
87
+ uri: http://localhost:3000/api/surveys/5
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ headers:
92
+ User-Agent:
93
+ - Faraday v0.9.0
94
+ Content-Type:
95
+ - application/json
96
+ Api-Token:
97
+ - testing
98
+ User-Token:
99
+ - 322dfdd7074df4217f8b52c38b50dab95c4b09ef1c1dea006784f64f6d956839
100
+ Service-User-Id:
101
+ - f8629056b3c63903ee279ab124acbb65e4b9ba28c50148a2f6582ec3486a72d4
102
+ Accept-Encoding:
103
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
+ Accept:
105
+ - "*/*"
106
+ response:
107
+ status:
108
+ code: 200
109
+ message: 'OK '
110
+ headers:
111
+ X-Frame-Options:
112
+ - SAMEORIGIN
113
+ X-Xss-Protection:
114
+ - 1; mode=block
115
+ X-Content-Type-Options:
116
+ - nosniff
117
+ X-Ua-Compatible:
118
+ - chrome=1
119
+ Content-Type:
120
+ - application/json; charset=utf-8
121
+ Etag:
122
+ - '"7e45c579229ce66e6b667c6fafcc58dd"'
123
+ Cache-Control:
124
+ - max-age=0, private, must-revalidate
125
+ X-Request-Id:
126
+ - 85b14ffd-36ad-4ed7-99d9-94bb9df99da7
127
+ X-Runtime:
128
+ - '0.016636'
129
+ Server:
130
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
131
+ Date:
132
+ - Fri, 09 Jan 2015 03:18:08 GMT
133
+ Content-Length:
134
+ - '467'
135
+ Connection:
136
+ - Keep-Alive
137
+ body:
138
+ encoding: UTF-8
139
+ string: |-
140
+ {
141
+ "id": 5,
142
+ "service_user_id": "f8629056b3c63903ee279ab124acbb65e4b9ba28c50148a2f6582ec3486a72d4",
143
+ "_links": {
144
+ "self": {
145
+ "href": "http://localhost:3000/api/surveys/5"
146
+ },
147
+ "survey_questions": {
148
+ "post": {
149
+ "href": "http://localhost:3000/api/surveys/5/survey_questions"
150
+ },
151
+ "put": {
152
+ "href": "http://localhost:3000/api/surveys/5/survey_questions"
153
+ }
154
+ }
155
+ },
156
+ "completed": true,
157
+ "survey_questions": [
158
+
159
+ ]
160
+ }
161
+ http_version:
162
+ recorded_at: Fri, 09 Jan 2015 03:18:08 GMT
163
+ - request:
164
+ method: get
165
+ uri: http://localhost:3000/api/surveys/7
166
+ body:
167
+ encoding: US-ASCII
168
+ string: ''
169
+ headers:
170
+ User-Agent:
171
+ - Faraday v0.9.0
172
+ Content-Type:
173
+ - application/json
174
+ Api-Token:
175
+ - testing
176
+ User-Token:
177
+ - b16d20c92d09a6b50c62b0b57bee2d93647d2927f5d0aee72c39433170a26df2
178
+ Service-User-Id:
179
+ - 6881a257811e17c1e62f1bc150c497ecdec9b72fc3394c3899ff155957e68c4b
180
+ Accept-Encoding:
181
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
182
+ Accept:
183
+ - "*/*"
184
+ response:
185
+ status:
186
+ code: 200
187
+ message: 'OK '
188
+ headers:
189
+ X-Frame-Options:
190
+ - SAMEORIGIN
191
+ X-Xss-Protection:
192
+ - 1; mode=block
193
+ X-Content-Type-Options:
194
+ - nosniff
195
+ X-Ua-Compatible:
196
+ - chrome=1
197
+ Content-Type:
198
+ - application/json; charset=utf-8
199
+ Etag:
200
+ - '"8bc66859b516ac1a1512f3f0b15c606a"'
201
+ Cache-Control:
202
+ - max-age=0, private, must-revalidate
203
+ X-Request-Id:
204
+ - bf7bf8c7-269a-4a56-bd63-ece88f66a52a
205
+ X-Runtime:
206
+ - '0.026465'
207
+ Server:
208
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
209
+ Date:
210
+ - Fri, 09 Jan 2015 03:18:51 GMT
211
+ Content-Length:
212
+ - '467'
213
+ Connection:
214
+ - Keep-Alive
215
+ body:
216
+ encoding: UTF-8
217
+ string: |-
218
+ {
219
+ "id": 7,
220
+ "service_user_id": "6881a257811e17c1e62f1bc150c497ecdec9b72fc3394c3899ff155957e68c4b",
221
+ "_links": {
222
+ "self": {
223
+ "href": "http://localhost:3000/api/surveys/7"
224
+ },
225
+ "survey_questions": {
226
+ "post": {
227
+ "href": "http://localhost:3000/api/surveys/7/survey_questions"
228
+ },
229
+ "put": {
230
+ "href": "http://localhost:3000/api/surveys/7/survey_questions"
231
+ }
232
+ }
233
+ },
234
+ "completed": true,
235
+ "survey_questions": [
236
+
237
+ ]
238
+ }
239
+ http_version:
240
+ recorded_at: Fri, 09 Jan 2015 03:18:51 GMT
241
+ - request:
242
+ method: get
243
+ uri: http://localhost:3000/api/surveys/8
244
+ body:
245
+ encoding: US-ASCII
246
+ string: ''
247
+ headers:
248
+ User-Agent:
249
+ - Faraday v0.9.0
250
+ Content-Type:
251
+ - application/json
252
+ Api-Token:
253
+ - testing
254
+ User-Token:
255
+ - f70383e00e4932d1b8ed087148cf9c73034396f1b74814123280eaac1b1683de
256
+ Service-User-Id:
257
+ - 0743243a2274148ccdcb5aa896236ea5d2d75fa74c88d01d3278d366e1cb0d6e
258
+ Accept-Encoding:
259
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
260
+ Accept:
261
+ - "*/*"
262
+ response:
263
+ status:
264
+ code: 200
265
+ message: 'OK '
266
+ headers:
267
+ X-Frame-Options:
268
+ - SAMEORIGIN
269
+ X-Xss-Protection:
270
+ - 1; mode=block
271
+ X-Content-Type-Options:
272
+ - nosniff
273
+ X-Ua-Compatible:
274
+ - chrome=1
275
+ Content-Type:
276
+ - application/json; charset=utf-8
277
+ Etag:
278
+ - '"f48252b06dc6857db13fbbe9fe751295"'
279
+ Cache-Control:
280
+ - max-age=0, private, must-revalidate
281
+ X-Request-Id:
282
+ - 7106c722-b838-47f9-8bfa-bc0fe0b8b8c1
283
+ X-Runtime:
284
+ - '0.013674'
285
+ Server:
286
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
287
+ Date:
288
+ - Fri, 09 Jan 2015 03:19:15 GMT
289
+ Content-Length:
290
+ - '467'
291
+ Connection:
292
+ - Keep-Alive
293
+ body:
294
+ encoding: UTF-8
295
+ string: |-
296
+ {
297
+ "id": 8,
298
+ "service_user_id": "0743243a2274148ccdcb5aa896236ea5d2d75fa74c88d01d3278d366e1cb0d6e",
299
+ "_links": {
300
+ "self": {
301
+ "href": "http://localhost:3000/api/surveys/8"
302
+ },
303
+ "survey_questions": {
304
+ "post": {
305
+ "href": "http://localhost:3000/api/surveys/8/survey_questions"
306
+ },
307
+ "put": {
308
+ "href": "http://localhost:3000/api/surveys/8/survey_questions"
309
+ }
310
+ }
311
+ },
312
+ "completed": true,
313
+ "survey_questions": [
314
+
315
+ ]
316
+ }
317
+ http_version:
318
+ recorded_at: Fri, 09 Jan 2015 03:19:15 GMT
319
+ - request:
320
+ method: get
321
+ uri: http://localhost:3000/api/surveys/80
322
+ body:
323
+ encoding: US-ASCII
324
+ string: ''
325
+ headers:
326
+ User-Agent:
327
+ - Faraday v0.9.0
328
+ Content-Type:
329
+ - application/json
330
+ Api-Token:
331
+ - testing
332
+ User-Token:
333
+ - a27e522504af228e19a7fc9d0df983bd45383d437bcbabdaf2de1ad0adb6863c
334
+ Service-User-Id:
335
+ - a6221eb6831dcb205edae0d69d454fae10a7864111d433b76ced45e3c9758b18
336
+ Accept-Encoding:
337
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
338
+ Accept:
339
+ - "*/*"
340
+ response:
341
+ status:
342
+ code: 200
343
+ message: 'OK '
344
+ headers:
345
+ X-Frame-Options:
346
+ - SAMEORIGIN
347
+ X-Xss-Protection:
348
+ - 1; mode=block
349
+ X-Content-Type-Options:
350
+ - nosniff
351
+ X-Ua-Compatible:
352
+ - chrome=1
353
+ Content-Type:
354
+ - application/json; charset=utf-8
355
+ Etag:
356
+ - '"7ac751a917690763a5f4e68257368df9"'
357
+ Cache-Control:
358
+ - max-age=0, private, must-revalidate
359
+ X-Request-Id:
360
+ - e7cf89bb-2943-4bc7-9936-2468d65e2791
361
+ X-Runtime:
362
+ - '0.011714'
363
+ Server:
364
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
365
+ Date:
366
+ - Sun, 25 Jan 2015 13:46:01 GMT
367
+ Content-Length:
368
+ - '421'
369
+ Connection:
370
+ - Keep-Alive
371
+ body:
372
+ encoding: UTF-8
373
+ string: |-
374
+ {
375
+ "id": 80,
376
+ "service_user_id": "a6221eb6831dcb205edae0d69d454fae10a7864111d433b76ced45e3c9758b18",
377
+ "_links": [
378
+ {
379
+ "href": "http://localhost:3000/api/surveys/80",
380
+ "rel": "self",
381
+ "method": "GET"
382
+ },
383
+ {
384
+ "href": "http://localhost:3000/api/surveys/80/survey_questions",
385
+ "rel": "survey-question",
386
+ "method": "POST"
387
+ }
388
+ ],
389
+ "completed": true,
390
+ "survey_questions": [
391
+
392
+ ]
393
+ }
394
+ http_version:
395
+ recorded_at: Sun, 25 Jan 2015 13:46:01 GMT
396
+ - request:
397
+ method: post
398
+ uri: http://localhost:3000/api/user
399
+ body:
400
+ encoding: UTF-8
401
+ string: "{}"
402
+ headers:
403
+ User-Agent:
404
+ - Faraday v0.9.0
405
+ Content-Type:
406
+ - application/json
407
+ Api-Token:
408
+ - testing
409
+ User-Token:
410
+ - 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
411
+ Service-User-Id:
412
+ - fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
413
+ Accept-Encoding:
414
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
415
+ Accept:
416
+ - "*/*"
417
+ response:
418
+ status:
419
+ code: 201
420
+ message: 'Created '
421
+ headers:
422
+ X-Frame-Options:
423
+ - SAMEORIGIN
424
+ X-Xss-Protection:
425
+ - 1; mode=block
426
+ X-Content-Type-Options:
427
+ - nosniff
428
+ X-Ua-Compatible:
429
+ - chrome=1
430
+ Content-Type:
431
+ - application/json; charset=utf-8
432
+ Etag:
433
+ - '"b960ad0e627ac984185568e9954d3144"'
434
+ Cache-Control:
435
+ - max-age=0, private, must-revalidate
436
+ X-Request-Id:
437
+ - ce92f90c-4c90-4488-9520-a29aadfa1a41
438
+ X-Runtime:
439
+ - '0.012047'
440
+ Server:
441
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
442
+ Date:
443
+ - Sun, 25 Jan 2015 13:55:25 GMT
444
+ Content-Length:
445
+ - '292'
446
+ Connection:
447
+ - Keep-Alive
448
+ body:
449
+ encoding: UTF-8
450
+ string: |-
451
+ {
452
+ "service_user_id": "fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac",
453
+ "_links": [
454
+ {
455
+ "href": "http://localhost:3000/api/user",
456
+ "rel": "self",
457
+ "method": "GET"
458
+ }
459
+ ],
460
+ "token": "413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03"
461
+ }
462
+ http_version:
463
+ recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
464
+ - request:
465
+ method: post
466
+ uri: http://localhost:3000/api/surveys
467
+ body:
468
+ encoding: UTF-8
469
+ string: "{}"
470
+ headers:
471
+ User-Agent:
472
+ - Faraday v0.9.0
473
+ Content-Type:
474
+ - application/json
475
+ Api-Token:
476
+ - testing
477
+ User-Token:
478
+ - 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
479
+ Service-User-Id:
480
+ - fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
481
+ Accept-Encoding:
482
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
483
+ Accept:
484
+ - "*/*"
485
+ response:
486
+ status:
487
+ code: 201
488
+ message: 'Created '
489
+ headers:
490
+ X-Frame-Options:
491
+ - SAMEORIGIN
492
+ X-Xss-Protection:
493
+ - 1; mode=block
494
+ X-Content-Type-Options:
495
+ - nosniff
496
+ X-Ua-Compatible:
497
+ - chrome=1
498
+ Content-Type:
499
+ - application/json; charset=utf-8
500
+ Etag:
501
+ - '"e16b1eea13225fc93a38aa46708e1485"'
502
+ Cache-Control:
503
+ - max-age=0, private, must-revalidate
504
+ X-Request-Id:
505
+ - 116580f4-74d0-4ffa-a431-2a551c0015f0
506
+ X-Runtime:
507
+ - '0.012009'
508
+ Server:
509
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
510
+ Date:
511
+ - Sun, 25 Jan 2015 13:55:25 GMT
512
+ Content-Length:
513
+ - '422'
514
+ Connection:
515
+ - Keep-Alive
516
+ body:
517
+ encoding: UTF-8
518
+ string: |-
519
+ {
520
+ "id": 83,
521
+ "service_user_id": "fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac",
522
+ "_links": [
523
+ {
524
+ "href": "http://localhost:3000/api/surveys/83",
525
+ "rel": "self",
526
+ "method": "GET"
527
+ },
528
+ {
529
+ "href": "http://localhost:3000/api/surveys/83/survey_questions",
530
+ "rel": "survey-questions",
531
+ "method": "POST"
532
+ }
533
+ ],
534
+ "completed": true,
535
+ "survey_questions": [
536
+
537
+ ]
538
+ }
539
+ http_version:
540
+ recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
541
+ - request:
542
+ method: get
543
+ uri: http://localhost:3000/api/surveys/83
544
+ body:
545
+ encoding: US-ASCII
546
+ string: ''
547
+ headers:
548
+ User-Agent:
549
+ - Faraday v0.9.0
550
+ Content-Type:
551
+ - application/json
552
+ Api-Token:
553
+ - testing
554
+ User-Token:
555
+ - 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
556
+ Service-User-Id:
557
+ - fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
558
+ Accept-Encoding:
559
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
560
+ Accept:
561
+ - "*/*"
562
+ response:
563
+ status:
564
+ code: 200
565
+ message: 'OK '
566
+ headers:
567
+ X-Frame-Options:
568
+ - SAMEORIGIN
569
+ X-Xss-Protection:
570
+ - 1; mode=block
571
+ X-Content-Type-Options:
572
+ - nosniff
573
+ X-Ua-Compatible:
574
+ - chrome=1
575
+ Content-Type:
576
+ - application/json; charset=utf-8
577
+ Etag:
578
+ - '"e16b1eea13225fc93a38aa46708e1485"'
579
+ Cache-Control:
580
+ - max-age=0, private, must-revalidate
581
+ X-Request-Id:
582
+ - d57fd5c0-6566-46b0-b067-3276d62fa438
583
+ X-Runtime:
584
+ - '0.010477'
585
+ Server:
586
+ - WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
587
+ Date:
588
+ - Sun, 25 Jan 2015 13:55:25 GMT
589
+ Content-Length:
590
+ - '422'
591
+ Connection:
592
+ - Keep-Alive
593
+ body:
594
+ encoding: UTF-8
595
+ string: |-
596
+ {
597
+ "id": 83,
598
+ "service_user_id": "fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac",
599
+ "_links": [
600
+ {
601
+ "href": "http://localhost:3000/api/surveys/83",
602
+ "rel": "self",
603
+ "method": "GET"
604
+ },
605
+ {
606
+ "href": "http://localhost:3000/api/surveys/83/survey_questions",
607
+ "rel": "survey-questions",
608
+ "method": "POST"
609
+ }
610
+ ],
611
+ "completed": true,
612
+ "survey_questions": [
613
+
614
+ ]
615
+ }
616
+ http_version:
617
+ recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
618
+ recorded_with: VCR 2.9.3