repia 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,33 +0,0 @@
1
- require 'json'
2
- require 'repia/errors'
3
- require 'repia/base_helper'
4
-
5
- module Repia
6
-
7
- ##
8
- # This controller is a base controller for RESTful API. Two primary
9
- # features:
10
- #
11
- # - Error (exception) handling
12
- # - Options request handling
13
- #
14
- class BaseController < ActionController::Base
15
- include BaseHelper
16
-
17
- # This is a catch-all.
18
- rescue_from StandardError do |exception|
19
- logger.error exception.message
20
- render_error 500, "Unknown error occurred: #{exception.message}"
21
- end
22
-
23
- # Catch all manually thrown HTTP errors (predefined by repia)
24
- rescue_from Errors::HTTPError do |exception|
25
- status_code = exception.class.const_get("STATUS_CODE")
26
- message = exception.message || exception.class::MESSAGE
27
- logger.error "#{status_code} - #{message}"
28
- render_error status_code, message
29
- end
30
-
31
- end
32
-
33
- end
@@ -1,83 +0,0 @@
1
- require 'repia/errors'
2
-
3
- module Repia
4
-
5
- ##
6
- # This helper module includes methods that are essential for building a
7
- # RESTful API.
8
- #
9
- module BaseHelper
10
-
11
- ##
12
- # Use this as an action triggered by exceptions_app to return a JSON
13
- # response to any middleware level exceptions.
14
- #
15
- # For example,
16
- #
17
- # config.exceptions_app = lambda { |env|
18
- # ApplicationController.action(:exceptions_app).call(env)
19
- # }
20
- #
21
- def exceptions_app
22
- ex_wrapper = ActionDispatch::ExceptionWrapper.new(Rails.env, @exception)
23
- status = ex_wrapper.status_code.to_i
24
- error = Errors::STATUS_CODE_TO_ERROR[status]
25
- if error
26
- message = error::MESSAGE
27
- else
28
- # :nocov:
29
- status = 500
30
- message = "Unknown error"
31
- # :nocov:
32
- end
33
- render_error status, message
34
- end
35
-
36
- ##
37
- # Renders a generic OPTIONS response. The actual controller must
38
- # override this action if desired to have specific OPTIONS handling
39
- # logic.
40
- #
41
- def options
42
- # echo back access-control-request-headers
43
- if request.headers["Access-Control-Request-Headers"]
44
- response["Access-Control-Allow-Headers"] =
45
- request.headers["Access-Control-Request-Headers"]
46
- end
47
- render body: "", status: 200
48
- end
49
-
50
- ##
51
- # Renders a single error.
52
- #
53
- def render_error(status, msg)
54
- render json: {errors: [msg]}, status: status
55
- end
56
-
57
- ##
58
- # Renders multiple errors
59
- #
60
- def render_errors(status, msgs)
61
- render json: {errors: msgs}, status: status
62
- end
63
-
64
- # undef :find_object if method_defined? :find_object
65
- ##
66
- # Finds an object by model and UUID and throws an error (which will be
67
- # caught and re-thrown as an HTTP error) if the object does not exist.
68
- # The error can be optionally suppresed by specifying nil to error.
69
- #
70
- # An Repia::Errors::NotFound is raised if specified to do so when
71
- # the object could not be found using the uuid.
72
- #
73
- def find_object(model, uuid, error: Errors::NotFound)
74
- logger.debug("Attempting to get #{model.name} #{uuid}")
75
- obj = model.find_by_uuid(uuid)
76
- if obj.nil? && !error.nil?
77
- raise error, "#{model.name} #{uuid} cannot be found"
78
- end
79
- return obj
80
- end
81
-
82
- end
83
- end
@@ -1,28 +0,0 @@
1
-
2
- module Repia
3
-
4
- ##
5
- # This module is a mixin that allows the model to use UUIDs instead of
6
- # normal IDs. By including this module, the model class declares that the
7
- # primary key is called "uuid" and an UUID is generated right before
8
- # save(). You may assign an UUID prior to save, in which case, no new UUID
9
- # will be generated.
10
- #
11
- module UUIDModel
12
-
13
- ##
14
- # Triggered when this module is included.
15
- #
16
- def self.included(klass)
17
- klass.primary_key = "uuid"
18
- klass.before_create :generate_uuid
19
- end
20
-
21
- ##
22
- # Generates an UUID for the model object.
23
- #
24
- def generate_uuid()
25
- self.uuid = UUIDTools::UUID.timestamp_create().to_s if self.uuid.nil?
26
- end
27
- end
28
- end
@@ -1,1783 +0,0 @@
1
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
-  (0.1ms) begin transaction
3
- ----------------------------------------------------------------------------------------
4
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
5
- ----------------------------------------------------------------------------------------
6
-  (0.0ms) rollback transaction
7
-  (0.0ms) begin transaction
8
- ----------------------------------------------------------------------------------
9
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
10
- ----------------------------------------------------------------------------------
11
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f824d4558b8>, "rack.errors"=>#<StringIO:0x007f824d455d90>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
12
-  (0.0ms) rollback transaction
13
-  (0.0ms) begin transaction
14
- -----------------------------------------------------------------------
15
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
16
- -----------------------------------------------------------------------
17
-  (0.0ms) SAVEPOINT active_record_1
18
- SQL (0.7ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-07-10 22:09:29.316829"], ["updated_at", "2016-07-10 22:09:29.316829"], ["uuid", "f8e113a8-46ea-11e6-91df-9801a78f6ec1"]]
19
-  (0.0ms) RELEASE SAVEPOINT active_record_1
20
-  (0.4ms) rollback transaction
21
-  (0.0ms) begin transaction
22
- -------------------------------------------------------------
23
- TestsControllerTest: test_Predefined_errors_should_be_handled
24
- -------------------------------------------------------------
25
- Processing by TestsController#show as HTML
26
- Parameters: {"id"=>"400"}
27
- 400 - Repia::Errors::BadRequest
28
- Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
29
- Processing by TestsController#show as HTML
30
- Parameters: {"id"=>"401"}
31
- 401 - Repia::Errors::Unauthorized
32
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
33
- Processing by TestsController#show as HTML
34
- Parameters: {"id"=>"404"}
35
- 404 - Repia::Errors::NotFound
36
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37
- Processing by TestsController#show as HTML
38
- Parameters: {"id"=>"409"}
39
- 409 - Repia::Errors::Conflict
40
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
41
- Processing by TestsController#show as HTML
42
- Parameters: {"id"=>"500"}
43
- 500 - Repia::Errors::InternalServerError
44
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
45
-  (0.1ms) rollback transaction
46
-  (0.0ms) begin transaction
47
- -----------------------------------------------
48
- TestsControllerTest: test_handle_standard_error
49
- -----------------------------------------------
50
- Processing by TestsController#index as HTML
51
- StandardError
52
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
53
-  (0.1ms) rollback transaction
54
-  (0.0ms) begin transaction
55
- ----------------------------------------------------
56
- TestsControllerTest: test_options_request_is_handled
57
- ----------------------------------------------------
58
- Processing by TestsController#options as HTML
59
- Rendered text template (0.0ms)
60
- Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
61
- Processing by TestsController#options as HTML
62
- Rendered text template (0.0ms)
63
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64
-  (0.1ms) rollback transaction
65
-  (0.1ms) begin transaction
66
- ----------------------------------------------------------------
67
- TestsControllerTest: test_find_object_will_find_object_if_exists
68
- ----------------------------------------------------------------
69
-  (0.1ms) SAVEPOINT active_record_1
70
- SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-07-10 22:09:29.360728"], ["updated_at", "2016-07-10 22:09:29.360728"], ["uuid", "f8e7f042-46ea-11e6-91df-9801a78f6ec1"]]
71
-  (0.1ms) RELEASE SAVEPOINT active_record_1
72
- Processing by TestsController#show as HTML
73
- Parameters: {"id"=>"f8e7f042-46ea-11e6-91df-9801a78f6ec1"}
74
- Attempting to get UniqueModel f8e7f042-46ea-11e6-91df-9801a78f6ec1
75
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "f8e7f042-46ea-11e6-91df-9801a78f6ec1"]]
76
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
77
-  (1.9ms) rollback transaction
78
-  (0.1ms) begin transaction
79
- -------------------------------------------------------------------------
80
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
81
- -------------------------------------------------------------------------
82
- Processing by TestsController#show as HTML
83
- Parameters: {"id"=>"blah"}
84
- Attempting to get UniqueModel blah
85
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
86
- 404 - UniqueModel blah cannot be found
87
- Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
88
-  (0.1ms) rollback transaction
89
-  (0.0ms) begin transaction
90
- ------------------------------------------------
91
- TestsControllerTest: test_render_multiple_errors
92
- ------------------------------------------------
93
- Processing by TestsController#index as HTML
94
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
95
-  (0.0ms) rollback transaction
96
-  (0.0ms) begin transaction
97
- ----------------------------------------
98
- TestsControllerTest: test_exceptions_app
99
- ----------------------------------------
100
- Processing by TestsController#show as HTML
101
- Parameters: {"id"=>"blah"}
102
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
103
-  (0.0ms) rollback transaction
104
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
105
-  (0.1ms) begin transaction
106
- ----------------------------------------------------------------------------------------
107
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
108
- ----------------------------------------------------------------------------------------
109
-  (0.0ms) rollback transaction
110
-  (0.0ms) begin transaction
111
- ----------------------------------------------------------------------------------
112
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
113
- ----------------------------------------------------------------------------------
114
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fc32ce5e830>, "rack.errors"=>#<StringIO:0x007fc32ce5e8a8>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
115
-  (0.0ms) rollback transaction
116
-  (0.0ms) begin transaction
117
- -----------------------------------------------------------------------
118
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
119
- -----------------------------------------------------------------------
120
-  (0.1ms) SAVEPOINT active_record_1
121
- SQL (1.1ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "e4eb81fc-a564-11e6-9a54-9801a78f6ec1"], ["created_at", 2016-11-08 03:39:03 UTC], ["updated_at", 2016-11-08 03:39:03 UTC]]
122
-  (0.0ms) RELEASE SAVEPOINT active_record_1
123
-  (0.3ms) rollback transaction
124
-  (0.1ms) begin transaction
125
- -----------------------------------------------
126
- TestsControllerTest: test_handle_standard_error
127
- -----------------------------------------------
128
- Processing by TestsController#index as HTML
129
- StandardError
130
- Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
131
-  (0.0ms) rollback transaction
132
-  (0.0ms) begin transaction
133
- -------------------------------------------------------------
134
- TestsControllerTest: test_Predefined_errors_should_be_handled
135
- -------------------------------------------------------------
136
- Processing by TestsController#show as HTML
137
- Parameters: {"id"=>"400"}
138
- 400 - Repia::Errors::BadRequest
139
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
140
- Processing by TestsController#show as HTML
141
- Parameters: {"id"=>"401"}
142
- 401 - Repia::Errors::Unauthorized
143
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
144
- Processing by TestsController#show as HTML
145
- Parameters: {"id"=>"404"}
146
- 404 - Repia::Errors::NotFound
147
- Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
148
- Processing by TestsController#show as HTML
149
- Parameters: {"id"=>"409"}
150
- 409 - Repia::Errors::Conflict
151
- Completed 409 Conflict in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
152
- Processing by TestsController#show as HTML
153
- Parameters: {"id"=>"500"}
154
- 500 - Repia::Errors::InternalServerError
155
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
156
-  (0.0ms) rollback transaction
157
-  (0.0ms) begin transaction
158
- ----------------------------------------
159
- TestsControllerTest: test_exceptions_app
160
- ----------------------------------------
161
- Processing by TestsController#show as HTML
162
- Parameters: {"id"=>"blah"}
163
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
164
-  (0.0ms) rollback transaction
165
-  (0.0ms) begin transaction
166
- -------------------------------------------------------------------------
167
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
168
- -------------------------------------------------------------------------
169
- Processing by TestsController#show as HTML
170
- Parameters: {"id"=>"blah"}
171
- Attempting to get UniqueModel blah
172
- UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
173
- 404 - UniqueModel blah cannot be found
174
- Completed 404 Not Found in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
175
-  (0.1ms) rollback transaction
176
-  (0.0ms) begin transaction
177
- ----------------------------------------------------------------
178
- TestsControllerTest: test_find_object_will_find_object_if_exists
179
- ----------------------------------------------------------------
180
-  (0.0ms) SAVEPOINT active_record_1
181
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "e4f342c0-a564-11e6-9a54-9801a78f6ec1"], ["created_at", 2016-11-08 03:39:03 UTC], ["updated_at", 2016-11-08 03:39:03 UTC]]
182
-  (0.0ms) RELEASE SAVEPOINT active_record_1
183
- Processing by TestsController#show as HTML
184
- Parameters: {"id"=>"e4f342c0-a564-11e6-9a54-9801a78f6ec1"}
185
- Attempting to get UniqueModel e4f342c0-a564-11e6-9a54-9801a78f6ec1
186
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "e4f342c0-a564-11e6-9a54-9801a78f6ec1"], ["LIMIT", 1]]
187
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
188
-  (0.4ms) rollback transaction
189
-  (0.1ms) begin transaction
190
- ----------------------------------------------------
191
- TestsControllerTest: test_options_request_is_handled
192
- ----------------------------------------------------
193
- Processing by TestsController#options as HTML
194
- Rendering text template
195
- Rendered text template (0.0ms)
196
- Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
197
- Processing by TestsController#options as HTML
198
- Rendering text template
199
- Rendered text template (0.0ms)
200
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
201
-  (0.1ms) rollback transaction
202
-  (0.0ms) begin transaction
203
- ------------------------------------------------
204
- TestsControllerTest: test_render_multiple_errors
205
- ------------------------------------------------
206
- Processing by TestsController#index as HTML
207
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
208
-  (0.1ms) rollback transaction
209
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
210
-  (0.1ms) begin transaction
211
- -------------------------------------------------------------------------
212
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
213
- -------------------------------------------------------------------------
214
- Processing by TestsController#show as HTML
215
- Parameters: {"id"=>"blah"}
216
- Attempting to get UniqueModel blah
217
- UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
218
- 404 - UniqueModel blah cannot be found
219
- Completed 404 Not Found in 8ms (Views: 0.3ms | ActiveRecord: 0.4ms)
220
-  (0.1ms) rollback transaction
221
-  (0.0ms) begin transaction
222
- -------------------------------------------------------------
223
- TestsControllerTest: test_Predefined_errors_should_be_handled
224
- -------------------------------------------------------------
225
- Processing by TestsController#show as HTML
226
- Parameters: {"id"=>"400"}
227
- 400 - Repia::Errors::BadRequest
228
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
229
- Processing by TestsController#show as HTML
230
- Parameters: {"id"=>"401"}
231
- 401 - Repia::Errors::Unauthorized
232
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
233
- Processing by TestsController#show as HTML
234
- Parameters: {"id"=>"404"}
235
- 404 - Repia::Errors::NotFound
236
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
237
- Processing by TestsController#show as HTML
238
- Parameters: {"id"=>"409"}
239
- 409 - Repia::Errors::Conflict
240
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
241
- Processing by TestsController#show as HTML
242
- Parameters: {"id"=>"500"}
243
- 500 - Repia::Errors::InternalServerError
244
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
245
-  (0.0ms) rollback transaction
246
-  (0.0ms) begin transaction
247
- -----------------------------------------------
248
- TestsControllerTest: test_handle_standard_error
249
- -----------------------------------------------
250
- Processing by TestsController#index as HTML
251
- StandardError
252
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
253
-  (0.0ms) rollback transaction
254
-  (0.0ms) begin transaction
255
- ------------------------------------------------
256
- TestsControllerTest: test_render_multiple_errors
257
- ------------------------------------------------
258
- Processing by TestsController#index as HTML
259
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
260
-  (0.0ms) rollback transaction
261
-  (0.0ms) begin transaction
262
- ----------------------------------------------------------------
263
- TestsControllerTest: test_find_object_will_find_object_if_exists
264
- ----------------------------------------------------------------
265
-  (0.1ms) SAVEPOINT active_record_1
266
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "6d50bb1a-a566-11e6-b26c-9801a78f6ec1"], ["created_at", 2016-11-08 03:50:02 UTC], ["updated_at", 2016-11-08 03:50:02 UTC]]
267
-  (0.1ms) RELEASE SAVEPOINT active_record_1
268
- Processing by TestsController#show as HTML
269
- Parameters: {"id"=>"6d50bb1a-a566-11e6-b26c-9801a78f6ec1"}
270
- Attempting to get UniqueModel 6d50bb1a-a566-11e6-b26c-9801a78f6ec1
271
- UniqueModel Load (0.0ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "6d50bb1a-a566-11e6-b26c-9801a78f6ec1"], ["LIMIT", 1]]
272
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
273
-  (2.0ms) rollback transaction
274
-  (0.1ms) begin transaction
275
- ----------------------------------------
276
- TestsControllerTest: test_exceptions_app
277
- ----------------------------------------
278
- Processing by TestsController#show as HTML
279
- Parameters: {"id"=>"blah"}
280
- Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
281
-  (0.0ms) rollback transaction
282
-  (0.0ms) begin transaction
283
- ----------------------------------------------------
284
- TestsControllerTest: test_options_request_is_handled
285
- ----------------------------------------------------
286
- Processing by TestsController#options as HTML
287
- Rendering text template
288
- Rendered text template (0.0ms)
289
- Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
290
- Processing by TestsController#options as HTML
291
- Rendering text template
292
- Rendered text template (0.0ms)
293
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
294
-  (0.1ms) rollback transaction
295
-  (0.0ms) begin transaction
296
- -----------------------------------------------------------------------
297
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
298
- -----------------------------------------------------------------------
299
-  (0.1ms) SAVEPOINT active_record_1
300
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "6d55e77a-a566-11e6-b26c-9801a78f6ec1"], ["created_at", 2016-11-08 03:50:02 UTC], ["updated_at", 2016-11-08 03:50:02 UTC]]
301
-  (0.0ms) RELEASE SAVEPOINT active_record_1
302
-  (0.3ms) rollback transaction
303
-  (0.1ms) begin transaction
304
- ----------------------------------------------------------------------------------------
305
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
306
- ----------------------------------------------------------------------------------------
307
-  (0.1ms) rollback transaction
308
-  (0.0ms) begin transaction
309
- ----------------------------------------------------------------------------------
310
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
311
- ----------------------------------------------------------------------------------
312
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f930a10e588>, "rack.errors"=>#<StringIO:0x007f930a10e678>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
313
-  (0.1ms) rollback transaction
314
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
315
-  (0.1ms) begin transaction
316
- ----------------------------------------
317
- TestsControllerTest: test_exceptions_app
318
- ----------------------------------------
319
- Processing by TestsController#show as HTML
320
- Parameters: {"id"=>"blah"}
321
- Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
322
-  (0.1ms) rollback transaction
323
-  (0.1ms) begin transaction
324
- -----------------------------------------------
325
- TestsControllerTest: test_handle_standard_error
326
- -----------------------------------------------
327
- Processing by TestsController#index as HTML
328
- StandardError
329
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
330
-  (0.0ms) rollback transaction
331
-  (0.0ms) begin transaction
332
- -------------------------------------------------------------------------
333
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
334
- -------------------------------------------------------------------------
335
- Processing by TestsController#show as HTML
336
- Parameters: {"id"=>"blah"}
337
- Attempting to get UniqueModel blah
338
- UniqueModel Load (0.3ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
339
- 404 - UniqueModel blah cannot be found
340
- Completed 404 Not Found in 8ms (Views: 0.2ms | ActiveRecord: 0.5ms)
341
-  (0.1ms) rollback transaction
342
-  (0.0ms) begin transaction
343
- ------------------------------------------------
344
- TestsControllerTest: test_render_multiple_errors
345
- ------------------------------------------------
346
- Processing by TestsController#index as HTML
347
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
348
-  (0.0ms) rollback transaction
349
-  (0.0ms) begin transaction
350
- ----------------------------------------------------------------
351
- TestsControllerTest: test_find_object_will_find_object_if_exists
352
- ----------------------------------------------------------------
353
-  (0.0ms) SAVEPOINT active_record_1
354
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "bb195c0a-a8ed-11e6-bf2c-9801a78f6ec1"], ["created_at", 2016-11-12 15:36:08 UTC], ["updated_at", 2016-11-12 15:36:08 UTC]]
355
-  (0.0ms) RELEASE SAVEPOINT active_record_1
356
- Processing by TestsController#show as HTML
357
- Parameters: {"id"=>"bb195c0a-a8ed-11e6-bf2c-9801a78f6ec1"}
358
- Attempting to get UniqueModel bb195c0a-a8ed-11e6-bf2c-9801a78f6ec1
359
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "bb195c0a-a8ed-11e6-bf2c-9801a78f6ec1"], ["LIMIT", 1]]
360
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
361
-  (0.4ms) rollback transaction
362
-  (0.1ms) begin transaction
363
- ----------------------------------------------------
364
- TestsControllerTest: test_options_request_is_handled
365
- ----------------------------------------------------
366
- Processing by TestsController#options as HTML
367
- Rendering text template
368
- Rendered text template (0.0ms)
369
- Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
370
- Processing by TestsController#options as HTML
371
- Rendering text template
372
- Rendered text template (0.0ms)
373
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
374
-  (0.1ms) rollback transaction
375
-  (0.0ms) begin transaction
376
- -------------------------------------------------------------
377
- TestsControllerTest: test_Predefined_errors_should_be_handled
378
- -------------------------------------------------------------
379
- Processing by TestsController#show as HTML
380
- Parameters: {"id"=>"400"}
381
- 400 - Repia::Errors::BadRequest
382
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
383
- Processing by TestsController#show as HTML
384
- Parameters: {"id"=>"401"}
385
- 401 - Repia::Errors::Unauthorized
386
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
387
- Processing by TestsController#show as HTML
388
- Parameters: {"id"=>"404"}
389
- 404 - Repia::Errors::NotFound
390
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
391
- Processing by TestsController#show as HTML
392
- Parameters: {"id"=>"409"}
393
- 409 - Repia::Errors::Conflict
394
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
395
- Processing by TestsController#show as HTML
396
- Parameters: {"id"=>"500"}
397
- 500 - Repia::Errors::InternalServerError
398
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
399
-  (0.1ms) rollback transaction
400
-  (0.1ms) begin transaction
401
- -----------------------------------------------------------------------
402
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
403
- -----------------------------------------------------------------------
404
-  (0.0ms) SAVEPOINT active_record_1
405
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "bb1f660e-a8ed-11e6-bf2c-9801a78f6ec1"], ["created_at", 2016-11-12 15:36:08 UTC], ["updated_at", 2016-11-12 15:36:08 UTC]]
406
-  (0.0ms) RELEASE SAVEPOINT active_record_1
407
-  (0.3ms) rollback transaction
408
-  (0.0ms) begin transaction
409
- ----------------------------------------------------------------------------------------
410
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
411
- ----------------------------------------------------------------------------------------
412
-  (0.0ms) rollback transaction
413
-  (0.0ms) begin transaction
414
- ----------------------------------------------------------------------------------
415
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
416
- ----------------------------------------------------------------------------------
417
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fc6faa90f60>, "rack.errors"=>#<StringIO:0x007fc6faa91118>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
418
-  (0.0ms) rollback transaction
419
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
420
-  (0.2ms) begin transaction
421
- ----------------------------------------------------------------
422
- TestsControllerTest: test_find_object_will_find_object_if_exists
423
- ----------------------------------------------------------------
424
-  (0.0ms) SAVEPOINT active_record_1
425
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "430ddbe0-a8ee-11e6-95da-9801a78f6ec1"], ["created_at", 2016-11-12 15:39:56 UTC], ["updated_at", 2016-11-12 15:39:56 UTC]]
426
-  (0.0ms) RELEASE SAVEPOINT active_record_1
427
- Processing by TestsController#show as HTML
428
- Parameters: {"id"=>"430ddbe0-a8ee-11e6-95da-9801a78f6ec1"}
429
- Attempting to get UniqueModel 430ddbe0-a8ee-11e6-95da-9801a78f6ec1
430
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "430ddbe0-a8ee-11e6-95da-9801a78f6ec1"], ["LIMIT", 1]]
431
- Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.1ms)
432
-  (2.2ms) rollback transaction
433
-  (0.1ms) begin transaction
434
- ----------------------------------------
435
- TestsControllerTest: test_exceptions_app
436
- ----------------------------------------
437
- Processing by TestsController#show as HTML
438
- Parameters: {"id"=>"blah"}
439
- Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
440
-  (0.0ms) rollback transaction
441
-  (0.0ms) begin transaction
442
- -----------------------------------------------
443
- TestsControllerTest: test_handle_standard_error
444
- -----------------------------------------------
445
- Processing by TestsController#index as HTML
446
- StandardError
447
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
448
-  (0.1ms) rollback transaction
449
-  (0.0ms) begin transaction
450
- -------------------------------------------------------------------------
451
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
452
- -------------------------------------------------------------------------
453
- Processing by TestsController#show as HTML
454
- Parameters: {"id"=>"blah"}
455
- Attempting to get UniqueModel blah
456
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
457
- 404 - UniqueModel blah cannot be found
458
- Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
459
-  (0.0ms) rollback transaction
460
-  (0.0ms) begin transaction
461
- ----------------------------------------------------
462
- TestsControllerTest: test_options_request_is_handled
463
- ----------------------------------------------------
464
- Processing by TestsController#options as HTML
465
- Rendering text template
466
- Rendered text template (0.0ms)
467
- Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
468
- Processing by TestsController#options as HTML
469
- Rendering text template
470
- Rendered text template (0.0ms)
471
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
472
-  (0.1ms) rollback transaction
473
-  (0.1ms) begin transaction
474
- -------------------------------------------------------------
475
- TestsControllerTest: test_Predefined_errors_should_be_handled
476
- -------------------------------------------------------------
477
- Processing by TestsController#show as HTML
478
- Parameters: {"id"=>"400"}
479
- 400 - Repia::Errors::BadRequest
480
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
481
- Processing by TestsController#show as HTML
482
- Parameters: {"id"=>"401"}
483
- 401 - Repia::Errors::Unauthorized
484
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
485
- Processing by TestsController#show as HTML
486
- Parameters: {"id"=>"404"}
487
- 404 - Repia::Errors::NotFound
488
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
489
- Processing by TestsController#show as HTML
490
- Parameters: {"id"=>"409"}
491
- 409 - Repia::Errors::Conflict
492
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
493
- Processing by TestsController#show as HTML
494
- Parameters: {"id"=>"500"}
495
- 500 - Repia::Errors::InternalServerError
496
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
497
-  (0.1ms) rollback transaction
498
-  (0.0ms) begin transaction
499
- ------------------------------------------------
500
- TestsControllerTest: test_render_multiple_errors
501
- ------------------------------------------------
502
- Processing by TestsController#index as HTML
503
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
504
-  (0.0ms) rollback transaction
505
-  (0.1ms) begin transaction
506
- ----------------------------------------------------------------------------------------
507
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
508
- ----------------------------------------------------------------------------------------
509
-  (0.0ms) rollback transaction
510
-  (0.0ms) begin transaction
511
- ----------------------------------------------------------------------------------
512
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
513
- ----------------------------------------------------------------------------------
514
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fbad4123338>, "rack.errors"=>#<StringIO:0x007fbad4123810>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
515
-  (0.1ms) rollback transaction
516
-  (0.0ms) begin transaction
517
- -----------------------------------------------------------------------
518
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
519
- -----------------------------------------------------------------------
520
-  (0.1ms) SAVEPOINT active_record_1
521
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "4316e546-a8ee-11e6-95da-9801a78f6ec1"], ["created_at", 2016-11-12 15:39:56 UTC], ["updated_at", 2016-11-12 15:39:56 UTC]]
522
-  (0.0ms) RELEASE SAVEPOINT active_record_1
523
-  (0.3ms) rollback transaction
524
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
525
-  (0.1ms) begin transaction
526
- ------------------------------------------------
527
- TestsControllerTest: test_render_multiple_errors
528
- ------------------------------------------------
529
- Processing by TestsController#index as HTML
530
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
531
-  (0.1ms) rollback transaction
532
-  (0.0ms) begin transaction
533
- ----------------------------------------------------------------
534
- TestsControllerTest: test_find_object_will_find_object_if_exists
535
- ----------------------------------------------------------------
536
-  (0.0ms) SAVEPOINT active_record_1
537
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "4cb95fd8-a8ef-11e6-b36d-9801a78f6ec1"], ["created_at", 2016-11-12 15:47:21 UTC], ["updated_at", 2016-11-12 15:47:21 UTC]]
538
-  (0.0ms) RELEASE SAVEPOINT active_record_1
539
- Processing by TestsController#show as HTML
540
- Parameters: {"id"=>"4cb95fd8-a8ef-11e6-b36d-9801a78f6ec1"}
541
- Attempting to get UniqueModel 4cb95fd8-a8ef-11e6-b36d-9801a78f6ec1
542
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "4cb95fd8-a8ef-11e6-b36d-9801a78f6ec1"], ["LIMIT", 1]]
543
- Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
544
-  (0.3ms) rollback transaction
545
-  (0.1ms) begin transaction
546
- ----------------------------------------------------
547
- TestsControllerTest: test_options_request_is_handled
548
- ----------------------------------------------------
549
- Processing by TestsController#options as HTML
550
- Rendering text template
551
- Rendered text template (0.0ms)
552
- Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
553
- Processing by TestsController#options as HTML
554
- Rendering text template
555
- Rendered text template (0.0ms)
556
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
557
-  (0.1ms) rollback transaction
558
-  (0.0ms) begin transaction
559
- -----------------------------------------------
560
- TestsControllerTest: test_handle_standard_error
561
- -----------------------------------------------
562
- Processing by TestsController#index as HTML
563
- StandardError
564
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
565
-  (0.1ms) rollback transaction
566
-  (0.0ms) begin transaction
567
- -------------------------------------------------------------------------
568
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
569
- -------------------------------------------------------------------------
570
- Processing by TestsController#show as HTML
571
- Parameters: {"id"=>"blah"}
572
- Attempting to get UniqueModel blah
573
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
574
- 404 - UniqueModel blah cannot be found
575
- Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
576
-  (0.0ms) rollback transaction
577
-  (0.0ms) begin transaction
578
- -------------------------------------------------------------
579
- TestsControllerTest: test_Predefined_errors_should_be_handled
580
- -------------------------------------------------------------
581
- Processing by TestsController#show as HTML
582
- Parameters: {"id"=>"400"}
583
- 400 - Repia::Errors::BadRequest
584
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
585
- Processing by TestsController#show as HTML
586
- Parameters: {"id"=>"401"}
587
- 401 - Repia::Errors::Unauthorized
588
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
589
- Processing by TestsController#show as HTML
590
- Parameters: {"id"=>"404"}
591
- 404 - Repia::Errors::NotFound
592
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
593
- Processing by TestsController#show as HTML
594
- Parameters: {"id"=>"409"}
595
- 409 - Repia::Errors::Conflict
596
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
597
- Processing by TestsController#show as HTML
598
- Parameters: {"id"=>"500"}
599
- 500 - Repia::Errors::InternalServerError
600
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
601
-  (0.0ms) rollback transaction
602
-  (0.0ms) begin transaction
603
- ----------------------------------------
604
- TestsControllerTest: test_exceptions_app
605
- ----------------------------------------
606
- Processing by TestsController#show as HTML
607
- Parameters: {"id"=>"blah"}
608
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
609
-  (0.0ms) rollback transaction
610
-  (0.0ms) begin transaction
611
- -----------------------------------------------------------------------
612
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
613
- -----------------------------------------------------------------------
614
-  (0.0ms) SAVEPOINT active_record_1
615
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "4cc24396-a8ef-11e6-b36d-9801a78f6ec1"], ["created_at", 2016-11-12 15:47:21 UTC], ["updated_at", 2016-11-12 15:47:21 UTC]]
616
-  (0.0ms) RELEASE SAVEPOINT active_record_1
617
-  (0.3ms) rollback transaction
618
-  (0.1ms) begin transaction
619
- ----------------------------------------------------------------------------------------
620
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
621
- ----------------------------------------------------------------------------------------
622
-  (0.0ms) rollback transaction
623
-  (0.0ms) begin transaction
624
- ----------------------------------------------------------------------------------
625
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
626
- ----------------------------------------------------------------------------------
627
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007ffdeaaeb628>, "rack.errors"=>#<StringIO:0x007ffdeaaeb790>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
628
-  (0.0ms) rollback transaction
629
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
630
-  (0.1ms) begin transaction
631
- ----------------------------------------------------------------------------------
632
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
633
- ----------------------------------------------------------------------------------
634
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fc642c53928>, "rack.errors"=>#<StringIO:0x007fc642c539a0>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
635
-  (0.0ms) rollback transaction
636
-  (0.0ms) begin transaction
637
- ----------------------------------------------------------------------------------------
638
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
639
- ----------------------------------------------------------------------------------------
640
-  (0.0ms) rollback transaction
641
-  (0.0ms) begin transaction
642
- ----------------------------------------------------------------
643
- TestsControllerTest: test_find_object_will_find_object_if_exists
644
- ----------------------------------------------------------------
645
-  (0.0ms) SAVEPOINT active_record_1
646
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "3978a608-a8f0-11e6-a658-9801a78f6ec1"], ["created_at", 2016-11-12 15:53:59 UTC], ["updated_at", 2016-11-12 15:53:59 UTC]]
647
-  (0.0ms) RELEASE SAVEPOINT active_record_1
648
- Processing by TestsController#show as HTML
649
- Parameters: {"id"=>"3978a608-a8f0-11e6-a658-9801a78f6ec1"}
650
- Attempting to get UniqueModel 3978a608-a8f0-11e6-a658-9801a78f6ec1
651
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "3978a608-a8f0-11e6-a658-9801a78f6ec1"], ["LIMIT", 1]]
652
- Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.1ms)
653
-  (2.0ms) rollback transaction
654
-  (0.1ms) begin transaction
655
- -----------------------------------------------
656
- TestsControllerTest: test_handle_standard_error
657
- -----------------------------------------------
658
- Processing by TestsController#index as HTML
659
- StandardError
660
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
661
-  (0.0ms) rollback transaction
662
-  (0.0ms) begin transaction
663
- ------------------------------------------------
664
- TestsControllerTest: test_render_multiple_errors
665
- ------------------------------------------------
666
- Processing by TestsController#index as HTML
667
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
668
-  (0.1ms) rollback transaction
669
-  (0.0ms) begin transaction
670
- -------------------------------------------------------------
671
- TestsControllerTest: test_Predefined_errors_should_be_handled
672
- -------------------------------------------------------------
673
- Processing by TestsController#show as HTML
674
- Parameters: {"id"=>"400"}
675
- 400 - Repia::Errors::BadRequest
676
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
677
- Processing by TestsController#show as HTML
678
- Parameters: {"id"=>"401"}
679
- 401 - Repia::Errors::Unauthorized
680
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
681
- Processing by TestsController#show as HTML
682
- Parameters: {"id"=>"404"}
683
- 404 - Repia::Errors::NotFound
684
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
685
- Processing by TestsController#show as HTML
686
- Parameters: {"id"=>"409"}
687
- 409 - Repia::Errors::Conflict
688
- Completed 409 Conflict in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
689
- Processing by TestsController#show as HTML
690
- Parameters: {"id"=>"500"}
691
- 500 - Repia::Errors::InternalServerError
692
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
693
-  (0.0ms) rollback transaction
694
-  (0.0ms) begin transaction
695
- ----------------------------------------------------
696
- TestsControllerTest: test_options_request_is_handled
697
- ----------------------------------------------------
698
- Processing by TestsController#options as HTML
699
- Rendering text template
700
- Rendered text template (0.0ms)
701
- Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
702
- Processing by TestsController#options as HTML
703
- Rendering text template
704
- Rendered text template (0.0ms)
705
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
706
-  (0.0ms) rollback transaction
707
-  (0.0ms) begin transaction
708
- -------------------------------------------------------------------------
709
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
710
- -------------------------------------------------------------------------
711
- Processing by TestsController#show as HTML
712
- Parameters: {"id"=>"blah"}
713
- Attempting to get UniqueModel blah
714
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
715
- 404 - UniqueModel blah cannot be found
716
- Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
717
-  (0.0ms) rollback transaction
718
-  (0.1ms) begin transaction
719
- ----------------------------------------
720
- TestsControllerTest: test_exceptions_app
721
- ----------------------------------------
722
- Processing by TestsController#show as HTML
723
- Parameters: {"id"=>"blah"}
724
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
725
-  (0.0ms) rollback transaction
726
-  (0.0ms) begin transaction
727
- -----------------------------------------------------------------------
728
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
729
- -----------------------------------------------------------------------
730
-  (0.0ms) SAVEPOINT active_record_1
731
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "39815ac8-a8f0-11e6-a658-9801a78f6ec1"], ["created_at", 2016-11-12 15:53:59 UTC], ["updated_at", 2016-11-12 15:53:59 UTC]]
732
-  (0.1ms) RELEASE SAVEPOINT active_record_1
733
-  (0.3ms) rollback transaction
734
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
735
-  (0.1ms) begin transaction
736
- -----------------------------------------------------------------------
737
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
738
- -----------------------------------------------------------------------
739
-  (0.0ms) SAVEPOINT active_record_1
740
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "4028f16a-a8f0-11e6-a826-9801a78f6ec1"], ["created_at", 2016-11-12 15:54:10 UTC], ["updated_at", 2016-11-12 15:54:10 UTC]]
741
-  (0.0ms) RELEASE SAVEPOINT active_record_1
742
-  (0.3ms) rollback transaction
743
-  (0.1ms) begin transaction
744
- ----------------------------------------------------------------------------------------
745
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
746
- ----------------------------------------------------------------------------------------
747
-  (0.0ms) rollback transaction
748
-  (0.0ms) begin transaction
749
- ----------------------------------------------------------------------------------
750
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
751
- ----------------------------------------------------------------------------------
752
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fbadeeac838>, "rack.errors"=>#<StringIO:0x007fbadeeac900>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
753
-  (0.0ms) rollback transaction
754
-  (0.1ms) begin transaction
755
- ----------------------------------------------------
756
- TestsControllerTest: test_options_request_is_handled
757
- ----------------------------------------------------
758
- Processing by TestsController#options as HTML
759
- Rendering text template
760
- Rendered text template (0.0ms)
761
- Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
762
- Processing by TestsController#options as HTML
763
- Rendering text template
764
- Rendered text template (0.0ms)
765
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
766
-  (0.0ms) rollback transaction
767
-  (0.0ms) begin transaction
768
- ----------------------------------------
769
- TestsControllerTest: test_exceptions_app
770
- ----------------------------------------
771
- Processing by TestsController#show as HTML
772
- Parameters: {"id"=>"blah"}
773
- Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
774
-  (0.0ms) rollback transaction
775
-  (0.0ms) begin transaction
776
- ------------------------------------------------
777
- TestsControllerTest: test_render_multiple_errors
778
- ------------------------------------------------
779
- Processing by TestsController#index as HTML
780
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
781
-  (0.0ms) rollback transaction
782
-  (0.0ms) begin transaction
783
- -------------------------------------------------------------
784
- TestsControllerTest: test_Predefined_errors_should_be_handled
785
- -------------------------------------------------------------
786
- Processing by TestsController#show as HTML
787
- Parameters: {"id"=>"400"}
788
- 400 - Repia::Errors::BadRequest
789
- Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
790
- Processing by TestsController#show as HTML
791
- Parameters: {"id"=>"401"}
792
- 401 - Repia::Errors::Unauthorized
793
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
794
- Processing by TestsController#show as HTML
795
- Parameters: {"id"=>"404"}
796
- 404 - Repia::Errors::NotFound
797
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
798
- Processing by TestsController#show as HTML
799
- Parameters: {"id"=>"409"}
800
- 409 - Repia::Errors::Conflict
801
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
802
- Processing by TestsController#show as HTML
803
- Parameters: {"id"=>"500"}
804
- 500 - Repia::Errors::InternalServerError
805
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
806
-  (0.1ms) rollback transaction
807
-  (0.1ms) begin transaction
808
- -----------------------------------------------
809
- TestsControllerTest: test_handle_standard_error
810
- -----------------------------------------------
811
- Processing by TestsController#index as HTML
812
- StandardError
813
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
814
-  (0.1ms) rollback transaction
815
-  (0.1ms) begin transaction
816
- ----------------------------------------------------------------
817
- TestsControllerTest: test_find_object_will_find_object_if_exists
818
- ----------------------------------------------------------------
819
-  (0.0ms) SAVEPOINT active_record_1
820
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "403094ba-a8f0-11e6-a826-9801a78f6ec1"], ["created_at", 2016-11-12 15:54:10 UTC], ["updated_at", 2016-11-12 15:54:10 UTC]]
821
-  (0.0ms) RELEASE SAVEPOINT active_record_1
822
- Processing by TestsController#show as HTML
823
- Parameters: {"id"=>"403094ba-a8f0-11e6-a826-9801a78f6ec1"}
824
- Attempting to get UniqueModel 403094ba-a8f0-11e6-a826-9801a78f6ec1
825
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "403094ba-a8f0-11e6-a826-9801a78f6ec1"], ["LIMIT", 1]]
826
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
827
-  (2.1ms) rollback transaction
828
-  (0.1ms) begin transaction
829
- -------------------------------------------------------------------------
830
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
831
- -------------------------------------------------------------------------
832
- Processing by TestsController#show as HTML
833
- Parameters: {"id"=>"blah"}
834
- Attempting to get UniqueModel blah
835
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
836
- 404 - UniqueModel blah cannot be found
837
- Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
838
-  (0.0ms) rollback transaction
839
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
840
-  (0.1ms) begin transaction
841
- ----------------------------------------------------------------------------------
842
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
843
- ----------------------------------------------------------------------------------
844
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f9fd99f6c50>, "rack.errors"=>#<StringIO:0x007f9fd99f6cc8>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
845
-  (0.0ms) rollback transaction
846
-  (0.0ms) begin transaction
847
- ----------------------------------------------------------------------------------------
848
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
849
- ----------------------------------------------------------------------------------------
850
-  (0.0ms) rollback transaction
851
-  (0.0ms) begin transaction
852
- ------------------------------------------------
853
- TestsControllerTest: test_render_multiple_errors
854
- ------------------------------------------------
855
- Processing by TestsController#index as HTML
856
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
857
-  (0.1ms) rollback transaction
858
-  (0.1ms) begin transaction
859
- -------------------------------------------------------------------------
860
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
861
- -------------------------------------------------------------------------
862
- Processing by TestsController#show as HTML
863
- Parameters: {"id"=>"blah"}
864
- Attempting to get UniqueModel blah
865
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
866
- 404 - UniqueModel blah cannot be found
867
- Completed 404 Not Found in 6ms (Views: 0.2ms | ActiveRecord: 0.3ms)
868
-  (0.0ms) rollback transaction
869
-  (0.0ms) begin transaction
870
- ----------------------------------------------------
871
- TestsControllerTest: test_options_request_is_handled
872
- ----------------------------------------------------
873
- Processing by TestsController#options as HTML
874
- Rendering text template
875
- Rendered text template (0.0ms)
876
- Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
877
- Processing by TestsController#options as HTML
878
- Rendering text template
879
- Rendered text template (0.0ms)
880
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
881
-  (0.1ms) rollback transaction
882
-  (0.1ms) begin transaction
883
- -------------------------------------------------------------
884
- TestsControllerTest: test_Predefined_errors_should_be_handled
885
- -------------------------------------------------------------
886
- Processing by TestsController#show as HTML
887
- Parameters: {"id"=>"400"}
888
- 400 - Repia::Errors::BadRequest
889
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
890
- Processing by TestsController#show as HTML
891
- Parameters: {"id"=>"401"}
892
- 401 - Repia::Errors::Unauthorized
893
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
894
- Processing by TestsController#show as HTML
895
- Parameters: {"id"=>"404"}
896
- 404 - Repia::Errors::NotFound
897
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
898
- Processing by TestsController#show as HTML
899
- Parameters: {"id"=>"409"}
900
- 409 - Repia::Errors::Conflict
901
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
902
- Processing by TestsController#show as HTML
903
- Parameters: {"id"=>"500"}
904
- 500 - Repia::Errors::InternalServerError
905
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
906
-  (0.0ms) rollback transaction
907
-  (0.0ms) begin transaction
908
- ----------------------------------------------------------------
909
- TestsControllerTest: test_find_object_will_find_object_if_exists
910
- ----------------------------------------------------------------
911
-  (0.0ms) SAVEPOINT active_record_1
912
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "55b31cb8-a8f0-11e6-8320-9801a78f6ec1"], ["created_at", 2016-11-12 15:54:46 UTC], ["updated_at", 2016-11-12 15:54:46 UTC]]
913
-  (0.0ms) RELEASE SAVEPOINT active_record_1
914
- Processing by TestsController#show as HTML
915
- Parameters: {"id"=>"55b31cb8-a8f0-11e6-8320-9801a78f6ec1"}
916
- Attempting to get UniqueModel 55b31cb8-a8f0-11e6-8320-9801a78f6ec1
917
- UniqueModel Load (0.0ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "55b31cb8-a8f0-11e6-8320-9801a78f6ec1"], ["LIMIT", 1]]
918
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
919
-  (2.0ms) rollback transaction
920
-  (0.1ms) begin transaction
921
- ----------------------------------------
922
- TestsControllerTest: test_exceptions_app
923
- ----------------------------------------
924
- Processing by TestsController#show as HTML
925
- Parameters: {"id"=>"blah"}
926
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
927
-  (0.0ms) rollback transaction
928
-  (0.0ms) begin transaction
929
- -----------------------------------------------
930
- TestsControllerTest: test_handle_standard_error
931
- -----------------------------------------------
932
- Processing by TestsController#index as HTML
933
- StandardError
934
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
935
-  (0.0ms) rollback transaction
936
-  (0.0ms) begin transaction
937
- -----------------------------------------------------------------------
938
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
939
- -----------------------------------------------------------------------
940
-  (0.0ms) SAVEPOINT active_record_1
941
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "55b75206-a8f0-11e6-8320-9801a78f6ec1"], ["created_at", 2016-11-12 15:54:46 UTC], ["updated_at", 2016-11-12 15:54:46 UTC]]
942
-  (0.0ms) RELEASE SAVEPOINT active_record_1
943
-  (0.3ms) rollback transaction
944
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
945
-  (0.1ms) begin transaction
946
- ----------------------------------------
947
- TestsControllerTest: test_exceptions_app
948
- ----------------------------------------
949
- Processing by TestsController#show as HTML
950
- Parameters: {"id"=>"blah"}
951
- Completed 404 Not Found in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
952
-  (0.0ms) rollback transaction
953
-  (0.0ms) begin transaction
954
- -------------------------------------------------------------------------
955
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
956
- -------------------------------------------------------------------------
957
- Processing by TestsController#show as HTML
958
- Parameters: {"id"=>"blah"}
959
- Attempting to get UniqueModel blah
960
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
961
- 404 - UniqueModel blah cannot be found
962
- Completed 404 Not Found in 6ms (Views: 0.2ms | ActiveRecord: 0.3ms)
963
-  (0.0ms) rollback transaction
964
-  (0.1ms) begin transaction
965
- ------------------------------------------------
966
- TestsControllerTest: test_render_multiple_errors
967
- ------------------------------------------------
968
- Processing by TestsController#index as HTML
969
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
970
-  (0.0ms) rollback transaction
971
-  (0.0ms) begin transaction
972
- ----------------------------------------------------------------
973
- TestsControllerTest: test_find_object_will_find_object_if_exists
974
- ----------------------------------------------------------------
975
-  (0.1ms) SAVEPOINT active_record_1
976
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "5f4fdc7a-a8f0-11e6-a16d-9801a78f6ec1"], ["created_at", 2016-11-12 15:55:02 UTC], ["updated_at", 2016-11-12 15:55:02 UTC]]
977
-  (0.0ms) RELEASE SAVEPOINT active_record_1
978
- Processing by TestsController#show as HTML
979
- Parameters: {"id"=>"5f4fdc7a-a8f0-11e6-a16d-9801a78f6ec1"}
980
- Attempting to get UniqueModel 5f4fdc7a-a8f0-11e6-a16d-9801a78f6ec1
981
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "5f4fdc7a-a8f0-11e6-a16d-9801a78f6ec1"], ["LIMIT", 1]]
982
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
983
-  (2.1ms) rollback transaction
984
-  (0.0ms) begin transaction
985
- -------------------------------------------------------------
986
- TestsControllerTest: test_Predefined_errors_should_be_handled
987
- -------------------------------------------------------------
988
- Processing by TestsController#show as HTML
989
- Parameters: {"id"=>"400"}
990
- 400 - Repia::Errors::BadRequest
991
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
992
- Processing by TestsController#show as HTML
993
- Parameters: {"id"=>"401"}
994
- 401 - Repia::Errors::Unauthorized
995
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
996
- Processing by TestsController#show as HTML
997
- Parameters: {"id"=>"404"}
998
- 404 - Repia::Errors::NotFound
999
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1000
- Processing by TestsController#show as HTML
1001
- Parameters: {"id"=>"409"}
1002
- 409 - Repia::Errors::Conflict
1003
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1004
- Processing by TestsController#show as HTML
1005
- Parameters: {"id"=>"500"}
1006
- 500 - Repia::Errors::InternalServerError
1007
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1008
-  (0.0ms) rollback transaction
1009
-  (0.0ms) begin transaction
1010
- ----------------------------------------------------
1011
- TestsControllerTest: test_options_request_is_handled
1012
- ----------------------------------------------------
1013
- Processing by TestsController#options as HTML
1014
- Rendering text template
1015
- Rendered text template (0.0ms)
1016
- Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
1017
- Processing by TestsController#options as HTML
1018
- Rendering text template
1019
- Rendered text template (0.0ms)
1020
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1021
-  (0.0ms) rollback transaction
1022
-  (0.0ms) begin transaction
1023
- -----------------------------------------------
1024
- TestsControllerTest: test_handle_standard_error
1025
- -----------------------------------------------
1026
- Processing by TestsController#index as HTML
1027
- StandardError
1028
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1029
-  (0.0ms) rollback transaction
1030
-  (0.0ms) begin transaction
1031
- -----------------------------------------------------------------------
1032
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1033
- -----------------------------------------------------------------------
1034
-  (0.0ms) SAVEPOINT active_record_1
1035
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "5f5582ec-a8f0-11e6-a16d-9801a78f6ec1"], ["created_at", 2016-11-12 15:55:02 UTC], ["updated_at", 2016-11-12 15:55:02 UTC]]
1036
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1037
-  (0.3ms) rollback transaction
1038
-  (0.1ms) begin transaction
1039
- ----------------------------------------------------------------------------------------
1040
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1041
- ----------------------------------------------------------------------------------------
1042
-  (0.0ms) rollback transaction
1043
-  (0.0ms) begin transaction
1044
- ----------------------------------------------------------------------------------
1045
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1046
- ----------------------------------------------------------------------------------
1047
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fc8192529a0>, "rack.errors"=>#<StringIO:0x007fc819252a40>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1048
-  (0.0ms) rollback transaction
1049
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1050
-  (0.1ms) begin transaction
1051
- -----------------------------------------------------------------------
1052
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1053
- -----------------------------------------------------------------------
1054
-  (0.0ms) SAVEPOINT active_record_1
1055
- SQL (0.5ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "6b3aeac0-a8f0-11e6-adac-9801a78f6ec1"], ["created_at", 2016-11-12 15:55:22 UTC], ["updated_at", 2016-11-12 15:55:22 UTC]]
1056
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1057
-  (2.2ms) rollback transaction
1058
-  (0.1ms) begin transaction
1059
- ----------------------------------------
1060
- TestsControllerTest: test_exceptions_app
1061
- ----------------------------------------
1062
- Processing by TestsController#show as HTML
1063
- Parameters: {"id"=>"blah"}
1064
- Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1065
-  (0.1ms) rollback transaction
1066
-  (0.0ms) begin transaction
1067
- -----------------------------------------------
1068
- TestsControllerTest: test_handle_standard_error
1069
- -----------------------------------------------
1070
- Processing by TestsController#index as HTML
1071
- StandardError
1072
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1073
-  (0.0ms) rollback transaction
1074
-  (0.0ms) begin transaction
1075
- ----------------------------------------------------
1076
- TestsControllerTest: test_options_request_is_handled
1077
- ----------------------------------------------------
1078
- Processing by TestsController#options as HTML
1079
- Rendering text template
1080
- Rendered text template (0.0ms)
1081
- Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
1082
- Processing by TestsController#options as HTML
1083
- Rendering text template
1084
- Rendered text template (0.0ms)
1085
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1086
-  (0.1ms) rollback transaction
1087
-  (0.0ms) begin transaction
1088
- ------------------------------------------------
1089
- TestsControllerTest: test_render_multiple_errors
1090
- ------------------------------------------------
1091
- Processing by TestsController#index as HTML
1092
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1093
-  (0.0ms) rollback transaction
1094
-  (0.0ms) begin transaction
1095
- -------------------------------------------------------------
1096
- TestsControllerTest: test_Predefined_errors_should_be_handled
1097
- -------------------------------------------------------------
1098
- Processing by TestsController#show as HTML
1099
- Parameters: {"id"=>"400"}
1100
- 400 - Repia::Errors::BadRequest
1101
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1102
- Processing by TestsController#show as HTML
1103
- Parameters: {"id"=>"401"}
1104
- 401 - Repia::Errors::Unauthorized
1105
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1106
- Processing by TestsController#show as HTML
1107
- Parameters: {"id"=>"404"}
1108
- 404 - Repia::Errors::NotFound
1109
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1110
- Processing by TestsController#show as HTML
1111
- Parameters: {"id"=>"409"}
1112
- 409 - Repia::Errors::Conflict
1113
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1114
- Processing by TestsController#show as HTML
1115
- Parameters: {"id"=>"500"}
1116
- 500 - Repia::Errors::InternalServerError
1117
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1118
-  (0.0ms) rollback transaction
1119
-  (0.0ms) begin transaction
1120
- -------------------------------------------------------------------------
1121
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
1122
- -------------------------------------------------------------------------
1123
- Processing by TestsController#show as HTML
1124
- Parameters: {"id"=>"blah"}
1125
- Attempting to get UniqueModel blah
1126
- UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
1127
- 404 - UniqueModel blah cannot be found
1128
- Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1129
-  (0.0ms) rollback transaction
1130
-  (0.0ms) begin transaction
1131
- ----------------------------------------------------------------
1132
- TestsControllerTest: test_find_object_will_find_object_if_exists
1133
- ----------------------------------------------------------------
1134
-  (0.0ms) SAVEPOINT active_record_1
1135
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "6b431cea-a8f0-11e6-adac-9801a78f6ec1"], ["created_at", 2016-11-12 15:55:22 UTC], ["updated_at", 2016-11-12 15:55:22 UTC]]
1136
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1137
- Processing by TestsController#show as HTML
1138
- Parameters: {"id"=>"6b431cea-a8f0-11e6-adac-9801a78f6ec1"}
1139
- Attempting to get UniqueModel 6b431cea-a8f0-11e6-adac-9801a78f6ec1
1140
- UniqueModel Load (0.0ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "6b431cea-a8f0-11e6-adac-9801a78f6ec1"], ["LIMIT", 1]]
1141
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1142
-  (2.2ms) rollback transaction
1143
-  (0.1ms) begin transaction
1144
- ----------------------------------------------------------------------------------------
1145
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1146
- ----------------------------------------------------------------------------------------
1147
-  (0.0ms) rollback transaction
1148
-  (0.0ms) begin transaction
1149
- ----------------------------------------------------------------------------------
1150
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1151
- ----------------------------------------------------------------------------------
1152
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fa515d61b60>, "rack.errors"=>#<StringIO:0x007fa515d61bd8>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1153
-  (0.1ms) rollback transaction
1154
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1155
-  (0.1ms) begin transaction
1156
- -----------------------------------------------------------------------
1157
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1158
- -----------------------------------------------------------------------
1159
-  (0.0ms) SAVEPOINT active_record_1
1160
- SQL (0.5ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "75d770ac-a8f0-11e6-a569-9801a78f6ec1"], ["created_at", 2016-11-12 15:55:40 UTC], ["updated_at", 2016-11-12 15:55:40 UTC]]
1161
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1162
-  (2.2ms) rollback transaction
1163
-  (0.1ms) begin transaction
1164
- ----------------------------------------------------------------------------------
1165
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1166
- ----------------------------------------------------------------------------------
1167
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fd7a3d8beb8>, "rack.errors"=>#<StringIO:0x007fd7a3d92f60>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1168
-  (0.0ms) rollback transaction
1169
-  (0.0ms) begin transaction
1170
- ----------------------------------------------------------------------------------------
1171
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1172
- ----------------------------------------------------------------------------------------
1173
-  (0.1ms) rollback transaction
1174
-  (0.0ms) begin transaction
1175
- -----------------------------------------------
1176
- TestsControllerTest: test_handle_standard_error
1177
- -----------------------------------------------
1178
- Processing by TestsController#index as HTML
1179
- StandardError
1180
- Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1181
-  (0.1ms) rollback transaction
1182
-  (0.0ms) begin transaction
1183
- -------------------------------------------------------------------------
1184
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
1185
- -------------------------------------------------------------------------
1186
- Processing by TestsController#show as HTML
1187
- Parameters: {"id"=>"blah"}
1188
- Attempting to get UniqueModel blah
1189
- UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
1190
- 404 - UniqueModel blah cannot be found
1191
- Completed 404 Not Found in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1192
-  (0.1ms) rollback transaction
1193
-  (0.0ms) begin transaction
1194
- ----------------------------------------------------------------
1195
- TestsControllerTest: test_find_object_will_find_object_if_exists
1196
- ----------------------------------------------------------------
1197
-  (0.0ms) SAVEPOINT active_record_1
1198
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "75dd4e46-a8f0-11e6-a569-9801a78f6ec1"], ["created_at", 2016-11-12 15:55:40 UTC], ["updated_at", 2016-11-12 15:55:40 UTC]]
1199
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1200
- Processing by TestsController#show as HTML
1201
- Parameters: {"id"=>"75dd4e46-a8f0-11e6-a569-9801a78f6ec1"}
1202
- Attempting to get UniqueModel 75dd4e46-a8f0-11e6-a569-9801a78f6ec1
1203
- UniqueModel Load (0.0ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "75dd4e46-a8f0-11e6-a569-9801a78f6ec1"], ["LIMIT", 1]]
1204
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1205
-  (0.3ms) rollback transaction
1206
-  (0.0ms) begin transaction
1207
- -------------------------------------------------------------
1208
- TestsControllerTest: test_Predefined_errors_should_be_handled
1209
- -------------------------------------------------------------
1210
- Processing by TestsController#show as HTML
1211
- Parameters: {"id"=>"400"}
1212
- 400 - Repia::Errors::BadRequest
1213
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1214
- Processing by TestsController#show as HTML
1215
- Parameters: {"id"=>"401"}
1216
- 401 - Repia::Errors::Unauthorized
1217
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1218
- Processing by TestsController#show as HTML
1219
- Parameters: {"id"=>"404"}
1220
- 404 - Repia::Errors::NotFound
1221
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1222
- Processing by TestsController#show as HTML
1223
- Parameters: {"id"=>"409"}
1224
- 409 - Repia::Errors::Conflict
1225
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1226
- Processing by TestsController#show as HTML
1227
- Parameters: {"id"=>"500"}
1228
- 500 - Repia::Errors::InternalServerError
1229
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1230
-  (0.0ms) rollback transaction
1231
-  (0.2ms) begin transaction
1232
- ----------------------------------------------------
1233
- TestsControllerTest: test_options_request_is_handled
1234
- ----------------------------------------------------
1235
- Processing by TestsController#options as HTML
1236
- Rendering text template
1237
- Rendered text template (0.0ms)
1238
- Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
1239
- Processing by TestsController#options as HTML
1240
- Rendering text template
1241
- Rendered text template (0.0ms)
1242
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1243
-  (0.1ms) rollback transaction
1244
-  (0.0ms) begin transaction
1245
- ----------------------------------------
1246
- TestsControllerTest: test_exceptions_app
1247
- ----------------------------------------
1248
- Processing by TestsController#show as HTML
1249
- Parameters: {"id"=>"blah"}
1250
- Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1251
-  (0.1ms) rollback transaction
1252
-  (0.1ms) begin transaction
1253
- ------------------------------------------------
1254
- TestsControllerTest: test_render_multiple_errors
1255
- ------------------------------------------------
1256
- Processing by TestsController#index as HTML
1257
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1258
-  (0.0ms) rollback transaction
1259
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1260
-  (0.1ms) begin transaction
1261
- ----------------------------------------------------------------------------------------
1262
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1263
- ----------------------------------------------------------------------------------------
1264
-  (0.0ms) rollback transaction
1265
-  (0.0ms) begin transaction
1266
- ----------------------------------------------------------------------------------
1267
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1268
- ----------------------------------------------------------------------------------
1269
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fa04ad36570>, "rack.errors"=>#<StringIO:0x007fa04ad366b0>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1270
-  (0.1ms) rollback transaction
1271
-  (0.0ms) begin transaction
1272
- -------------------------------------------------------------------------
1273
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
1274
- -------------------------------------------------------------------------
1275
- Processing by TestsController#show as HTML
1276
- Parameters: {"id"=>"blah"}
1277
- Attempting to get UniqueModel blah
1278
- UniqueModel Load (0.3ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
1279
- 404 - UniqueModel blah cannot be found
1280
- Completed 404 Not Found in 7ms (Views: 0.2ms | ActiveRecord: 0.5ms)
1281
-  (0.0ms) rollback transaction
1282
-  (0.0ms) begin transaction
1283
- -----------------------------------------------
1284
- TestsControllerTest: test_handle_standard_error
1285
- -----------------------------------------------
1286
- Processing by TestsController#index as HTML
1287
- StandardError
1288
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1289
-  (0.0ms) rollback transaction
1290
-  (0.0ms) begin transaction
1291
- ----------------------------------------------------
1292
- TestsControllerTest: test_options_request_is_handled
1293
- ----------------------------------------------------
1294
- Processing by TestsController#options as HTML
1295
- Rendering text template
1296
- Rendered text template (0.0ms)
1297
- Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
1298
- Processing by TestsController#options as HTML
1299
- Rendering text template
1300
- Rendered text template (0.0ms)
1301
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1302
-  (0.1ms) rollback transaction
1303
-  (0.1ms) begin transaction
1304
- ----------------------------------------
1305
- TestsControllerTest: test_exceptions_app
1306
- ----------------------------------------
1307
- Processing by TestsController#show as HTML
1308
- Parameters: {"id"=>"blah"}
1309
- Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1310
-  (0.0ms) rollback transaction
1311
-  (0.0ms) begin transaction
1312
- ----------------------------------------------------------------
1313
- TestsControllerTest: test_find_object_will_find_object_if_exists
1314
- ----------------------------------------------------------------
1315
-  (0.1ms) SAVEPOINT active_record_1
1316
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "cf10b15a-ae05-11e6-bfcc-9801a78f6ec1"], ["created_at", 2016-11-19 03:11:05 UTC], ["updated_at", 2016-11-19 03:11:05 UTC]]
1317
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1318
- Processing by TestsController#show as HTML
1319
- Parameters: {"id"=>"cf10b15a-ae05-11e6-bfcc-9801a78f6ec1"}
1320
- Attempting to get UniqueModel cf10b15a-ae05-11e6-bfcc-9801a78f6ec1
1321
- UniqueModel Load (0.0ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "cf10b15a-ae05-11e6-bfcc-9801a78f6ec1"], ["LIMIT", 1]]
1322
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1323
-  (0.3ms) rollback transaction
1324
-  (0.1ms) begin transaction
1325
- -------------------------------------------------------------
1326
- TestsControllerTest: test_Predefined_errors_should_be_handled
1327
- -------------------------------------------------------------
1328
- Processing by TestsController#show as HTML
1329
- Parameters: {"id"=>"400"}
1330
- 400 - Repia::Errors::BadRequest
1331
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1332
- Processing by TestsController#show as HTML
1333
- Parameters: {"id"=>"401"}
1334
- 401 - Repia::Errors::Unauthorized
1335
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1336
- Processing by TestsController#show as HTML
1337
- Parameters: {"id"=>"404"}
1338
- 404 - Repia::Errors::NotFound
1339
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1340
- Processing by TestsController#show as HTML
1341
- Parameters: {"id"=>"409"}
1342
- 409 - Repia::Errors::Conflict
1343
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1344
- Processing by TestsController#show as HTML
1345
- Parameters: {"id"=>"500"}
1346
- 500 - Repia::Errors::InternalServerError
1347
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1348
-  (0.0ms) rollback transaction
1349
-  (0.1ms) begin transaction
1350
- ------------------------------------------------
1351
- TestsControllerTest: test_render_multiple_errors
1352
- ------------------------------------------------
1353
- Processing by TestsController#index as HTML
1354
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1355
-  (0.0ms) rollback transaction
1356
-  (0.0ms) begin transaction
1357
- -----------------------------------------------------------------------
1358
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1359
- -----------------------------------------------------------------------
1360
-  (0.0ms) SAVEPOINT active_record_1
1361
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "cf163fda-ae05-11e6-bfcc-9801a78f6ec1"], ["created_at", 2016-11-19 03:11:05 UTC], ["updated_at", 2016-11-19 03:11:05 UTC]]
1362
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1363
-  (0.3ms) rollback transaction
1364
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1365
-  (0.1ms) begin transaction
1366
- ----------------------------------------------------------------------------------------
1367
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1368
- ----------------------------------------------------------------------------------------
1369
-  (0.0ms) rollback transaction
1370
-  (0.0ms) begin transaction
1371
- ----------------------------------------------------------------------------------
1372
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1373
- ----------------------------------------------------------------------------------
1374
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fb19a4402c0>, "rack.errors"=>#<StringIO:0x007fb19a440338>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1375
-  (0.0ms) rollback transaction
1376
-  (0.0ms) begin transaction
1377
- -----------------------------------------------------------------------
1378
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1379
- -----------------------------------------------------------------------
1380
-  (0.0ms) SAVEPOINT active_record_1
1381
- SQL (0.7ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "e6b85fc2-ae70-11e6-8dbb-9801a78f6ec1"], ["created_at", 2016-11-19 15:57:41 UTC], ["updated_at", 2016-11-19 15:57:41 UTC]]
1382
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1383
-  (0.3ms) rollback transaction
1384
-  (0.1ms) begin transaction
1385
- ----------------------------------------------------------------
1386
- TestsControllerTest: test_find_object_will_find_object_if_exists
1387
- ----------------------------------------------------------------
1388
-  (0.1ms) SAVEPOINT active_record_1
1389
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "e6bcdc00-ae70-11e6-8dbb-9801a78f6ec1"], ["created_at", 2016-11-19 15:57:41 UTC], ["updated_at", 2016-11-19 15:57:41 UTC]]
1390
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1391
- Processing by TestsController#show as HTML
1392
- Parameters: {"id"=>"e6bcdc00-ae70-11e6-8dbb-9801a78f6ec1"}
1393
- Attempting to get UniqueModel e6bcdc00-ae70-11e6-8dbb-9801a78f6ec1
1394
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "e6bcdc00-ae70-11e6-8dbb-9801a78f6ec1"], ["LIMIT", 1]]
1395
- Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1396
-  (0.3ms) rollback transaction
1397
-  (0.0ms) begin transaction
1398
- -------------------------------------------------------------
1399
- TestsControllerTest: test_Predefined_errors_should_be_handled
1400
- -------------------------------------------------------------
1401
- Processing by TestsController#show as HTML
1402
- Parameters: {"id"=>"400"}
1403
- 400 - Repia::Errors::BadRequest
1404
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1405
- Processing by TestsController#show as HTML
1406
- Parameters: {"id"=>"401"}
1407
- 401 - Repia::Errors::Unauthorized
1408
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1409
- Processing by TestsController#show as HTML
1410
- Parameters: {"id"=>"404"}
1411
- 404 - Repia::Errors::NotFound
1412
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1413
- Processing by TestsController#show as HTML
1414
- Parameters: {"id"=>"409"}
1415
- 409 - Repia::Errors::Conflict
1416
- Completed 409 Conflict in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1417
- Processing by TestsController#show as HTML
1418
- Parameters: {"id"=>"500"}
1419
- 500 - Repia::Errors::InternalServerError
1420
- Completed 500 Internal Server Error in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1421
-  (0.1ms) rollback transaction
1422
-  (0.1ms) begin transaction
1423
- ----------------------------------------------------
1424
- TestsControllerTest: test_options_request_is_handled
1425
- ----------------------------------------------------
1426
- Processing by TestsController#options as HTML
1427
- Rendering text template
1428
- Rendered text template (0.0ms)
1429
- Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
1430
- Processing by TestsController#options as HTML
1431
- Rendering text template
1432
- Rendered text template (0.0ms)
1433
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1434
-  (0.1ms) rollback transaction
1435
-  (0.0ms) begin transaction
1436
- ------------------------------------------------
1437
- TestsControllerTest: test_render_multiple_errors
1438
- ------------------------------------------------
1439
- Processing by TestsController#index as HTML
1440
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1441
-  (0.0ms) rollback transaction
1442
-  (0.0ms) begin transaction
1443
- ----------------------------------------
1444
- TestsControllerTest: test_exceptions_app
1445
- ----------------------------------------
1446
- Processing by TestsController#show as HTML
1447
- Parameters: {"id"=>"blah"}
1448
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1449
-  (0.0ms) rollback transaction
1450
-  (0.1ms) begin transaction
1451
- -------------------------------------------------------------------------
1452
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
1453
- -------------------------------------------------------------------------
1454
- Processing by TestsController#show as HTML
1455
- Parameters: {"id"=>"blah"}
1456
- Attempting to get UniqueModel blah
1457
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
1458
- 404 - UniqueModel blah cannot be found
1459
- Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1460
-  (0.0ms) rollback transaction
1461
-  (0.0ms) begin transaction
1462
- -----------------------------------------------
1463
- TestsControllerTest: test_handle_standard_error
1464
- -----------------------------------------------
1465
- Processing by TestsController#index as HTML
1466
- StandardError
1467
- Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1468
-  (0.0ms) rollback transaction
1469
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1470
-  (0.1ms) begin transaction
1471
- ----------------------------------------------------------------
1472
- TestsControllerTest: test_find_object_will_find_object_if_exists
1473
- ----------------------------------------------------------------
1474
-  (0.1ms) SAVEPOINT active_record_1
1475
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "6f8fae8a-ae72-11e6-81f2-9801a78f6ec1"], ["created_at", 2016-11-19 16:08:40 UTC], ["updated_at", 2016-11-19 16:08:40 UTC]]
1476
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1477
- Processing by TestsController#show as HTML
1478
- Parameters: {"id"=>"6f8fae8a-ae72-11e6-81f2-9801a78f6ec1"}
1479
- Attempting to get UniqueModel 6f8fae8a-ae72-11e6-81f2-9801a78f6ec1
1480
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "6f8fae8a-ae72-11e6-81f2-9801a78f6ec1"], ["LIMIT", 1]]
1481
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
1482
-  (2.0ms) rollback transaction
1483
-  (0.0ms) begin transaction
1484
- ----------------------------------------------------
1485
- TestsControllerTest: test_options_request_is_handled
1486
- ----------------------------------------------------
1487
- Processing by TestsController#options as HTML
1488
- Rendering text template
1489
- Rendered text template (0.0ms)
1490
- Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
1491
- Processing by TestsController#options as HTML
1492
- Rendering text template
1493
- Rendered text template (0.0ms)
1494
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1495
-  (0.0ms) rollback transaction
1496
-  (0.0ms) begin transaction
1497
- ------------------------------------------------
1498
- TestsControllerTest: test_render_multiple_errors
1499
- ------------------------------------------------
1500
- Processing by TestsController#index as HTML
1501
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1502
-  (0.0ms) rollback transaction
1503
-  (0.0ms) begin transaction
1504
- ----------------------------------------
1505
- TestsControllerTest: test_exceptions_app
1506
- ----------------------------------------
1507
- Processing by TestsController#show as HTML
1508
- Parameters: {"id"=>"blah"}
1509
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1510
-  (0.0ms) rollback transaction
1511
-  (0.1ms) begin transaction
1512
- -------------------------------------------------------------------------
1513
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
1514
- -------------------------------------------------------------------------
1515
- Processing by TestsController#show as HTML
1516
- Parameters: {"id"=>"blah"}
1517
- Attempting to get UniqueModel blah
1518
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
1519
- 404 - UniqueModel blah cannot be found
1520
- Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1521
-  (0.1ms) rollback transaction
1522
-  (0.1ms) begin transaction
1523
- -------------------------------------------------------------
1524
- TestsControllerTest: test_Predefined_errors_should_be_handled
1525
- -------------------------------------------------------------
1526
- Processing by TestsController#show as HTML
1527
- Parameters: {"id"=>"400"}
1528
- 400 - Repia::Errors::BadRequest
1529
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1530
- Processing by TestsController#show as HTML
1531
- Parameters: {"id"=>"401"}
1532
- 401 - Repia::Errors::Unauthorized
1533
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1534
- Processing by TestsController#show as HTML
1535
- Parameters: {"id"=>"404"}
1536
- 404 - Repia::Errors::NotFound
1537
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1538
- Processing by TestsController#show as HTML
1539
- Parameters: {"id"=>"409"}
1540
- 409 - Repia::Errors::Conflict
1541
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1542
- Processing by TestsController#show as HTML
1543
- Parameters: {"id"=>"500"}
1544
- 500 - Repia::Errors::InternalServerError
1545
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1546
-  (0.1ms) rollback transaction
1547
-  (0.0ms) begin transaction
1548
- -----------------------------------------------
1549
- TestsControllerTest: test_handle_standard_error
1550
- -----------------------------------------------
1551
- Processing by TestsController#index as HTML
1552
- StandardError
1553
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1554
-  (0.0ms) rollback transaction
1555
-  (0.1ms) begin transaction
1556
- -----------------------------------------------------------------------
1557
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1558
- -----------------------------------------------------------------------
1559
-  (0.0ms) SAVEPOINT active_record_1
1560
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "6f986ade-ae72-11e6-81f2-9801a78f6ec1"], ["created_at", 2016-11-19 16:08:40 UTC], ["updated_at", 2016-11-19 16:08:40 UTC]]
1561
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1562
-  (0.3ms) rollback transaction
1563
-  (0.0ms) begin transaction
1564
- ----------------------------------------------------------------------------------------
1565
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1566
- ----------------------------------------------------------------------------------------
1567
-  (0.0ms) rollback transaction
1568
-  (0.0ms) begin transaction
1569
- ----------------------------------------------------------------------------------
1570
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1571
- ----------------------------------------------------------------------------------
1572
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007ff8369c44c0>, "rack.errors"=>#<StringIO:0x007ff8369c4560>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1573
-  (0.0ms) rollback transaction
1574
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1575
-  (0.1ms) begin transaction
1576
- -----------------------------------------------------------------------
1577
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1578
- -----------------------------------------------------------------------
1579
-  (0.1ms) SAVEPOINT active_record_1
1580
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "2a08432a-ae74-11e6-b644-9801a78f6ec1"], ["created_at", 2016-11-19 16:21:02 UTC], ["updated_at", 2016-11-19 16:21:02 UTC]]
1581
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1582
-  (0.3ms) rollback transaction
1583
-  (0.1ms) begin transaction
1584
- ----------------------------------------
1585
- TestsControllerTest: test_exceptions_app
1586
- ----------------------------------------
1587
- Processing by TestsController#show as HTML
1588
- Parameters: {"id"=>"blah"}
1589
- Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1590
-  (0.1ms) rollback transaction
1591
-  (0.0ms) begin transaction
1592
- ----------------------------------------------------
1593
- TestsControllerTest: test_options_request_is_handled
1594
- ----------------------------------------------------
1595
- Processing by TestsController#options as HTML
1596
- Rendering text template
1597
- Rendered text template (0.0ms)
1598
- Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
1599
- Processing by TestsController#options as HTML
1600
- Rendering text template
1601
- Rendered text template (0.0ms)
1602
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1603
-  (0.1ms) rollback transaction
1604
-  (0.0ms) begin transaction
1605
- ----------------------------------------------------------------
1606
- TestsControllerTest: test_find_object_will_find_object_if_exists
1607
- ----------------------------------------------------------------
1608
-  (0.0ms) SAVEPOINT active_record_1
1609
- SQL (0.3ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "2a0e6354-ae74-11e6-b644-9801a78f6ec1"], ["created_at", 2016-11-19 16:21:02 UTC], ["updated_at", 2016-11-19 16:21:02 UTC]]
1610
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1611
- Processing by TestsController#show as HTML
1612
- Parameters: {"id"=>"2a0e6354-ae74-11e6-b644-9801a78f6ec1"}
1613
- Attempting to get UniqueModel 2a0e6354-ae74-11e6-b644-9801a78f6ec1
1614
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "2a0e6354-ae74-11e6-b644-9801a78f6ec1"], ["LIMIT", 1]]
1615
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1616
-  (6.8ms) rollback transaction
1617
-  (0.1ms) begin transaction
1618
- -----------------------------------------------
1619
- TestsControllerTest: test_handle_standard_error
1620
- -----------------------------------------------
1621
- Processing by TestsController#index as HTML
1622
- StandardError
1623
- Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1624
-  (0.1ms) rollback transaction
1625
-  (0.0ms) begin transaction
1626
- ------------------------------------------------
1627
- TestsControllerTest: test_render_multiple_errors
1628
- ------------------------------------------------
1629
- Processing by TestsController#index as HTML
1630
- Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1631
-  (0.1ms) rollback transaction
1632
-  (0.0ms) begin transaction
1633
- -------------------------------------------------------------------------
1634
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
1635
- -------------------------------------------------------------------------
1636
- Processing by TestsController#show as HTML
1637
- Parameters: {"id"=>"blah"}
1638
- Attempting to get UniqueModel blah
1639
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
1640
- 404 - UniqueModel blah cannot be found
1641
- Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1642
-  (0.0ms) rollback transaction
1643
-  (0.1ms) begin transaction
1644
- -------------------------------------------------------------
1645
- TestsControllerTest: test_Predefined_errors_should_be_handled
1646
- -------------------------------------------------------------
1647
- Processing by TestsController#show as HTML
1648
- Parameters: {"id"=>"400"}
1649
- 400 - Repia::Errors::BadRequest
1650
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1651
- Processing by TestsController#show as HTML
1652
- Parameters: {"id"=>"401"}
1653
- 401 - Repia::Errors::Unauthorized
1654
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1655
- Processing by TestsController#show as HTML
1656
- Parameters: {"id"=>"404"}
1657
- 404 - Repia::Errors::NotFound
1658
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1659
- Processing by TestsController#show as HTML
1660
- Parameters: {"id"=>"409"}
1661
- 409 - Repia::Errors::Conflict
1662
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1663
- Processing by TestsController#show as HTML
1664
- Parameters: {"id"=>"500"}
1665
- 500 - Repia::Errors::InternalServerError
1666
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1667
-  (0.0ms) rollback transaction
1668
-  (0.0ms) begin transaction
1669
- ----------------------------------------------------------------------------------------
1670
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1671
- ----------------------------------------------------------------------------------------
1672
-  (0.0ms) rollback transaction
1673
-  (0.0ms) begin transaction
1674
- ----------------------------------------------------------------------------------
1675
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1676
- ----------------------------------------------------------------------------------
1677
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007feb1d66ed78>, "rack.errors"=>#<StringIO:0x007feb1d66ee90>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1678
-  (0.0ms) rollback transaction
1679
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1680
-  (0.1ms) begin transaction
1681
- ----------------------------------------------------------------------------------
1682
- RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1683
- ----------------------------------------------------------------------------------
1684
- ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fbee32d3080>, "rack.errors"=>#<StringIO:0x007fbee32d30f8>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"DOESNOTEXIST", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/users", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0"}
1685
-  (0.0ms) rollback transaction
1686
-  (0.0ms) begin transaction
1687
- ----------------------------------------------------------------------------------------
1688
- RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1689
- ----------------------------------------------------------------------------------------
1690
-  (0.0ms) rollback transaction
1691
-  (0.0ms) begin transaction
1692
- -----------------------------------------------------------------------
1693
- RepiaUniqueModelTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1694
- -----------------------------------------------------------------------
1695
-  (0.0ms) SAVEPOINT active_record_1
1696
- SQL (0.4ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "0d2a9e2c-ae76-11e6-b2bd-9801a78f6ec1"], ["created_at", 2016-11-19 16:34:33 UTC], ["updated_at", 2016-11-19 16:34:33 UTC]]
1697
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1698
-  (2.0ms) rollback transaction
1699
-  (0.1ms) begin transaction
1700
- ------------------------------------------------
1701
- TestsControllerTest: test_render_multiple_errors
1702
- ------------------------------------------------
1703
- Processing by TestsController#index as HTML
1704
- Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1705
-  (0.0ms) rollback transaction
1706
-  (0.0ms) begin transaction
1707
- ----------------------------------------
1708
- TestsControllerTest: test_exceptions_app
1709
- ----------------------------------------
1710
- Processing by TestsController#show as HTML
1711
- Parameters: {"id"=>"blah"}
1712
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1713
-  (0.0ms) rollback transaction
1714
-  (0.0ms) begin transaction
1715
- -----------------------------------------------
1716
- TestsControllerTest: test_handle_standard_error
1717
- -----------------------------------------------
1718
- Processing by TestsController#index as HTML
1719
- StandardError
1720
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1721
-  (0.0ms) rollback transaction
1722
-  (0.1ms) begin transaction
1723
- ----------------------------------------------------------------
1724
- TestsControllerTest: test_find_object_will_find_object_if_exists
1725
- ----------------------------------------------------------------
1726
-  (0.0ms) SAVEPOINT active_record_1
1727
- SQL (0.2ms) INSERT INTO "unique_models" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "0d308bd4-ae76-11e6-b2bd-9801a78f6ec1"], ["created_at", 2016-11-19 16:34:33 UTC], ["updated_at", 2016-11-19 16:34:33 UTC]]
1728
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1729
- Processing by TestsController#show as HTML
1730
- Parameters: {"id"=>"0d308bd4-ae76-11e6-b2bd-9801a78f6ec1"}
1731
- Attempting to get UniqueModel 0d308bd4-ae76-11e6-b2bd-9801a78f6ec1
1732
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "0d308bd4-ae76-11e6-b2bd-9801a78f6ec1"], ["LIMIT", 1]]
1733
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1734
-  (0.5ms) rollback transaction
1735
-  (0.0ms) begin transaction
1736
- -------------------------------------------------------------------------
1737
- TestsControllerTest: test_find_object_will_error_if_object_does_not_exist
1738
- -------------------------------------------------------------------------
1739
- Processing by TestsController#show as HTML
1740
- Parameters: {"id"=>"blah"}
1741
- Attempting to get UniqueModel blah
1742
- UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT ? [["uuid", "blah"], ["LIMIT", 1]]
1743
- 404 - UniqueModel blah cannot be found
1744
- Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1745
-  (0.1ms) rollback transaction
1746
-  (0.0ms) begin transaction
1747
- ----------------------------------------------------
1748
- TestsControllerTest: test_options_request_is_handled
1749
- ----------------------------------------------------
1750
- Processing by TestsController#options as HTML
1751
- Rendering text template
1752
- Rendered text template (0.0ms)
1753
- Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
1754
- Processing by TestsController#options as HTML
1755
- Rendering text template
1756
- Rendered text template (0.0ms)
1757
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1758
-  (0.1ms) rollback transaction
1759
-  (0.0ms) begin transaction
1760
- -------------------------------------------------------------
1761
- TestsControllerTest: test_Predefined_errors_should_be_handled
1762
- -------------------------------------------------------------
1763
- Processing by TestsController#show as HTML
1764
- Parameters: {"id"=>"400"}
1765
- 400 - Repia::Errors::BadRequest
1766
- Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1767
- Processing by TestsController#show as HTML
1768
- Parameters: {"id"=>"401"}
1769
- 401 - Repia::Errors::Unauthorized
1770
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1771
- Processing by TestsController#show as HTML
1772
- Parameters: {"id"=>"404"}
1773
- 404 - Repia::Errors::NotFound
1774
- Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1775
- Processing by TestsController#show as HTML
1776
- Parameters: {"id"=>"409"}
1777
- 409 - Repia::Errors::Conflict
1778
- Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1779
- Processing by TestsController#show as HTML
1780
- Parameters: {"id"=>"500"}
1781
- 500 - Repia::Errors::InternalServerError
1782
- Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1783
-  (0.0ms) rollback transaction