repia 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +34 -0
  3. data/lib/repia/core.rb +81 -0
  4. data/lib/repia/errors.rb +12 -0
  5. data/lib/repia/version.rb +3 -0
  6. data/lib/repia.rb +5 -0
  7. data/lib/tasks/repia_tasks.rake +4 -0
  8. data/test/dummy/README.rdoc +28 -0
  9. data/test/dummy/Rakefile +6 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/javascripts/dummies.js +2 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/test/dummy/app/assets/stylesheets/dummies.css +4 -0
  14. data/test/dummy/app/controllers/application_controller.rb +5 -0
  15. data/test/dummy/app/controllers/dummies_controller.rb +26 -0
  16. data/test/dummy/app/helpers/application_helper.rb +2 -0
  17. data/test/dummy/app/helpers/dummies_helper.rb +2 -0
  18. data/test/dummy/app/models/unique_model.rb +3 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  20. data/test/dummy/bin/bundle +3 -0
  21. data/test/dummy/bin/rails +4 -0
  22. data/test/dummy/bin/rake +4 -0
  23. data/test/dummy/bin/setup +29 -0
  24. data/test/dummy/config/application.rb +26 -0
  25. data/test/dummy/config/boot.rb +5 -0
  26. data/test/dummy/config/database.yml +25 -0
  27. data/test/dummy/config/environment.rb +5 -0
  28. data/test/dummy/config/environments/development.rb +41 -0
  29. data/test/dummy/config/environments/production.rb +79 -0
  30. data/test/dummy/config/environments/test.rb +42 -0
  31. data/test/dummy/config/initializers/assets.rb +11 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  35. data/test/dummy/config/initializers/inflections.rb +16 -0
  36. data/test/dummy/config/initializers/mime_types.rb +4 -0
  37. data/test/dummy/config/initializers/session_store.rb +3 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/test/dummy/config/locales/en.yml +23 -0
  40. data/test/dummy/config/routes.rb +59 -0
  41. data/test/dummy/config/secrets.yml +22 -0
  42. data/test/dummy/config.ru +4 -0
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/migrate/20160423030023_create_unique_models.rb +8 -0
  45. data/test/dummy/db/schema.rb +22 -0
  46. data/test/dummy/db/test.sqlite3 +0 -0
  47. data/test/dummy/log/development.log +10 -0
  48. data/test/dummy/log/test.log +508 -0
  49. data/test/dummy/public/404.html +67 -0
  50. data/test/dummy/public/422.html +67 -0
  51. data/test/dummy/public/500.html +66 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/dummy/test/controllers/dummies_controller_test.rb +7 -0
  54. data/test/dummy/test/fixtures/unique_models.yml +11 -0
  55. data/test/dummy/test/models/unique_model_test.rb +7 -0
  56. data/test/repia_test.rb +37 -0
  57. data/test/test_helper.rb +30 -0
  58. metadata +179 -0
@@ -0,0 +1,508 @@
1
+  (1.6ms) CREATE TABLE "unique_models" ("uuid" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
+  (0.1ms) select sqlite_version(*)
4
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT version FROM "schema_migrations"
6
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160423030023')
7
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+  (0.1ms) begin transaction
9
+ ------------------------------------------------------------
10
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
11
+ ------------------------------------------------------------
12
+  (0.1ms) rollback transaction
13
+  (0.0ms) begin transaction
14
+ ---------------------
15
+ RepiaTest: test_truth
16
+ ---------------------
17
+  (0.0ms) rollback transaction
18
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+  (0.1ms) begin transaction
20
+ ------------------------------------------------------------
21
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
22
+ ------------------------------------------------------------
23
+  (0.0ms) rollback transaction
24
+  (0.0ms) begin transaction
25
+ ---------------------
26
+ RepiaTest: test_truth
27
+ ---------------------
28
+  (0.0ms) rollback transaction
29
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
+  (0.1ms) begin transaction
31
+ ------------------------------------------------------------
32
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
33
+ ------------------------------------------------------------
34
+  (0.0ms) SAVEPOINT active_record_1
35
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:09:06.001188"], ["updated_at", "2016-04-23 03:09:06.001188"], ["uuid", "bd2f2c6e-0900-11e6-964e-6c4008a6fa2a"]]
36
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37
+  (1.7ms) rollback transaction
38
+  (0.1ms) begin transaction
39
+ ---------------------
40
+ RepiaTest: test_truth
41
+ ---------------------
42
+  (0.1ms) rollback transaction
43
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+  (0.1ms) begin transaction
45
+ ------------------------------------------------------------
46
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
47
+ ------------------------------------------------------------
48
+  (0.1ms) SAVEPOINT active_record_1
49
+ SQL (0.6ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:10:19.796047"], ["updated_at", "2016-04-23 03:10:19.796047"], ["uuid", "e92b6076-0900-11e6-bd16-6c4008a6fa2a"]]
50
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51
+  (1.0ms) rollback transaction
52
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
+  (0.1ms) begin transaction
54
+ ----------------------------------------------------------
55
+ RepiaTest: test_DummyController_can_handle_options_request
56
+ ----------------------------------------------------------
57
+  (0.0ms) rollback transaction
58
+  (0.0ms) begin transaction
59
+ ------------------------------------------------------------
60
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
61
+ ------------------------------------------------------------
62
+  (0.0ms) SAVEPOINT active_record_1
63
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:16:38.863377"], ["updated_at", "2016-04-23 03:16:38.863377"], ["uuid", "cb1c75e2-0901-11e6-b747-6c4008a6fa2a"]]
64
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65
+  (0.9ms) rollback transaction
66
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+  (0.1ms) begin transaction
69
+ ---------------------------------------------------------------
70
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
71
+ ---------------------------------------------------------------
72
+ Processing by DummiesController#show as HTML
73
+ Parameters: {"id"=>"400"}
74
+ 500 - Repia::Errors::InternalServerError
75
+ Completed 500 Internal Server Error in 30ms (Views: 29.3ms | ActiveRecord: 0.0ms)
76
+  (0.1ms) rollback transaction
77
+  (0.0ms) begin transaction
78
+ ------------------------------------------------------------
79
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
80
+ ------------------------------------------------------------
81
+  (0.0ms) SAVEPOINT active_record_1
82
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:19:40.062893"], ["updated_at", "2016-04-23 03:19:40.062893"], ["uuid", "371d4fa0-0902-11e6-b019-6c4008a6fa2a"]]
83
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84
+  (1.1ms) rollback transaction
85
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
86
+  (0.1ms) begin transaction
87
+ ------------------------------------------------------------
88
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
89
+ ------------------------------------------------------------
90
+  (0.1ms) SAVEPOINT active_record_1
91
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:20:25.902693"], ["updated_at", "2016-04-23 03:20:25.902693"], ["uuid", "526fea74-0902-11e6-9c69-6c4008a6fa2a"]]
92
+  (0.1ms) RELEASE SAVEPOINT active_record_1
93
+  (1.1ms) rollback transaction
94
+  (0.1ms) begin transaction
95
+ ---------------------------------------------------------------
96
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
97
+ ---------------------------------------------------------------
98
+ Processing by DummiesController#show as HTML
99
+ Parameters: {"id"=>"400"}
100
+ 400 - Repia::Errors::BadRequest
101
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
102
+ Processing by DummiesController#show as HTML
103
+ Parameters: {"id"=>"401"}
104
+ 401 - Repia::Errors::Unauthorized
105
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
106
+ Processing by DummiesController#show as HTML
107
+ Parameters: {"id"=>"404"}
108
+ 404 - Repia::Errors::NotFound
109
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
110
+ Processing by DummiesController#show as HTML
111
+ Parameters: {"id"=>"409"}
112
+ 409 - Repia::Errors::Conflict
113
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
114
+ Processing by DummiesController#show as HTML
115
+ Parameters: {"id"=>"500"}
116
+ 500 - Repia::Errors::InternalServerError
117
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
118
+  (0.1ms) rollback transaction
119
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
120
+  (0.1ms) begin transaction
121
+ ---------------------------------------------------------------
122
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
123
+ ---------------------------------------------------------------
124
+ Processing by DummiesController#show as HTML
125
+ Parameters: {"id"=>"400"}
126
+ 400 - Repia::Errors::BadRequest
127
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
128
+ Processing by DummiesController#show as HTML
129
+ Parameters: {"id"=>"401"}
130
+ 401 - Repia::Errors::Unauthorized
131
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
132
+ Processing by DummiesController#show as HTML
133
+ Parameters: {"id"=>"404"}
134
+ 404 - Repia::Errors::NotFound
135
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136
+ Processing by DummiesController#show as HTML
137
+ Parameters: {"id"=>"409"}
138
+ 409 - Repia::Errors::Conflict
139
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
140
+ Processing by DummiesController#show as HTML
141
+ Parameters: {"id"=>"500"}
142
+ 500 - Repia::Errors::InternalServerError
143
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
144
+  (0.1ms) rollback transaction
145
+  (0.0ms) begin transaction
146
+ ------------------------------------------------------------
147
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
148
+ ------------------------------------------------------------
149
+  (0.1ms) SAVEPOINT active_record_1
150
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:21:10.167005"], ["updated_at", "2016-04-23 03:21:10.167005"], ["uuid", "6cd227ce-0902-11e6-b91d-6c4008a6fa2a"]]
151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
152
+  (0.8ms) rollback transaction
153
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
154
+  (0.1ms) begin transaction
155
+ ------------------------------------------------------
156
+ DummiesControllerTest: test_options_request_is_handled
157
+ ------------------------------------------------------
158
+ Processing by DummiesController#options as HTML
159
+ Rendered text template (0.0ms)
160
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
161
+  (0.1ms) rollback transaction
162
+  (0.1ms) begin transaction
163
+ ---------------------------------------------------------------
164
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
165
+ ---------------------------------------------------------------
166
+ Processing by DummiesController#show as HTML
167
+ Parameters: {"id"=>"400"}
168
+ 400 - Repia::Errors::BadRequest
169
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
170
+ Processing by DummiesController#show as HTML
171
+ Parameters: {"id"=>"401"}
172
+ 401 - Repia::Errors::Unauthorized
173
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
174
+ Processing by DummiesController#show as HTML
175
+ Parameters: {"id"=>"404"}
176
+ 404 - Repia::Errors::NotFound
177
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
178
+ Processing by DummiesController#show as HTML
179
+ Parameters: {"id"=>"409"}
180
+ 409 - Repia::Errors::Conflict
181
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
182
+ Processing by DummiesController#show as HTML
183
+ Parameters: {"id"=>"500"}
184
+ 500 - Repia::Errors::InternalServerError
185
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
186
+  (0.1ms) rollback transaction
187
+  (0.0ms) begin transaction
188
+ ------------------------------------------------------------
189
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
190
+ ------------------------------------------------------------
191
+  (0.2ms) SAVEPOINT active_record_1
192
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:21:44.337469"], ["updated_at", "2016-04-23 03:21:44.337469"], ["uuid", "81301f5a-0902-11e6-94ce-6c4008a6fa2a"]]
193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
194
+  (1.0ms) rollback transaction
195
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
196
+  (0.1ms) begin transaction
197
+ ------------------------------------------------------
198
+ DummiesControllerTest: test_options_request_is_handled
199
+ ------------------------------------------------------
200
+ Processing by DummiesController#options as HTML
201
+ Rendered text template (0.0ms)
202
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
203
+ Processing by DummiesController#options as HTML
204
+ Rendered text template (0.0ms)
205
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
206
+  (0.1ms) rollback transaction
207
+  (0.0ms) begin transaction
208
+ ---------------------------------------------------------------
209
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
210
+ ---------------------------------------------------------------
211
+ Processing by DummiesController#show as HTML
212
+ Parameters: {"id"=>"400"}
213
+ 400 - Repia::Errors::BadRequest
214
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
215
+ Processing by DummiesController#show as HTML
216
+ Parameters: {"id"=>"401"}
217
+ 401 - Repia::Errors::Unauthorized
218
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
219
+ Processing by DummiesController#show as HTML
220
+ Parameters: {"id"=>"404"}
221
+ 404 - Repia::Errors::NotFound
222
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
223
+ Processing by DummiesController#show as HTML
224
+ Parameters: {"id"=>"409"}
225
+ 409 - Repia::Errors::Conflict
226
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
227
+ Processing by DummiesController#show as HTML
228
+ Parameters: {"id"=>"500"}
229
+ 500 - Repia::Errors::InternalServerError
230
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
231
+  (0.1ms) rollback transaction
232
+  (0.0ms) begin transaction
233
+ ------------------------------------------------------------
234
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
235
+ ------------------------------------------------------------
236
+  (0.1ms) SAVEPOINT active_record_1
237
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:23:36.007863"], ["updated_at", "2016-04-23 03:23:36.007863"], ["uuid", "c3bfa8c2-0902-11e6-8ddf-6c4008a6fa2a"]]
238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239
+  (1.0ms) rollback transaction
240
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
241
+  (0.1ms) begin transaction
242
+ ------------------------------------------------------
243
+ DummiesControllerTest: test_options_request_is_handled
244
+ ------------------------------------------------------
245
+ Processing by DummiesController#options as HTML
246
+ Rendered text template (0.0ms)
247
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
248
+ Processing by DummiesController#options as HTML
249
+ Rendered text template (0.0ms)
250
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
251
+  (0.1ms) rollback transaction
252
+  (0.1ms) begin transaction
253
+ ---------------------------------------------------------------
254
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
255
+ ---------------------------------------------------------------
256
+ Processing by DummiesController#show as HTML
257
+ Parameters: {"id"=>"400"}
258
+ 400 - Repia::Errors::BadRequest
259
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
260
+ Processing by DummiesController#show as HTML
261
+ Parameters: {"id"=>"401"}
262
+ 401 - Repia::Errors::Unauthorized
263
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
264
+ Processing by DummiesController#show as HTML
265
+ Parameters: {"id"=>"404"}
266
+ 404 - Repia::Errors::NotFound
267
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
268
+ Processing by DummiesController#show as HTML
269
+ Parameters: {"id"=>"409"}
270
+ 409 - Repia::Errors::Conflict
271
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
272
+ Processing by DummiesController#show as HTML
273
+ Parameters: {"id"=>"500"}
274
+ 500 - Repia::Errors::InternalServerError
275
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
276
+  (0.1ms) rollback transaction
277
+  (0.0ms) begin transaction
278
+ ------------------------------------------------------------
279
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
280
+ ------------------------------------------------------------
281
+  (0.1ms) SAVEPOINT active_record_1
282
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:24:47.705307"], ["updated_at", "2016-04-23 03:24:47.705307"], ["uuid", "ee7bd248-0902-11e6-832d-6c4008a6fa2a"]]
283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
284
+  (1.1ms) rollback transaction
285
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
286
+  (0.1ms) begin transaction
287
+ ---------------------------------------------------------------
288
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
289
+ ---------------------------------------------------------------
290
+ Processing by DummiesController#show as HTML
291
+ Parameters: {"id"=>"400"}
292
+ 400 - Repia::Errors::BadRequest
293
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
294
+ Processing by DummiesController#show as HTML
295
+ Parameters: {"id"=>"401"}
296
+ 401 - Repia::Errors::Unauthorized
297
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
298
+ Processing by DummiesController#show as HTML
299
+ Parameters: {"id"=>"404"}
300
+ 404 - Repia::Errors::NotFound
301
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
302
+ Processing by DummiesController#show as HTML
303
+ Parameters: {"id"=>"409"}
304
+ 409 - Repia::Errors::Conflict
305
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
306
+ Processing by DummiesController#show as HTML
307
+ Parameters: {"id"=>"500"}
308
+ 500 - Repia::Errors::InternalServerError
309
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
310
+  (0.1ms) rollback transaction
311
+  (0.0ms) begin transaction
312
+ ------------------------------------------------------
313
+ DummiesControllerTest: test_options_request_is_handled
314
+ ------------------------------------------------------
315
+ Processing by DummiesController#options as HTML
316
+ Rendered text template (0.0ms)
317
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
318
+ Processing by DummiesController#options as HTML
319
+ Rendered text template (0.0ms)
320
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
321
+  (0.1ms) rollback transaction
322
+  (0.0ms) begin transaction
323
+ --------------------------------------------------
324
+ DummiesControllerTest: test_render_multiple_errors
325
+ --------------------------------------------------
326
+ Processing by DummiesController#index as HTML
327
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
328
+  (0.1ms) rollback transaction
329
+  (0.0ms) begin transaction
330
+ ------------------------------------------------------------
331
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
332
+ ------------------------------------------------------------
333
+  (0.0ms) SAVEPOINT active_record_1
334
+ SQL (1.0ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:25:29.629663"], ["updated_at", "2016-04-23 03:25:29.629663"], ["uuid", "0778f6e0-0903-11e6-9931-6c4008a6fa2a"]]
335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
336
+  (1.1ms) rollback transaction
337
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
338
+  (0.1ms) begin transaction
339
+ ---------------------------------------------------------------
340
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
341
+ ---------------------------------------------------------------
342
+ Processing by DummiesController#show as HTML
343
+ Parameters: {"id"=>"400"}
344
+ 400 - Repia::Errors::BadRequest
345
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
346
+ Processing by DummiesController#show as HTML
347
+ Parameters: {"id"=>"401"}
348
+ 401 - Repia::Errors::Unauthorized
349
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
350
+ Processing by DummiesController#show as HTML
351
+ Parameters: {"id"=>"404"}
352
+ 404 - Repia::Errors::NotFound
353
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
354
+ Processing by DummiesController#show as HTML
355
+ Parameters: {"id"=>"409"}
356
+ 409 - Repia::Errors::Conflict
357
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
358
+ Processing by DummiesController#show as HTML
359
+ Parameters: {"id"=>"500"}
360
+ 500 - Repia::Errors::InternalServerError
361
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
362
+  (0.1ms) rollback transaction
363
+  (0.0ms) begin transaction
364
+ ------------------------------------------------------
365
+ DummiesControllerTest: test_options_request_is_handled
366
+ ------------------------------------------------------
367
+ Processing by DummiesController#options as HTML
368
+ Rendered text template (0.0ms)
369
+ Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
370
+ Processing by DummiesController#options as HTML
371
+ Rendered text template (0.0ms)
372
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
373
+  (0.0ms) rollback transaction
374
+  (0.0ms) begin transaction
375
+ --------------------------------------------------
376
+ DummiesControllerTest: test_render_multiple_errors
377
+ --------------------------------------------------
378
+ Processing by DummiesController#index as HTML
379
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
380
+  (0.1ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+ ------------------------------------------------------------
383
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
384
+ ------------------------------------------------------------
385
+  (0.1ms) SAVEPOINT active_record_1
386
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:25:54.844491"], ["updated_at", "2016-04-23 03:25:54.844491"], ["uuid", "16807c58-0903-11e6-b659-6c4008a6fa2a"]]
387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
388
+  (0.8ms) rollback transaction
389
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
390
+  (0.1ms) begin transaction
391
+ ------------------------------------------------------------
392
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
393
+ ------------------------------------------------------------
394
+  (0.0ms) SAVEPOINT active_record_1
395
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:26:49.306901"], ["updated_at", "2016-04-23 03:26:49.306901"], ["uuid", "36f6c398-0903-11e6-b511-6c4008a6fa2a"]]
396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
397
+  (1.2ms) rollback transaction
398
+  (0.1ms) begin transaction
399
+ ---------------------------------------------------------------
400
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
401
+ ---------------------------------------------------------------
402
+ Processing by DummiesController#show as HTML
403
+ Parameters: {"id"=>"400"}
404
+ 400 - Repia::Errors::BadRequest
405
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
406
+ Processing by DummiesController#show as HTML
407
+ Parameters: {"id"=>"401"}
408
+ 401 - Repia::Errors::Unauthorized
409
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
410
+ Processing by DummiesController#show as HTML
411
+ Parameters: {"id"=>"404"}
412
+ 404 - Repia::Errors::NotFound
413
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
414
+ Processing by DummiesController#show as HTML
415
+ Parameters: {"id"=>"409"}
416
+ 409 - Repia::Errors::Conflict
417
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
418
+ Processing by DummiesController#show as HTML
419
+ Parameters: {"id"=>"500"}
420
+ 500 - Repia::Errors::InternalServerError
421
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
422
+  (0.1ms) rollback transaction
423
+  (0.1ms) begin transaction
424
+ ------------------------------------------------------
425
+ DummiesControllerTest: test_options_request_is_handled
426
+ ------------------------------------------------------
427
+ Processing by DummiesController#options as HTML
428
+ Rendered text template (0.0ms)
429
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
430
+ Processing by DummiesController#options as HTML
431
+ Rendered text template (0.0ms)
432
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
433
+  (0.1ms) rollback transaction
434
+  (0.0ms) begin transaction
435
+ --------------------------------------------------
436
+ DummiesControllerTest: test_render_multiple_errors
437
+ --------------------------------------------------
438
+ Processing by DummiesController#index as HTML
439
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
440
+  (0.1ms) rollback transaction
441
+  (0.1ms) begin transaction
442
+ -------------------------------------------------
443
+ DummiesControllerTest: test_handle_standard_error
444
+ -------------------------------------------------
445
+ Processing by DummiesController#create as HTML
446
+ String can't be coerced into Fixnum
447
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
448
+  (0.0ms) rollback transaction
449
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
450
+  (0.1ms) begin transaction
451
+ -------------------------------------------------
452
+ DummiesControllerTest: test_handle_standard_error
453
+ -------------------------------------------------
454
+ Processing by DummiesController#create as HTML
455
+ String can't be coerced into Fixnum
456
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
457
+  (0.1ms) rollback transaction
458
+  (0.0ms) begin transaction
459
+ --------------------------------------------------
460
+ DummiesControllerTest: test_render_multiple_errors
461
+ --------------------------------------------------
462
+ Processing by DummiesController#index as HTML
463
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
464
+  (0.0ms) rollback transaction
465
+  (0.0ms) begin transaction
466
+ ------------------------------------------------------
467
+ DummiesControllerTest: test_options_request_is_handled
468
+ ------------------------------------------------------
469
+ Processing by DummiesController#options as HTML
470
+ Rendered text template (0.0ms)
471
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
472
+ Processing by DummiesController#options as HTML
473
+ Rendered text template (0.0ms)
474
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
475
+  (0.1ms) rollback transaction
476
+  (0.0ms) begin transaction
477
+ ---------------------------------------------------------------
478
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
479
+ ---------------------------------------------------------------
480
+ Processing by DummiesController#show as HTML
481
+ Parameters: {"id"=>"400"}
482
+ 400 - Repia::Errors::BadRequest
483
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
484
+ Processing by DummiesController#show as HTML
485
+ Parameters: {"id"=>"401"}
486
+ 401 - Repia::Errors::Unauthorized
487
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
488
+ Processing by DummiesController#show as HTML
489
+ Parameters: {"id"=>"404"}
490
+ 404 - Repia::Errors::NotFound
491
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
492
+ Processing by DummiesController#show as HTML
493
+ Parameters: {"id"=>"409"}
494
+ 409 - Repia::Errors::Conflict
495
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
496
+ Processing by DummiesController#show as HTML
497
+ Parameters: {"id"=>"500"}
498
+ 500 - Repia::Errors::InternalServerError
499
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
500
+  (0.1ms) rollback transaction
501
+  (0.1ms) begin transaction
502
+ ------------------------------------------------------------
503
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
504
+ ------------------------------------------------------------
505
+  (0.1ms) SAVEPOINT active_record_1
506
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:27:07.769458"], ["updated_at", "2016-04-23 03:27:07.769458"], ["uuid", "41f7ef7e-0903-11e6-8ab3-6c4008a6fa2a"]]
507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
508
+  (0.9ms) rollback transaction
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>