redbooth-ruby 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/spec/cassettes/Redbooth_Me/_initialize/.yml +48 -0
  3. data/spec/cassettes/Redbooth_Me/_show/.yml +48 -0
  4. data/spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +48 -0
  5. data/spec/cassettes/Redbooth_Me/_update/.yml +97 -0
  6. data/spec/cassettes/Redbooth_Me/_update/integration/.yml +97 -0
  7. data/spec/cassettes/Redbooth_Organization/_create/.yml +47 -0
  8. data/spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml +47 -0
  9. data/spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +123 -0
  10. data/spec/cassettes/Redbooth_Organization/_index/.yml +58 -0
  11. data/spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +58 -0
  12. data/spec/cassettes/Redbooth_Organization/_initialize/.yml +64 -0
  13. data/spec/cassettes/Redbooth_Organization/_show/.yml +64 -0
  14. data/spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +64 -0
  15. data/spec/cassettes/Redbooth_Organization/_update/.yml +48 -0
  16. data/spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +48 -0
  17. data/spec/cassettes/Redbooth_Person/_create/integration/.yml +83 -0
  18. data/spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml +83 -0
  19. data/spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml +83 -0
  20. data/spec/cassettes/Redbooth_Person/_index/.yml +127 -0
  21. data/spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +54 -0
  22. data/spec/cassettes/Redbooth_Person/_initialize/.yml +117 -0
  23. data/spec/cassettes/Redbooth_Person/_show/.yml +117 -0
  24. data/spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +44 -0
  25. data/spec/cassettes/Redbooth_Person/_update/.yml +163 -0
  26. data/spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +294 -0
  27. data/spec/cassettes/Redbooth_Project/_create/.yml +47 -0
  28. data/spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml +47 -0
  29. data/spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +2296 -0
  30. data/spec/cassettes/Redbooth_Project/_index/.yml +62 -0
  31. data/spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +62 -0
  32. data/spec/cassettes/Redbooth_Project/_initialize/.yml +44 -0
  33. data/spec/cassettes/Redbooth_Project/_show/.yml +44 -0
  34. data/spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +44 -0
  35. data/spec/cassettes/Redbooth_Project/_update/.yml +47 -0
  36. data/spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +47 -0
  37. data/spec/cassettes/Redbooth_Request_Collection/_all/.yml +59 -0
  38. data/spec/cassettes/Redbooth_Request_Collection/_count/.yml +59 -0
  39. data/spec/cassettes/Redbooth_Request_Collection/_current_page/.yml +59 -0
  40. data/spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml +59 -0
  41. data/spec/cassettes/Redbooth_Request_Collection/_initialize/.yml +59 -0
  42. data/spec/cassettes/Redbooth_Request_Collection/_next_page/.yml +106 -0
  43. data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml +59 -0
  44. data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml +59 -0
  45. data/spec/cassettes/Redbooth_Request_Collection/_per_page/.yml +59 -0
  46. data/spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml +59 -0
  47. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml +115 -0
  48. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml +59 -0
  49. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml +159 -0
  50. data/spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml +59 -0
  51. data/spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml +59 -0
  52. data/spec/cassettes/Redbooth_Task/_create/.yml +47 -0
  53. data/spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
  54. data/spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
  55. data/spec/cassettes/Redbooth_Task/_index/.yml +1037 -0
  56. data/spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +437 -0
  57. data/spec/cassettes/Redbooth_Task/_initialize/.yml +47 -0
  58. data/spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  59. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
  60. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml +47 -0
  61. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml +47 -0
  62. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
  63. data/spec/cassettes/Redbooth_Task/_update/.yml +47 -0
  64. data/spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  65. data/spec/cassettes/Redbooth_User/_create/.yml +84 -0
  66. data/spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
  67. data/spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  68. data/spec/cassettes/Redbooth_User/_create/name/.yml +47 -0
  69. data/spec/cassettes/Redbooth_User/_create/project_id/.yml +47 -0
  70. data/spec/cassettes/Redbooth_User/_create/task_list_id/.yml +47 -0
  71. data/spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
  72. data/spec/cassettes/Redbooth_User/_index/.yml +413 -0
  73. data/spec/cassettes/Redbooth_User/_index/class/.yml +400 -0
  74. data/spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +400 -0
  75. data/spec/cassettes/Redbooth_User/_initialize/.yml +88 -0
  76. data/spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml +47 -0
  77. data/spec/cassettes/Redbooth_User/_initialize/description/.yml +47 -0
  78. data/spec/cassettes/Redbooth_User/_initialize/due_on/.yml +47 -0
  79. data/spec/cassettes/Redbooth_User/_initialize/id/.yml +47 -0
  80. data/spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml +44 -0
  81. data/spec/cassettes/Redbooth_User/_initialize/name/.yml +47 -0
  82. data/spec/cassettes/Redbooth_User/_initialize/project_id/.yml +47 -0
  83. data/spec/cassettes/Redbooth_User/_show/.yml +44 -0
  84. data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  85. data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +88 -0
  86. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
  87. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml +47 -0
  88. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml +47 -0
  89. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
  90. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml +393 -0
  91. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml +393 -0
  92. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml +393 -0
  93. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml +393 -0
  94. data/spec/cassettes/Redbooth_User/_update/.yml +47 -0
  95. data/spec/cassettes/Redbooth_User/_update/id/.yml +47 -0
  96. data/spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  97. data/spec/cassettes/Redbooth_User/_update/name/.yml +47 -0
  98. data/spec/fixtures/hola.txt +1 -0
  99. data/spec/redbooth/base_spec.rb +12 -0
  100. data/spec/redbooth/client_spec.rb +69 -0
  101. data/spec/redbooth/me_spec.rb +56 -0
  102. data/spec/redbooth/organization_spec.rb +80 -0
  103. data/spec/redbooth/person_spec.rb +85 -0
  104. data/spec/redbooth/project_spec.rb +80 -0
  105. data/spec/redbooth/request/base_spec.rb +53 -0
  106. data/spec/redbooth/request/collection_spec.rb +104 -0
  107. data/spec/redbooth/request/connection_spec.rb +82 -0
  108. data/spec/redbooth/request/info_spec.rb +27 -0
  109. data/spec/redbooth/request/response_spec.rb +32 -0
  110. data/spec/redbooth/request/validator_spec.rb +45 -0
  111. data/spec/redbooth/task_spec.rb +90 -0
  112. data/spec/redbooth/user_spec.rb +32 -0
  113. data/spec/redbooth_spec.rb +69 -0
  114. data/spec/shared/authentication_context.rb +24 -0
  115. data/spec/spec_helper.rb +22 -0
  116. metadata +370 -0
@@ -0,0 +1,117 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/persons/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 404
21
+ message: Not Found
22
+ headers:
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Content-Length:
26
+ - '775'
27
+ X-Request-Id:
28
+ - 2cc9f5f03802f47ced6c79263d6408cd
29
+ X-Runtime:
30
+ - '0.122241'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - thin 1.6.1 codename Death Proof
35
+ body:
36
+ encoding: UTF-8
37
+ string: |
38
+ <!DOCTYPE html>
39
+ <html lang="en">
40
+ <head>
41
+ <meta charset="utf-8" />
42
+ <title>Action Controller: Exception caught</title>
43
+ <style>
44
+ body { background-color: #fff; color: #333; }
45
+
46
+ body, p, ol, ul, td {
47
+ font-family: helvetica, verdana, arial, sans-serif;
48
+ font-size: 13px;
49
+ line-height: 18px;
50
+ }
51
+
52
+ pre {
53
+ background-color: #eee;
54
+ padding: 10px;
55
+ font-size: 11px;
56
+ white-space: pre-wrap;
57
+ }
58
+
59
+ a { color: #000; }
60
+ a:visited { color: #666; }
61
+ a:hover { color: #fff; background-color:#000; }
62
+ </style>
63
+ </head>
64
+ <body>
65
+
66
+ <h1>Routing Error</h1>
67
+ <p><pre>No route matches [GET] &quot;/api/3/persons/1&quot;</pre></p>
68
+ <p>
69
+ Try running <code>rake routes</code> for more information on available routes.
70
+ </p>
71
+
72
+ </body>
73
+ </html>
74
+ http_version:
75
+ recorded_at: Thu, 06 Nov 2014 11:30:56 GMT
76
+ - request:
77
+ method: get
78
+ uri: http://localhost:3000/api/3/people/1
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ''
82
+ headers:
83
+ User-Agent:
84
+ - Faraday v0.9.0
85
+ Authorization:
86
+ - Bearer _frank_access_token_
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ Content-Type:
97
+ - application/json; charset=utf-8
98
+ X-Ua-Compatible:
99
+ - IE=Edge,chrome=1
100
+ Etag:
101
+ - '"76a22e009ab3644d3f39b7ec99cf9af7"'
102
+ Cache-Control:
103
+ - max-age=0, private, must-revalidate
104
+ X-Request-Id:
105
+ - 5e3cff3d865214df9afa8d4303af64ec
106
+ X-Runtime:
107
+ - '1.243233'
108
+ Connection:
109
+ - close
110
+ Server:
111
+ - thin 1.6.1 codename Death Proof
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"type":"Person","created_at":1415262332,"updated_at":1415262332,"id":1,"user_id":1,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
115
+ http_version:
116
+ recorded_at: Thu, 06 Nov 2014 11:32:50 GMT
117
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,117 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/persons/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 404
21
+ message: Not Found
22
+ headers:
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Content-Length:
26
+ - '775'
27
+ X-Request-Id:
28
+ - e01c48dd41c01482b648cc4f07a22773
29
+ X-Runtime:
30
+ - '0.123153'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - thin 1.6.1 codename Death Proof
35
+ body:
36
+ encoding: UTF-8
37
+ string: |
38
+ <!DOCTYPE html>
39
+ <html lang="en">
40
+ <head>
41
+ <meta charset="utf-8" />
42
+ <title>Action Controller: Exception caught</title>
43
+ <style>
44
+ body { background-color: #fff; color: #333; }
45
+
46
+ body, p, ol, ul, td {
47
+ font-family: helvetica, verdana, arial, sans-serif;
48
+ font-size: 13px;
49
+ line-height: 18px;
50
+ }
51
+
52
+ pre {
53
+ background-color: #eee;
54
+ padding: 10px;
55
+ font-size: 11px;
56
+ white-space: pre-wrap;
57
+ }
58
+
59
+ a { color: #000; }
60
+ a:visited { color: #666; }
61
+ a:hover { color: #fff; background-color:#000; }
62
+ </style>
63
+ </head>
64
+ <body>
65
+
66
+ <h1>Routing Error</h1>
67
+ <p><pre>No route matches [GET] &quot;/api/3/persons/1&quot;</pre></p>
68
+ <p>
69
+ Try running <code>rake routes</code> for more information on available routes.
70
+ </p>
71
+
72
+ </body>
73
+ </html>
74
+ http_version:
75
+ recorded_at: Thu, 06 Nov 2014 11:30:56 GMT
76
+ - request:
77
+ method: get
78
+ uri: http://localhost:3000/api/3/people/1
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ''
82
+ headers:
83
+ User-Agent:
84
+ - Faraday v0.9.0
85
+ Authorization:
86
+ - Bearer _frank_access_token_
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ Content-Type:
97
+ - application/json; charset=utf-8
98
+ X-Ua-Compatible:
99
+ - IE=Edge,chrome=1
100
+ Etag:
101
+ - '"76a22e009ab3644d3f39b7ec99cf9af7"'
102
+ Cache-Control:
103
+ - max-age=0, private, must-revalidate
104
+ X-Request-Id:
105
+ - 37fe93c0af8983d0ec1defee903a3f6d
106
+ X-Runtime:
107
+ - '0.180048'
108
+ Connection:
109
+ - close
110
+ Server:
111
+ - thin 1.6.1 codename Death Proof
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"type":"Person","created_at":1415262332,"updated_at":1415262332,"id":1,"user_id":1,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
115
+ http_version:
116
+ recorded_at: Thu, 06 Nov 2014 11:32:50 GMT
117
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/people/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge,chrome=1
27
+ Etag:
28
+ - '"76a22e009ab3644d3f39b7ec99cf9af7"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - e49bd526ecab7bbd076ff11a9fc3628d
33
+ X-Runtime:
34
+ - '0.170326'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.6.1 codename Death Proof
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"type":"Person","created_at":1415262332,"updated_at":1415262332,"id":1,"user_id":1,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
42
+ http_version:
43
+ recorded_at: Thu, 06 Nov 2014 11:32:50 GMT
44
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,163 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:3000/api/3/persons/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: role=1
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
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: 404
23
+ message: Not Found
24
+ headers:
25
+ Content-Type:
26
+ - text/html; charset=utf-8
27
+ Content-Length:
28
+ - '775'
29
+ X-Request-Id:
30
+ - f565000abe30746895befe2de6d6da34
31
+ X-Runtime:
32
+ - '0.145155'
33
+ Connection:
34
+ - keep-alive
35
+ Server:
36
+ - thin 1.6.1 codename Death Proof
37
+ body:
38
+ encoding: UTF-8
39
+ string: |
40
+ <!DOCTYPE html>
41
+ <html lang="en">
42
+ <head>
43
+ <meta charset="utf-8" />
44
+ <title>Action Controller: Exception caught</title>
45
+ <style>
46
+ body { background-color: #fff; color: #333; }
47
+
48
+ body, p, ol, ul, td {
49
+ font-family: helvetica, verdana, arial, sans-serif;
50
+ font-size: 13px;
51
+ line-height: 18px;
52
+ }
53
+
54
+ pre {
55
+ background-color: #eee;
56
+ padding: 10px;
57
+ font-size: 11px;
58
+ white-space: pre-wrap;
59
+ }
60
+
61
+ a { color: #000; }
62
+ a:visited { color: #666; }
63
+ a:hover { color: #fff; background-color:#000; }
64
+ </style>
65
+ </head>
66
+ <body>
67
+
68
+ <h1>Routing Error</h1>
69
+ <p><pre>No route matches [PUT] &quot;/api/3/persons/2&quot;</pre></p>
70
+ <p>
71
+ Try running <code>rake routes</code> for more information on available routes.
72
+ </p>
73
+
74
+ </body>
75
+ </html>
76
+ http_version:
77
+ recorded_at: Thu, 06 Nov 2014 11:30:56 GMT
78
+ - request:
79
+ method: put
80
+ uri: http://localhost:3000/api/3/people/2
81
+ body:
82
+ encoding: UTF-8
83
+ string: role=1
84
+ headers:
85
+ User-Agent:
86
+ - Faraday v0.9.0
87
+ Authorization:
88
+ - Bearer _frank_access_token_
89
+ Content-Type:
90
+ - application/x-www-form-urlencoded
91
+ Accept-Encoding:
92
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
+ Accept:
94
+ - "*/*"
95
+ response:
96
+ status:
97
+ code: 422
98
+ message: ''
99
+ headers:
100
+ Content-Type:
101
+ - application/json; charset=utf-8
102
+ X-Ua-Compatible:
103
+ - IE=Edge,chrome=1
104
+ Cache-Control:
105
+ - no-cache
106
+ X-Request-Id:
107
+ - dcdcc9c88fc079c821bd0a73d176bc2b
108
+ X-Runtime:
109
+ - '0.514250'
110
+ Connection:
111
+ - close
112
+ Server:
113
+ - thin 1.6.1 codename Death Proof
114
+ body:
115
+ encoding: UTF-8
116
+ string: '{"error":{"message":"Unprocessable Entity","errors":{"base":["A project
117
+ needs at least one administrator"]}}}'
118
+ http_version:
119
+ recorded_at: Thu, 06 Nov 2014 11:32:51 GMT
120
+ - request:
121
+ method: put
122
+ uri: http://localhost:3000/api/3/people/6
123
+ body:
124
+ encoding: UTF-8
125
+ string: role=admin
126
+ headers:
127
+ User-Agent:
128
+ - Faraday v0.9.0
129
+ Authorization:
130
+ - Bearer _frank_access_token_
131
+ Content-Type:
132
+ - application/x-www-form-urlencoded
133
+ Accept-Encoding:
134
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
135
+ Accept:
136
+ - "*/*"
137
+ response:
138
+ status:
139
+ code: 200
140
+ message: OK
141
+ headers:
142
+ Content-Type:
143
+ - application/json; charset=utf-8
144
+ X-Ua-Compatible:
145
+ - IE=Edge,chrome=1
146
+ Etag:
147
+ - '"97ee67550d4a167636ea26af40d4d1cd"'
148
+ Cache-Control:
149
+ - max-age=0, private, must-revalidate
150
+ X-Request-Id:
151
+ - f0082a68505a68aa6372520f6a516863
152
+ X-Runtime:
153
+ - '0.279611'
154
+ Connection:
155
+ - close
156
+ Server:
157
+ - thin 1.6.1 codename Death Proof
158
+ body:
159
+ encoding: UTF-8
160
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415274473,"id":6,"user_id":2,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
161
+ http_version:
162
+ recorded_at: Thu, 06 Nov 2014 11:47:53 GMT
163
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,294 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:3000/api/3/people/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
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
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ X-Ua-Compatible:
28
+ - IE=Edge,chrome=1
29
+ Etag:
30
+ - '"7ec9d1f5268bded26883b288f08fc9d7"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 8d239cfc452f4c29cf3c68fe2f754872
35
+ X-Runtime:
36
+ - '0.955681'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415274389,"id":2,"user_id":1,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
44
+ http_version:
45
+ recorded_at: Thu, 06 Nov 2014 11:46:30 GMT
46
+ - request:
47
+ method: get
48
+ uri: http://localhost:3000/api/3/people/2
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.9.0
55
+ Authorization:
56
+ - Bearer _frank_access_token_
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ X-Ua-Compatible:
69
+ - IE=Edge,chrome=1
70
+ Etag:
71
+ - '"7ec9d1f5268bded26883b288f08fc9d7"'
72
+ Cache-Control:
73
+ - max-age=0, private, must-revalidate
74
+ X-Request-Id:
75
+ - 3a874230c789f6d91916afca956a2b6a
76
+ X-Runtime:
77
+ - '0.241747'
78
+ Connection:
79
+ - close
80
+ Server:
81
+ - thin 1.6.1 codename Death Proof
82
+ body:
83
+ encoding: UTF-8
84
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415274389,"id":2,"user_id":1,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
85
+ http_version:
86
+ recorded_at: Thu, 06 Nov 2014 11:46:37 GMT
87
+ - request:
88
+ method: get
89
+ uri: http://localhost:3000/api/3/people/3
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ User-Agent:
95
+ - Faraday v0.9.0
96
+ Authorization:
97
+ - Bearer _frank_access_token_
98
+ Accept-Encoding:
99
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
100
+ Accept:
101
+ - "*/*"
102
+ response:
103
+ status:
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Ua-Compatible:
110
+ - IE=Edge,chrome=1
111
+ Etag:
112
+ - '"5f163a9dc06b80679fa90d8c4428fceb"'
113
+ Cache-Control:
114
+ - max-age=0, private, must-revalidate
115
+ X-Request-Id:
116
+ - ff335ab3d8dcbce0e4ff82646be345a4
117
+ X-Runtime:
118
+ - '0.169609'
119
+ Connection:
120
+ - close
121
+ Server:
122
+ - thin 1.6.1 codename Death Proof
123
+ body:
124
+ encoding: UTF-8
125
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":3,"user_id":1,"project_id":3,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
126
+ http_version:
127
+ recorded_at: Thu, 06 Nov 2014 11:46:50 GMT
128
+ - request:
129
+ method: get
130
+ uri: http://localhost:3000/api/3/people/4
131
+ body:
132
+ encoding: US-ASCII
133
+ string: ''
134
+ headers:
135
+ User-Agent:
136
+ - Faraday v0.9.0
137
+ Authorization:
138
+ - Bearer _frank_access_token_
139
+ Accept-Encoding:
140
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
141
+ Accept:
142
+ - "*/*"
143
+ response:
144
+ status:
145
+ code: 200
146
+ message: OK
147
+ headers:
148
+ Content-Type:
149
+ - application/json; charset=utf-8
150
+ X-Ua-Compatible:
151
+ - IE=Edge,chrome=1
152
+ Etag:
153
+ - '"087d763b7721bdf95319a42f5331eea4"'
154
+ Cache-Control:
155
+ - max-age=0, private, must-revalidate
156
+ X-Request-Id:
157
+ - 2125766e24ee48092c2dee48d8a67e7a
158
+ X-Runtime:
159
+ - '0.157351'
160
+ Connection:
161
+ - close
162
+ Server:
163
+ - thin 1.6.1 codename Death Proof
164
+ body:
165
+ encoding: UTF-8
166
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":4,"user_id":1,"project_id":4,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
167
+ http_version:
168
+ recorded_at: Thu, 06 Nov 2014 11:46:58 GMT
169
+ - request:
170
+ method: get
171
+ uri: http://localhost:3000/api/3/people/5
172
+ body:
173
+ encoding: US-ASCII
174
+ string: ''
175
+ headers:
176
+ User-Agent:
177
+ - Faraday v0.9.0
178
+ Authorization:
179
+ - Bearer _frank_access_token_
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
+ Content-Type:
190
+ - application/json; charset=utf-8
191
+ X-Ua-Compatible:
192
+ - IE=Edge,chrome=1
193
+ Etag:
194
+ - '"80a040ad536a49d139bb7ce09505028d"'
195
+ Cache-Control:
196
+ - max-age=0, private, must-revalidate
197
+ X-Request-Id:
198
+ - 9f317d56edad9210bde868af489bf78a
199
+ X-Runtime:
200
+ - '1.169524'
201
+ Connection:
202
+ - close
203
+ Server:
204
+ - thin 1.6.1 codename Death Proof
205
+ body:
206
+ encoding: UTF-8
207
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":5,"user_id":1,"project_id":5,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
208
+ http_version:
209
+ recorded_at: Thu, 06 Nov 2014 11:47:21 GMT
210
+ - request:
211
+ method: get
212
+ uri: http://localhost:3000/api/3/people/6
213
+ body:
214
+ encoding: US-ASCII
215
+ string: ''
216
+ headers:
217
+ User-Agent:
218
+ - Faraday v0.9.0
219
+ Authorization:
220
+ - Bearer _frank_access_token_
221
+ Accept-Encoding:
222
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
223
+ Accept:
224
+ - "*/*"
225
+ response:
226
+ status:
227
+ code: 200
228
+ message: OK
229
+ headers:
230
+ Content-Type:
231
+ - application/json; charset=utf-8
232
+ X-Ua-Compatible:
233
+ - IE=Edge,chrome=1
234
+ Etag:
235
+ - '"0d0a14097feb927ae78920ea2e68276f"'
236
+ Cache-Control:
237
+ - max-age=0, private, must-revalidate
238
+ X-Request-Id:
239
+ - 94af7fdc62b18d31d75402c1f7a35f22
240
+ X-Runtime:
241
+ - '0.172697'
242
+ Connection:
243
+ - close
244
+ Server:
245
+ - thin 1.6.1 codename Death Proof
246
+ body:
247
+ encoding: UTF-8
248
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":6,"user_id":2,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"}'
249
+ http_version:
250
+ recorded_at: Thu, 06 Nov 2014 11:47:25 GMT
251
+ - request:
252
+ method: put
253
+ uri: http://localhost:3000/api/3/people/6
254
+ body:
255
+ encoding: UTF-8
256
+ string: role=admin
257
+ headers:
258
+ User-Agent:
259
+ - Faraday v0.9.0
260
+ Authorization:
261
+ - Bearer _frank_access_token_
262
+ Content-Type:
263
+ - application/x-www-form-urlencoded
264
+ Accept-Encoding:
265
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
266
+ Accept:
267
+ - "*/*"
268
+ response:
269
+ status:
270
+ code: 200
271
+ message: OK
272
+ headers:
273
+ Content-Type:
274
+ - application/json; charset=utf-8
275
+ X-Ua-Compatible:
276
+ - IE=Edge,chrome=1
277
+ Etag:
278
+ - '"b325de9b7aa5308f04477b2eaff6f99d"'
279
+ Cache-Control:
280
+ - max-age=0, private, must-revalidate
281
+ X-Request-Id:
282
+ - c7fe3fbc89bf64736872574c8a0af433
283
+ X-Runtime:
284
+ - '0.197365'
285
+ Connection:
286
+ - close
287
+ Server:
288
+ - thin 1.6.1 codename Death Proof
289
+ body:
290
+ encoding: UTF-8
291
+ string: '{"type":"Person","created_at":1415262336,"updated_at":1415274530,"id":6,"user_id":2,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}'
292
+ http_version:
293
+ recorded_at: Thu, 06 Nov 2014 11:48:50 GMT
294
+ recorded_with: VCR 2.9.3