repia 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c43c35f68fca4bb9550fc155b016f19c6ece35a1
4
- data.tar.gz: 7115749047f6e1813fb74d326a7d7c75c094c345
3
+ metadata.gz: 48cc1f107f305100b05ac5988d7b423c39c59871
4
+ data.tar.gz: d72b0acc3d21385ffceb17fd4da2b7e6779048ee
5
5
  SHA512:
6
- metadata.gz: 559a23596a4dababa985291550e502bc23081e78d1a7b7d9fbdb4302660db441cdd3e06b532eb41285c9a5c20a260322b1fa9ebaa051ad26b0495e2ebb4c971b
7
- data.tar.gz: 2b487c67856a82b5f077ed34d7748b9c26c254d371061a6bb80755130e25e7b8ee6c8da45eefe238950669c3ee2e0c7a7b4f411be8ea8b5f08bdb7c32cf04c29
6
+ metadata.gz: 41f69c5cb1c7312a558da4e468a60cdcbdace45c11819a3410caa493e71096151d7f1fa3f4eaa161f973bb36c2082205f525b146fba10590baeac5d2ba1d0c6f
7
+ data.tar.gz: d854fb71bcedadac0a6d28bb7b65cf26c0d40cc0e1178ca4aef7f8c47b19c450370f60a97c537289dafda9441c5c6cff1381595ddf99b0e3fd34f9e566306356
@@ -28,28 +28,7 @@ module Repia
28
28
  end
29
29
  end
30
30
 
31
- ##
32
- # This controller is a base controller for RESTful API. Two primary
33
- # features:
34
- #
35
- # - Error (exception) handling
36
- # - Options request handling
37
- #
38
- class BaseController < ActionController::Base
39
-
40
- # This is a catch-all.
41
- rescue_from StandardError do |exception|
42
- logger.error exception.message
43
- render_error 500, "Unknown error occurred: #{exception.message}"
44
- end
45
-
46
- # Catch all manually thrown HTTP errors (predefined by repia)
47
- rescue_from Errors::HTTPError do |exception|
48
- status_code = exception.class.const_get("STATUS_CODE")
49
- message = exception.message || exception.class::MESSAGE
50
- logger.error "#{status_code} - #{message}"
51
- render_error status_code, message
52
- end
31
+ module BaseHelper
53
32
 
54
33
  ##
55
34
  # Use this as an action triggered by exceptions_app to return a JSON
@@ -58,7 +37,14 @@ module Repia
58
37
  def exceptions_app
59
38
  status = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code.to_i
60
39
  error = Errors::STATUS_CODE_TO_ERROR[status]
61
- message = error ? error::MESSAGE : "Unknown error"
40
+ if error
41
+ message = error::MESSAGE
42
+ else
43
+ # :nocov:
44
+ status = 500
45
+ message = "Unknown error"
46
+ # :nocov:
47
+ end
62
48
  render_error status, message
63
49
  end
64
50
 
@@ -90,5 +76,49 @@ module Repia
90
76
  render json: {errors: msgs}, status: status
91
77
  end
92
78
 
79
+ ##
80
+ # Finds an object by model and UUID and throws an error (which will be
81
+ # caught and re-thrown as an HTTP error) if the object does not exist.
82
+ # The error can be optionally suppresed by specifying nil to error.
83
+ #
84
+ # An Repia::Errors::NotFound is raised if specified to do so when
85
+ # the object could not be found using the uuid.
86
+ #
87
+ def find_object(model, uuid, error: Errors::NotFound)
88
+ logger.debug("Attempting to get #{model.name} #{uuid}")
89
+ obj = model.find_by_uuid(uuid)
90
+ if obj.nil? && !error.nil?
91
+ raise error, "#{model.name} #{uuid} cannot be found"
92
+ end
93
+ return obj
94
+ end
95
+
93
96
  end
97
+
98
+ ##
99
+ # This controller is a base controller for RESTful API. Two primary
100
+ # features:
101
+ #
102
+ # - Error (exception) handling
103
+ # - Options request handling
104
+ #
105
+ class BaseController < ActionController::Base
106
+ include BaseHelper
107
+
108
+ # This is a catch-all.
109
+ rescue_from StandardError do |exception|
110
+ logger.error exception.message
111
+ render_error 500, "Unknown error occurred: #{exception.message}"
112
+ end
113
+
114
+ # Catch all manually thrown HTTP errors (predefined by repia)
115
+ rescue_from Errors::HTTPError do |exception|
116
+ status_code = exception.class.const_get("STATUS_CODE")
117
+ message = exception.message || exception.class::MESSAGE
118
+ logger.error "#{status_code} - #{message}"
119
+ render_error status_code, message
120
+ end
121
+
122
+ end
123
+
94
124
  end
@@ -1,3 +1,3 @@
1
1
  module Repia
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -8,6 +8,11 @@ class DummiesController < ApplicationController
8
8
  1 + "b"
9
9
  end
10
10
 
11
+ def update
12
+ find_object(UniqueModel, params[:id])
13
+ render json: "", status: 200
14
+ end
15
+
11
16
  def show
12
17
  status_code = params[:id].to_i
13
18
  case status_code
@@ -23,4 +28,9 @@ class DummiesController < ApplicationController
23
28
  raise Repia::Errors::InternalServerError
24
29
  end
25
30
  end
31
+
32
+ def destroy
33
+ @exception = ActionController::RoutingError.new("blah")
34
+ exceptions_app
35
+ end
26
36
  end
@@ -1015,3 +1015,1713 @@ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1015
1015
   (0.4ms) rollback transaction
1016
1016
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1017
1017
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1018
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1019
+  (0.1ms) begin transaction
1020
+ ------------------------------------------------------------
1021
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1022
+ ------------------------------------------------------------
1023
+  (0.1ms) SAVEPOINT active_record_1
1024
+ SQL (0.7ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-30 04:12:51.284740"], ["updated_at", "2016-04-30 04:12:51.284740"], ["uuid", "ce1f6168-0e89-11e6-a5e7-6c4008a6fa2a"]]
1025
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1026
+  (0.7ms) rollback transaction
1027
+  (0.1ms) begin transaction
1028
+ ------------------------------------------------------
1029
+ DummiesControllerTest: test_options_request_is_handled
1030
+ ------------------------------------------------------
1031
+ Processing by DummiesController#options as HTML
1032
+ Rendered text template (0.0ms)
1033
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
1034
+ Processing by DummiesController#options as HTML
1035
+ Rendered text template (0.0ms)
1036
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1037
+  (0.1ms) rollback transaction
1038
+  (0.0ms) begin transaction
1039
+ ---------------------------------------------------------------
1040
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1041
+ ---------------------------------------------------------------
1042
+ Processing by DummiesController#show as HTML
1043
+ Parameters: {"id"=>"400"}
1044
+ 400 - Repia::Errors::BadRequest
1045
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1046
+ Processing by DummiesController#show as HTML
1047
+ Parameters: {"id"=>"401"}
1048
+ 401 - Repia::Errors::Unauthorized
1049
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1050
+ Processing by DummiesController#show as HTML
1051
+ Parameters: {"id"=>"404"}
1052
+ 404 - Repia::Errors::NotFound
1053
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1054
+ Processing by DummiesController#show as HTML
1055
+ Parameters: {"id"=>"409"}
1056
+ 409 - Repia::Errors::Conflict
1057
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1058
+ Processing by DummiesController#show as HTML
1059
+ Parameters: {"id"=>"500"}
1060
+ 500 - Repia::Errors::InternalServerError
1061
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1062
+  (0.0ms) rollback transaction
1063
+  (0.0ms) begin transaction
1064
+ -------------------------------------------------
1065
+ DummiesControllerTest: test_handle_standard_error
1066
+ -------------------------------------------------
1067
+ Processing by DummiesController#create as HTML
1068
+ String can't be coerced into Fixnum
1069
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1070
+  (0.0ms) rollback transaction
1071
+  (0.0ms) begin transaction
1072
+ --------------------------------------------------
1073
+ DummiesControllerTest: test_render_multiple_errors
1074
+ --------------------------------------------------
1075
+ Processing by DummiesController#index as HTML
1076
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1077
+  (0.0ms) rollback transaction
1078
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1079
+  (0.1ms) begin transaction
1080
+ -------------------------------------------------
1081
+ DummiesControllerTest: test_handle_standard_error
1082
+ -------------------------------------------------
1083
+ Processing by DummiesController#create as HTML
1084
+ String can't be coerced into Fixnum
1085
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1086
+  (0.1ms) rollback transaction
1087
+  (0.0ms) begin transaction
1088
+ --------------------------------------------------
1089
+ DummiesControllerTest: test_render_multiple_errors
1090
+ --------------------------------------------------
1091
+ Processing by DummiesController#index as HTML
1092
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1093
+  (0.0ms) rollback transaction
1094
+  (0.0ms) begin transaction
1095
+ ---------------------------------------------------------------
1096
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1097
+ ---------------------------------------------------------------
1098
+ Processing by DummiesController#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 DummiesController#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 DummiesController#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 DummiesController#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 DummiesController#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
+ DummiesControllerTest: test_options_request_is_handled
1122
+ ------------------------------------------------------
1123
+ Processing by DummiesController#options as HTML
1124
+ Rendered text template (0.0ms)
1125
+ Completed 200 OK in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms)
1126
+ Processing by DummiesController#options as HTML
1127
+ Rendered text template (0.0ms)
1128
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1129
+  (0.2ms) rollback transaction
1130
+  (0.0ms) begin transaction
1131
+ ------------------------------------------------------------
1132
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1133
+ ------------------------------------------------------------
1134
+  (0.1ms) SAVEPOINT active_record_1
1135
+ SQL (0.8ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 00:12:28.384404"], ["updated_at", "2016-05-03 00:12:28.384404"], ["uuid", "b8a4b018-10c3-11e6-91a9-6c4008a6fa2a"]]
1136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1137
+  (0.4ms) rollback transaction
1138
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1139
+  (0.1ms) begin transaction
1140
+ ------------------------------------
1141
+ RepiaTest: test_ExceptionsMiddleware
1142
+ ------------------------------------
1143
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fefa790b9d0>, "rack.errors"=>#<StringIO:0x007fefa790bde0>, "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"}
1144
+  (0.0ms) rollback transaction
1145
+  (0.0ms) begin transaction
1146
+ ------------------------------------------------------------
1147
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1148
+ ------------------------------------------------------------
1149
+  (0.0ms) SAVEPOINT active_record_1
1150
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 00:21:41.455231"], ["updated_at", "2016-05-03 00:21:41.455231"], ["uuid", "024c9888-10c5-11e6-8b29-6c4008a6fa2a"]]
1151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1152
+  (0.8ms) rollback transaction
1153
+  (0.1ms) begin transaction
1154
+ ------------------------------------------------------
1155
+ DummiesControllerTest: test_options_request_is_handled
1156
+ ------------------------------------------------------
1157
+ Processing by DummiesController#options as HTML
1158
+ Rendered text template (0.0ms)
1159
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
1160
+ Processing by DummiesController#options as HTML
1161
+ Rendered text template (0.0ms)
1162
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1163
+  (0.1ms) rollback transaction
1164
+  (0.0ms) begin transaction
1165
+ -------------------------------------------------
1166
+ DummiesControllerTest: test_handle_standard_error
1167
+ -------------------------------------------------
1168
+ Processing by DummiesController#create as HTML
1169
+ String can't be coerced into Fixnum
1170
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1171
+  (0.0ms) rollback transaction
1172
+  (0.0ms) begin transaction
1173
+ ---------------------------------------------------------------
1174
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1175
+ ---------------------------------------------------------------
1176
+ Processing by DummiesController#show as HTML
1177
+ Parameters: {"id"=>"400"}
1178
+ 400 - Repia::Errors::BadRequest
1179
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1180
+ Processing by DummiesController#show as HTML
1181
+ Parameters: {"id"=>"401"}
1182
+ 401 - Repia::Errors::Unauthorized
1183
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1184
+ Processing by DummiesController#show as HTML
1185
+ Parameters: {"id"=>"404"}
1186
+ 404 - Repia::Errors::NotFound
1187
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1188
+ Processing by DummiesController#show as HTML
1189
+ Parameters: {"id"=>"409"}
1190
+ 409 - Repia::Errors::Conflict
1191
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1192
+ Processing by DummiesController#show as HTML
1193
+ Parameters: {"id"=>"500"}
1194
+ 500 - Repia::Errors::InternalServerError
1195
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1196
+  (0.0ms) rollback transaction
1197
+  (0.0ms) begin transaction
1198
+ --------------------------------------------------
1199
+ DummiesControllerTest: test_render_multiple_errors
1200
+ --------------------------------------------------
1201
+ Processing by DummiesController#index as HTML
1202
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1203
+  (0.1ms) rollback transaction
1204
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1205
+  (0.1ms) begin transaction
1206
+ ---------------------------------------------------------------
1207
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1208
+ ---------------------------------------------------------------
1209
+ Processing by DummiesController#show as HTML
1210
+ Parameters: {"id"=>"400"}
1211
+ 400 - Repia::Errors::BadRequest
1212
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1213
+ Processing by DummiesController#show as HTML
1214
+ Parameters: {"id"=>"401"}
1215
+ 401 - Repia::Errors::Unauthorized
1216
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1217
+ Processing by DummiesController#show as HTML
1218
+ Parameters: {"id"=>"404"}
1219
+ 404 - Repia::Errors::NotFound
1220
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1221
+ Processing by DummiesController#show as HTML
1222
+ Parameters: {"id"=>"409"}
1223
+ 409 - Repia::Errors::Conflict
1224
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1225
+ Processing by DummiesController#show as HTML
1226
+ Parameters: {"id"=>"500"}
1227
+ 500 - Repia::Errors::InternalServerError
1228
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1229
+  (0.1ms) rollback transaction
1230
+  (0.0ms) begin transaction
1231
+ --------------------------------------------------
1232
+ DummiesControllerTest: test_render_multiple_errors
1233
+ --------------------------------------------------
1234
+ Processing by DummiesController#index as HTML
1235
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1236
+  (0.0ms) rollback transaction
1237
+  (0.0ms) begin transaction
1238
+ ------------------------------------------------------
1239
+ DummiesControllerTest: test_options_request_is_handled
1240
+ ------------------------------------------------------
1241
+ Processing by DummiesController#options as HTML
1242
+ Rendered text template (0.0ms)
1243
+ Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
1244
+ Processing by DummiesController#options as HTML
1245
+ Rendered text template (0.0ms)
1246
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1247
+  (0.1ms) rollback transaction
1248
+  (0.0ms) begin transaction
1249
+ -------------------------------------------------
1250
+ DummiesControllerTest: test_handle_standard_error
1251
+ -------------------------------------------------
1252
+ Processing by DummiesController#create as HTML
1253
+ String can't be coerced into Fixnum
1254
+ Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1255
+  (0.0ms) rollback transaction
1256
+  (0.0ms) begin transaction
1257
+ ------------------------------------
1258
+ RepiaTest: test_ExceptionsMiddleware
1259
+ ------------------------------------
1260
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fe455ae0ce0>, "rack.errors"=>#<StringIO:0x007fe455ae10f0>, "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"}
1261
+  (0.0ms) rollback transaction
1262
+  (0.0ms) begin transaction
1263
+ ------------------------------------------------------------
1264
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1265
+ ------------------------------------------------------------
1266
+  (0.1ms) SAVEPOINT active_record_1
1267
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 00:21:58.376122"], ["updated_at", "2016-05-03 00:21:58.376122"], ["uuid", "0c628b7a-10c5-11e6-b879-6c4008a6fa2a"]]
1268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1269
+  (0.9ms) rollback transaction
1270
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1271
+  (0.1ms) begin transaction
1272
+ ------------------------------------------------------
1273
+ DummiesControllerTest: test_options_request_is_handled
1274
+ ------------------------------------------------------
1275
+ Processing by DummiesController#options as HTML
1276
+ Rendered text template (0.0ms)
1277
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
1278
+ Processing by DummiesController#options as HTML
1279
+ Rendered text template (0.0ms)
1280
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1281
+  (0.1ms) rollback transaction
1282
+  (0.1ms) begin transaction
1283
+ -------------------------------------------------
1284
+ DummiesControllerTest: test_handle_standard_error
1285
+ -------------------------------------------------
1286
+ Processing by DummiesController#create as HTML
1287
+ String can't be coerced into Fixnum
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
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1293
+ ---------------------------------------------------------------
1294
+ Processing by DummiesController#show as HTML
1295
+ Parameters: {"id"=>"400"}
1296
+ 400 - Repia::Errors::BadRequest
1297
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1298
+ Processing by DummiesController#show as HTML
1299
+ Parameters: {"id"=>"401"}
1300
+ 401 - Repia::Errors::Unauthorized
1301
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1302
+ Processing by DummiesController#show as HTML
1303
+ Parameters: {"id"=>"404"}
1304
+ 404 - Repia::Errors::NotFound
1305
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1306
+ Processing by DummiesController#show as HTML
1307
+ Parameters: {"id"=>"409"}
1308
+ 409 - Repia::Errors::Conflict
1309
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1310
+ Processing by DummiesController#show as HTML
1311
+ Parameters: {"id"=>"500"}
1312
+ 500 - Repia::Errors::InternalServerError
1313
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1314
+  (0.0ms) rollback transaction
1315
+  (0.0ms) begin transaction
1316
+ --------------------------------------------------
1317
+ DummiesControllerTest: test_render_multiple_errors
1318
+ --------------------------------------------------
1319
+ Processing by DummiesController#index as HTML
1320
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1321
+  (0.0ms) rollback transaction
1322
+  (0.0ms) begin transaction
1323
+ ----------------------------------------------------------------------------------------
1324
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1325
+ ----------------------------------------------------------------------------------------
1326
+  (0.0ms) rollback transaction
1327
+  (0.0ms) begin transaction
1328
+ ------------------------------------------------------------
1329
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1330
+ ------------------------------------------------------------
1331
+  (0.0ms) SAVEPOINT active_record_1
1332
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:04:30.109611"], ["updated_at", "2016-05-03 01:04:30.109611"], ["uuid", "fd562578-10ca-11e6-995b-6c4008a6fa2a"]]
1333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1334
+  (0.4ms) rollback transaction
1335
+  (0.1ms) begin transaction
1336
+ ----------------------------------------------------------------------------------
1337
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1338
+ ----------------------------------------------------------------------------------
1339
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fd6fa77d390>, "rack.errors"=>#<StringIO:0x007fd6fa77d4a8>, "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"}
1340
+  (0.0ms) rollback transaction
1341
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1342
+  (0.1ms) begin transaction
1343
+ --------------------------------------------------
1344
+ DummiesControllerTest: test_render_multiple_errors
1345
+ --------------------------------------------------
1346
+ Processing by DummiesController#index as HTML
1347
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1348
+  (0.1ms) rollback transaction
1349
+  (0.0ms) begin transaction
1350
+ -------------------------------------------------
1351
+ DummiesControllerTest: test_handle_standard_error
1352
+ -------------------------------------------------
1353
+ Processing by DummiesController#create as HTML
1354
+ String can't be coerced into Fixnum
1355
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1356
+  (0.0ms) rollback transaction
1357
+  (0.0ms) begin transaction
1358
+ ------------------------------------------------------
1359
+ DummiesControllerTest: test_options_request_is_handled
1360
+ ------------------------------------------------------
1361
+ Processing by DummiesController#options as HTML
1362
+ Rendered text template (0.0ms)
1363
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
1364
+ Processing by DummiesController#options as HTML
1365
+ Rendered text template (0.0ms)
1366
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1367
+  (0.1ms) rollback transaction
1368
+  (0.1ms) begin transaction
1369
+ ---------------------------------------------------------------
1370
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1371
+ ---------------------------------------------------------------
1372
+ Processing by DummiesController#show as HTML
1373
+ Parameters: {"id"=>"400"}
1374
+ 400 - Repia::Errors::BadRequest
1375
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1376
+ Processing by DummiesController#show as HTML
1377
+ Parameters: {"id"=>"401"}
1378
+ 401 - Repia::Errors::Unauthorized
1379
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1380
+ Processing by DummiesController#show as HTML
1381
+ Parameters: {"id"=>"404"}
1382
+ 404 - Repia::Errors::NotFound
1383
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1384
+ Processing by DummiesController#show as HTML
1385
+ Parameters: {"id"=>"409"}
1386
+ 409 - Repia::Errors::Conflict
1387
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1388
+ Processing by DummiesController#show as HTML
1389
+ Parameters: {"id"=>"500"}
1390
+ 500 - Repia::Errors::InternalServerError
1391
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1392
+  (0.1ms) rollback transaction
1393
+  (0.1ms) begin transaction
1394
+ ----------------------------------------------------------------------------------
1395
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1396
+ ----------------------------------------------------------------------------------
1397
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fb201459da8>, "rack.errors"=>#<StringIO:0x007fb201459ec0>, "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"}
1398
+  (0.0ms) rollback transaction
1399
+  (0.0ms) begin transaction
1400
+ ----------------------------------------------------------------------------------------
1401
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1402
+ ----------------------------------------------------------------------------------------
1403
+  (0.0ms) rollback transaction
1404
+  (0.0ms) begin transaction
1405
+ ------------------------------------------------------------
1406
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1407
+ ------------------------------------------------------------
1408
+  (0.0ms) SAVEPOINT active_record_1
1409
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:05:00.212575"], ["updated_at", "2016-05-03 01:05:00.212575"], ["uuid", "0f477f48-10cb-11e6-8aff-6c4008a6fa2a"]]
1410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1411
+  (0.8ms) rollback transaction
1412
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1413
+  (0.1ms) begin transaction
1414
+ -------------------------------------------------
1415
+ DummiesControllerTest: test_handle_standard_error
1416
+ -------------------------------------------------
1417
+ Processing by DummiesController#create as HTML
1418
+ String can't be coerced into Fixnum
1419
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1420
+  (0.1ms) rollback transaction
1421
+  (0.0ms) begin transaction
1422
+ ---------------------------------------------------------------
1423
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1424
+ ---------------------------------------------------------------
1425
+ Processing by DummiesController#show as HTML
1426
+ Parameters: {"id"=>"400"}
1427
+ 400 - Repia::Errors::BadRequest
1428
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1429
+ Processing by DummiesController#show as HTML
1430
+ Parameters: {"id"=>"401"}
1431
+ 401 - Repia::Errors::Unauthorized
1432
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1433
+ Processing by DummiesController#show as HTML
1434
+ Parameters: {"id"=>"404"}
1435
+ 404 - Repia::Errors::NotFound
1436
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1437
+ Processing by DummiesController#show as HTML
1438
+ Parameters: {"id"=>"409"}
1439
+ 409 - Repia::Errors::Conflict
1440
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1441
+ Processing by DummiesController#show as HTML
1442
+ Parameters: {"id"=>"500"}
1443
+ 500 - Repia::Errors::InternalServerError
1444
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1445
+  (0.1ms) rollback transaction
1446
+  (0.0ms) begin transaction
1447
+ --------------------------------------------------
1448
+ DummiesControllerTest: test_render_multiple_errors
1449
+ --------------------------------------------------
1450
+ Processing by DummiesController#index as HTML
1451
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1452
+  (0.0ms) rollback transaction
1453
+  (0.0ms) begin transaction
1454
+ ------------------------------------------------------
1455
+ DummiesControllerTest: test_options_request_is_handled
1456
+ ------------------------------------------------------
1457
+ Processing by DummiesController#options as HTML
1458
+ Rendered text template (0.0ms)
1459
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1460
+ Processing by DummiesController#options as HTML
1461
+ Rendered text template (0.0ms)
1462
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1463
+  (0.1ms) rollback transaction
1464
+  (0.1ms) begin transaction
1465
+ ------------------------------------------------------------
1466
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1467
+ ------------------------------------------------------------
1468
+  (0.1ms) SAVEPOINT active_record_1
1469
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:05:37.707044"], ["updated_at", "2016-05-03 01:05:37.707044"], ["uuid", "25a0b368-10cb-11e6-90d0-6c4008a6fa2a"]]
1470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1471
+  (1.1ms) rollback transaction
1472
+  (0.1ms) begin transaction
1473
+ ----------------------------------------------------------------------------------
1474
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1475
+ ----------------------------------------------------------------------------------
1476
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f9b0e8a1f00>, "rack.errors"=>#<StringIO:0x007f9b0e8a2090>, "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"}
1477
+  (0.0ms) rollback transaction
1478
+  (0.1ms) begin transaction
1479
+ ----------------------------------------------------------------------------------------
1480
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1481
+ ----------------------------------------------------------------------------------------
1482
+  (0.0ms) rollback transaction
1483
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1484
+  (0.1ms) begin transaction
1485
+ ----------------------------------------------------------------------------------
1486
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1487
+ ----------------------------------------------------------------------------------
1488
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f8fe52abda0>, "rack.errors"=>#<StringIO:0x007f8fe52abe90>, "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"}
1489
+  (0.0ms) rollback transaction
1490
+  (0.1ms) begin transaction
1491
+ ------------------------------------------------------------
1492
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1493
+ ------------------------------------------------------------
1494
+  (0.0ms) SAVEPOINT active_record_1
1495
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:08:03.622404"], ["updated_at", "2016-05-03 01:08:03.622404"], ["uuid", "7c999fae-10cb-11e6-b527-6c4008a6fa2a"]]
1496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1497
+  (0.9ms) rollback transaction
1498
+  (0.1ms) begin transaction
1499
+ ----------------------------------------------------------------------------------------
1500
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1501
+ ----------------------------------------------------------------------------------------
1502
+  (0.0ms) rollback transaction
1503
+  (0.0ms) begin transaction
1504
+ ---------------------------------------------------------------
1505
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1506
+ ---------------------------------------------------------------
1507
+ Processing by DummiesController#show as HTML
1508
+ Parameters: {"id"=>"400"}
1509
+ 400 - Repia::Errors::BadRequest
1510
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1511
+ Processing by DummiesController#show as HTML
1512
+ Parameters: {"id"=>"401"}
1513
+ 401 - Repia::Errors::Unauthorized
1514
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1515
+ Processing by DummiesController#show as HTML
1516
+ Parameters: {"id"=>"404"}
1517
+ 404 - Repia::Errors::NotFound
1518
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1519
+ Processing by DummiesController#show as HTML
1520
+ Parameters: {"id"=>"409"}
1521
+ 409 - Repia::Errors::Conflict
1522
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1523
+ Processing by DummiesController#show as HTML
1524
+ Parameters: {"id"=>"500"}
1525
+ 500 - Repia::Errors::InternalServerError
1526
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1527
+  (0.2ms) rollback transaction
1528
+  (0.2ms) begin transaction
1529
+ -------------------------------------------------
1530
+ DummiesControllerTest: test_handle_standard_error
1531
+ -------------------------------------------------
1532
+ Processing by DummiesController#create as HTML
1533
+ String can't be coerced into Fixnum
1534
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1535
+  (0.1ms) rollback transaction
1536
+  (0.1ms) begin transaction
1537
+ ---------------------------------------------------------------------------
1538
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
1539
+ ---------------------------------------------------------------------------
1540
+ Processing by DummiesController#update as HTML
1541
+ Parameters: {"id"=>"blah"}
1542
+ Attempting to get UniqueModel blah
1543
+ UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
1544
+ 404 - UniqueModel blah cannot be found
1545
+ Completed 404 Not Found in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1546
+  (0.1ms) rollback transaction
1547
+  (0.1ms) begin transaction
1548
+ --------------------------------------------------
1549
+ DummiesControllerTest: test_render_multiple_errors
1550
+ --------------------------------------------------
1551
+ Processing by DummiesController#index as HTML
1552
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1553
+  (0.0ms) rollback transaction
1554
+  (0.1ms) begin transaction
1555
+ ------------------------------------------------------
1556
+ DummiesControllerTest: test_options_request_is_handled
1557
+ ------------------------------------------------------
1558
+ Processing by DummiesController#options as HTML
1559
+ Rendered text template (0.0ms)
1560
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
1561
+ Processing by DummiesController#options as HTML
1562
+ Rendered text template (0.0ms)
1563
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1564
+  (0.1ms) rollback transaction
1565
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1566
+  (0.1ms) begin transaction
1567
+ ----------------------------------------------------------------------------------
1568
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1569
+ ----------------------------------------------------------------------------------
1570
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fc32a9ca7f8>, "rack.errors"=>#<StringIO:0x007fc32a9caa50>, "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"}
1571
+  (0.0ms) rollback transaction
1572
+  (0.1ms) begin transaction
1573
+ ----------------------------------------------------------------------------------------
1574
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1575
+ ----------------------------------------------------------------------------------------
1576
+  (0.0ms) rollback transaction
1577
+  (0.0ms) begin transaction
1578
+ ------------------------------------------------------------
1579
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1580
+ ------------------------------------------------------------
1581
+  (0.1ms) SAVEPOINT active_record_1
1582
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:08:13.245352"], ["updated_at", "2016-05-03 01:08:13.245352"], ["uuid", "8255f690-10cb-11e6-b753-6c4008a6fa2a"]]
1583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1584
+  (1.1ms) rollback transaction
1585
+  (0.1ms) begin transaction
1586
+ ---------------------------------------------------------------
1587
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1588
+ ---------------------------------------------------------------
1589
+ Processing by DummiesController#show as HTML
1590
+ Parameters: {"id"=>"400"}
1591
+ 400 - Repia::Errors::BadRequest
1592
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1593
+ Processing by DummiesController#show as HTML
1594
+ Parameters: {"id"=>"401"}
1595
+ 401 - Repia::Errors::Unauthorized
1596
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1597
+ Processing by DummiesController#show as HTML
1598
+ Parameters: {"id"=>"404"}
1599
+ 404 - Repia::Errors::NotFound
1600
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1601
+ Processing by DummiesController#show as HTML
1602
+ Parameters: {"id"=>"409"}
1603
+ 409 - Repia::Errors::Conflict
1604
+ Completed 409 Conflict in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1605
+ Processing by DummiesController#show as HTML
1606
+ Parameters: {"id"=>"500"}
1607
+ 500 - Repia::Errors::InternalServerError
1608
+ Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1609
+  (0.1ms) rollback transaction
1610
+  (0.0ms) begin transaction
1611
+ ------------------------------------------------------
1612
+ DummiesControllerTest: test_options_request_is_handled
1613
+ ------------------------------------------------------
1614
+ Processing by DummiesController#options as HTML
1615
+ Rendered text template (0.0ms)
1616
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
1617
+ Processing by DummiesController#options as HTML
1618
+ Rendered text template (0.0ms)
1619
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1620
+  (0.1ms) rollback transaction
1621
+  (0.1ms) begin transaction
1622
+ --------------------------------------------------
1623
+ DummiesControllerTest: test_render_multiple_errors
1624
+ --------------------------------------------------
1625
+ Processing by DummiesController#index as HTML
1626
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1627
+  (0.0ms) rollback transaction
1628
+  (0.0ms) begin transaction
1629
+ ---------------------------------------------------------------------------
1630
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
1631
+ ---------------------------------------------------------------------------
1632
+ Processing by DummiesController#update as HTML
1633
+ Parameters: {"id"=>"blah"}
1634
+ Attempting to get UniqueModel blah
1635
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
1636
+ 404 - UniqueModel blah cannot be found
1637
+ Completed 404 Not Found in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1638
+  (0.1ms) rollback transaction
1639
+  (0.0ms) begin transaction
1640
+ -------------------------------------------------
1641
+ DummiesControllerTest: test_handle_standard_error
1642
+ -------------------------------------------------
1643
+ Processing by DummiesController#create as HTML
1644
+ String can't be coerced into Fixnum
1645
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1646
+  (0.0ms) rollback transaction
1647
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1648
+  (0.1ms) begin transaction
1649
+ ------------------------------------------------------------
1650
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1651
+ ------------------------------------------------------------
1652
+  (0.0ms) SAVEPOINT active_record_1
1653
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:08:21.811181"], ["updated_at", "2016-05-03 01:08:21.811181"], ["uuid", "877100a2-10cb-11e6-b5c8-6c4008a6fa2a"]]
1654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1655
+  (0.8ms) rollback transaction
1656
+  (0.1ms) begin transaction
1657
+ ----------------------------------------------------------------------------------
1658
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1659
+ ----------------------------------------------------------------------------------
1660
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f818bff03e8>, "rack.errors"=>#<StringIO:0x007f818bff0938>, "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"}
1661
+  (0.1ms) rollback transaction
1662
+  (0.0ms) begin transaction
1663
+ ----------------------------------------------------------------------------------------
1664
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1665
+ ----------------------------------------------------------------------------------------
1666
+  (0.0ms) rollback transaction
1667
+  (0.0ms) begin transaction
1668
+ ---------------------------------------------------------------------------
1669
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
1670
+ ---------------------------------------------------------------------------
1671
+ Processing by DummiesController#update as HTML
1672
+ Parameters: {"id"=>"blah"}
1673
+ Attempting to get UniqueModel blah
1674
+ UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
1675
+ 404 - UniqueModel blah cannot be found
1676
+ Completed 404 Not Found in 7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1677
+  (0.1ms) rollback transaction
1678
+  (0.0ms) begin transaction
1679
+ ---------------------------------------------------------------
1680
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1681
+ ---------------------------------------------------------------
1682
+ Processing by DummiesController#show as HTML
1683
+ Parameters: {"id"=>"400"}
1684
+ 400 - Repia::Errors::BadRequest
1685
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1686
+ Processing by DummiesController#show as HTML
1687
+ Parameters: {"id"=>"401"}
1688
+ 401 - Repia::Errors::Unauthorized
1689
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1690
+ Processing by DummiesController#show as HTML
1691
+ Parameters: {"id"=>"404"}
1692
+ 404 - Repia::Errors::NotFound
1693
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1694
+ Processing by DummiesController#show as HTML
1695
+ Parameters: {"id"=>"409"}
1696
+ 409 - Repia::Errors::Conflict
1697
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1698
+ Processing by DummiesController#show as HTML
1699
+ Parameters: {"id"=>"500"}
1700
+ 500 - Repia::Errors::InternalServerError
1701
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1702
+  (0.1ms) rollback transaction
1703
+  (0.0ms) begin transaction
1704
+ ------------------------------------------------------
1705
+ DummiesControllerTest: test_options_request_is_handled
1706
+ ------------------------------------------------------
1707
+ Processing by DummiesController#options as HTML
1708
+ Rendered text template (0.0ms)
1709
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
1710
+ Processing by DummiesController#options as HTML
1711
+ Rendered text template (0.0ms)
1712
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1713
+  (0.1ms) rollback transaction
1714
+  (0.1ms) begin transaction
1715
+ -------------------------------------------------
1716
+ DummiesControllerTest: test_handle_standard_error
1717
+ -------------------------------------------------
1718
+ Processing by DummiesController#create as HTML
1719
+ String can't be coerced into Fixnum
1720
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1721
+  (0.0ms) rollback transaction
1722
+  (0.0ms) begin transaction
1723
+ --------------------------------------------------
1724
+ DummiesControllerTest: test_render_multiple_errors
1725
+ --------------------------------------------------
1726
+ Processing by DummiesController#index as HTML
1727
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1728
+  (0.0ms) rollback transaction
1729
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1730
+  (0.1ms) begin transaction
1731
+ ----------------------------------------------------------------------------------------
1732
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1733
+ ----------------------------------------------------------------------------------------
1734
+  (0.0ms) rollback transaction
1735
+  (0.0ms) begin transaction
1736
+ ------------------------------------------------------------
1737
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1738
+ ------------------------------------------------------------
1739
+  (0.0ms) SAVEPOINT active_record_1
1740
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:09:32.284843"], ["updated_at", "2016-05-03 01:09:32.284843"], ["uuid", "b1726dfa-10cb-11e6-bcd4-6c4008a6fa2a"]]
1741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1742
+  (1.1ms) rollback transaction
1743
+  (0.1ms) begin transaction
1744
+ ----------------------------------------------------------------------------------
1745
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1746
+ ----------------------------------------------------------------------------------
1747
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f88ef92f908>, "rack.errors"=>#<StringIO:0x007f88ef92fc28>, "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"}
1748
+  (0.1ms) rollback transaction
1749
+  (0.1ms) begin transaction
1750
+ ---------------------------------------------------------------
1751
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1752
+ ---------------------------------------------------------------
1753
+ Processing by DummiesController#show as HTML
1754
+ Parameters: {"id"=>"400"}
1755
+ 400 - Repia::Errors::BadRequest
1756
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1757
+ Processing by DummiesController#show as HTML
1758
+ Parameters: {"id"=>"401"}
1759
+ 401 - Repia::Errors::Unauthorized
1760
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1761
+ Processing by DummiesController#show as HTML
1762
+ Parameters: {"id"=>"404"}
1763
+ 404 - Repia::Errors::NotFound
1764
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1765
+ Processing by DummiesController#show as HTML
1766
+ Parameters: {"id"=>"409"}
1767
+ 409 - Repia::Errors::Conflict
1768
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1769
+ Processing by DummiesController#show as HTML
1770
+ Parameters: {"id"=>"500"}
1771
+ 500 - Repia::Errors::InternalServerError
1772
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1773
+  (0.1ms) rollback transaction
1774
+  (0.1ms) begin transaction
1775
+ ------------------------------------------------------
1776
+ DummiesControllerTest: test_options_request_is_handled
1777
+ ------------------------------------------------------
1778
+ Processing by DummiesController#options as HTML
1779
+ Rendered text template (0.0ms)
1780
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
1781
+ Processing by DummiesController#options as HTML
1782
+ Rendered text template (0.0ms)
1783
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1784
+  (0.1ms) rollback transaction
1785
+  (0.0ms) begin transaction
1786
+ --------------------------------------------------
1787
+ DummiesControllerTest: test_render_multiple_errors
1788
+ --------------------------------------------------
1789
+ Processing by DummiesController#index as HTML
1790
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1791
+  (0.0ms) rollback transaction
1792
+  (0.0ms) begin transaction
1793
+ ---------------------------------------------------------------------------
1794
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
1795
+ ---------------------------------------------------------------------------
1796
+ Processing by DummiesController#update as HTML
1797
+ Parameters: {"id"=>"blah"}
1798
+ Attempting to get UniqueModel blah
1799
+ UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
1800
+ 404 - UniqueModel blah cannot be found
1801
+ Completed 404 Not Found in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1802
+  (0.1ms) rollback transaction
1803
+  (0.0ms) begin transaction
1804
+ ------------------------------------------------------------------
1805
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
1806
+ ------------------------------------------------------------------
1807
+  (0.1ms) SAVEPOINT active_record_1
1808
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:09:32.335128"], ["updated_at", "2016-05-03 01:09:32.335128"], ["uuid", "b17a1b18-10cb-11e6-bcd4-6c4008a6fa2a"]]
1809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1810
+ Processing by DummiesController#update as HTML
1811
+ Parameters: {"id"=>"b17a1b18-10cb-11e6-bcd4-6c4008a6fa2a"}
1812
+ Attempting to get UniqueModel b17a1b18-10cb-11e6-bcd4-6c4008a6fa2a
1813
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "b17a1b18-10cb-11e6-bcd4-6c4008a6fa2a"]]
1814
+ Missing template dummies/update, application/update, repia/base/update with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
1815
+ * "/Users/davidan/Projects/Personal/repia/test/dummy/app/views"
1816
+
1817
+ Completed 500 Internal Server Error in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1818
+  (0.3ms) rollback transaction
1819
+  (0.0ms) begin transaction
1820
+ -------------------------------------------------
1821
+ DummiesControllerTest: test_handle_standard_error
1822
+ -------------------------------------------------
1823
+ Processing by DummiesController#create as HTML
1824
+ String can't be coerced into Fixnum
1825
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1826
+  (0.0ms) rollback transaction
1827
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1828
+  (0.1ms) begin transaction
1829
+ ------------------------------------------------------------
1830
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
1831
+ ------------------------------------------------------------
1832
+  (0.0ms) SAVEPOINT active_record_1
1833
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:10:00.952043"], ["updated_at", "2016-05-03 01:10:00.952043"], ["uuid", "c288b374-10cb-11e6-bdfa-6c4008a6fa2a"]]
1834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1835
+  (0.9ms) rollback transaction
1836
+  (0.1ms) begin transaction
1837
+ ----------------------------------------------------------------------------------
1838
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
1839
+ ----------------------------------------------------------------------------------
1840
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fcd1ab8c970>, "rack.errors"=>#<StringIO:0x007fcd1ab8cda8>, "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"}
1841
+  (0.1ms) rollback transaction
1842
+  (0.1ms) begin transaction
1843
+ ----------------------------------------------------------------------------------------
1844
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
1845
+ ----------------------------------------------------------------------------------------
1846
+  (0.1ms) rollback transaction
1847
+  (0.0ms) begin transaction
1848
+ ------------------------------------------------------
1849
+ DummiesControllerTest: test_options_request_is_handled
1850
+ ------------------------------------------------------
1851
+ Processing by DummiesController#options as HTML
1852
+ Rendered text template (0.0ms)
1853
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
1854
+ Processing by DummiesController#options as HTML
1855
+ Rendered text template (0.0ms)
1856
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1857
+  (0.1ms) rollback transaction
1858
+  (0.1ms) begin transaction
1859
+ ------------------------------------------------------------------
1860
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
1861
+ ------------------------------------------------------------------
1862
+  (0.0ms) SAVEPOINT active_record_1
1863
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:10:00.991866"], ["updated_at", "2016-05-03 01:10:00.991866"], ["uuid", "c28ec5c0-10cb-11e6-bdfa-6c4008a6fa2a"]]
1864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1865
+ Processing by DummiesController#update as HTML
1866
+ Parameters: {"id"=>"c28ec5c0-10cb-11e6-bdfa-6c4008a6fa2a"}
1867
+ Attempting to get UniqueModel c28ec5c0-10cb-11e6-bdfa-6c4008a6fa2a
1868
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "c28ec5c0-10cb-11e6-bdfa-6c4008a6fa2a"]]
1869
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1870
+  (0.5ms) rollback transaction
1871
+  (0.1ms) begin transaction
1872
+ --------------------------------------------------
1873
+ DummiesControllerTest: test_render_multiple_errors
1874
+ --------------------------------------------------
1875
+ Processing by DummiesController#index as HTML
1876
+ Completed 400 Bad Request in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1877
+  (0.1ms) rollback transaction
1878
+  (0.1ms) begin transaction
1879
+ ---------------------------------------------------------------------------
1880
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
1881
+ ---------------------------------------------------------------------------
1882
+ Processing by DummiesController#update as HTML
1883
+ Parameters: {"id"=>"blah"}
1884
+ Attempting to get UniqueModel blah
1885
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
1886
+ 404 - UniqueModel blah cannot be found
1887
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1888
+  (0.1ms) rollback transaction
1889
+  (0.1ms) begin transaction
1890
+ ---------------------------------------------------------------
1891
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1892
+ ---------------------------------------------------------------
1893
+ Processing by DummiesController#show as HTML
1894
+ Parameters: {"id"=>"400"}
1895
+ 400 - Repia::Errors::BadRequest
1896
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1897
+ Processing by DummiesController#show as HTML
1898
+ Parameters: {"id"=>"401"}
1899
+ 401 - Repia::Errors::Unauthorized
1900
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1901
+ Processing by DummiesController#show as HTML
1902
+ Parameters: {"id"=>"404"}
1903
+ 404 - Repia::Errors::NotFound
1904
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1905
+ Processing by DummiesController#show as HTML
1906
+ Parameters: {"id"=>"409"}
1907
+ 409 - Repia::Errors::Conflict
1908
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1909
+ Processing by DummiesController#show as HTML
1910
+ Parameters: {"id"=>"500"}
1911
+ 500 - Repia::Errors::InternalServerError
1912
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1913
+  (0.1ms) rollback transaction
1914
+  (0.0ms) begin transaction
1915
+ -------------------------------------------------
1916
+ DummiesControllerTest: test_handle_standard_error
1917
+ -------------------------------------------------
1918
+ Processing by DummiesController#create as HTML
1919
+ String can't be coerced into Fixnum
1920
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1921
+  (0.1ms) rollback transaction
1922
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1923
+  (0.1ms) begin transaction
1924
+ ---------------------------------------------------------------
1925
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
1926
+ ---------------------------------------------------------------
1927
+ Processing by DummiesController#show as HTML
1928
+ Parameters: {"id"=>"400"}
1929
+ 400 - Repia::Errors::BadRequest
1930
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1931
+ Processing by DummiesController#show as HTML
1932
+ Parameters: {"id"=>"401"}
1933
+ 401 - Repia::Errors::Unauthorized
1934
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1935
+ Processing by DummiesController#show as HTML
1936
+ Parameters: {"id"=>"404"}
1937
+ 404 - Repia::Errors::NotFound
1938
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1939
+ Processing by DummiesController#show as HTML
1940
+ Parameters: {"id"=>"409"}
1941
+ 409 - Repia::Errors::Conflict
1942
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1943
+ Processing by DummiesController#show as HTML
1944
+ Parameters: {"id"=>"500"}
1945
+ 500 - Repia::Errors::InternalServerError
1946
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1947
+  (0.1ms) rollback transaction
1948
+  (0.1ms) begin transaction
1949
+ -------------------------------------------------
1950
+ DummiesControllerTest: test_handle_standard_error
1951
+ -------------------------------------------------
1952
+ Processing by DummiesController#create as HTML
1953
+ String can't be coerced into Fixnum
1954
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1955
+  (0.1ms) rollback transaction
1956
+  (0.0ms) begin transaction
1957
+ --------------------------------------------------
1958
+ DummiesControllerTest: test_render_multiple_errors
1959
+ --------------------------------------------------
1960
+ Processing by DummiesController#index as HTML
1961
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1962
+  (0.1ms) rollback transaction
1963
+  (0.0ms) begin transaction
1964
+ ------------------------------------------------------------------
1965
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
1966
+ ------------------------------------------------------------------
1967
+  (0.0ms) SAVEPOINT active_record_1
1968
+ SQL (0.5ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:10:12.319858"], ["updated_at", "2016-05-03 01:10:12.319858"], ["uuid", "c94f4a10-10cb-11e6-b437-6c4008a6fa2a"]]
1969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1970
+ Processing by DummiesController#update as HTML
1971
+ Parameters: {"id"=>"c94f4a10-10cb-11e6-b437-6c4008a6fa2a"}
1972
+ Attempting to get UniqueModel c94f4a10-10cb-11e6-b437-6c4008a6fa2a
1973
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "c94f4a10-10cb-11e6-b437-6c4008a6fa2a"]]
1974
+ Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1975
+  (0.9ms) rollback transaction
1976
+  (0.1ms) begin transaction
1977
+ ---------------------------------------------------------------------------
1978
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
1979
+ ---------------------------------------------------------------------------
1980
+ Processing by DummiesController#update as HTML
1981
+ Parameters: {"id"=>"blah"}
1982
+ Attempting to get UniqueModel blah
1983
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
1984
+ 404 - UniqueModel blah cannot be found
1985
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1986
+  (0.1ms) rollback transaction
1987
+  (0.1ms) begin transaction
1988
+ ------------------------------------------------------
1989
+ DummiesControllerTest: test_options_request_is_handled
1990
+ ------------------------------------------------------
1991
+ Processing by DummiesController#options as HTML
1992
+ Rendered text template (0.0ms)
1993
+ Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
1994
+ Processing by DummiesController#options as HTML
1995
+ Rendered text template (0.0ms)
1996
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1997
+  (0.0ms) rollback transaction
1998
+  (0.0ms) begin transaction
1999
+ ------------------------------------------------------------
2000
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2001
+ ------------------------------------------------------------
2002
+  (0.0ms) SAVEPOINT active_record_1
2003
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:10:12.357595"], ["updated_at", "2016-05-03 01:10:12.357595"], ["uuid", "c9550ad6-10cb-11e6-b437-6c4008a6fa2a"]]
2004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2005
+  (0.4ms) rollback transaction
2006
+  (0.1ms) begin transaction
2007
+ ----------------------------------------------------------------------------------
2008
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2009
+ ----------------------------------------------------------------------------------
2010
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fb617038cc8>, "rack.errors"=>#<StringIO:0x007fb6170393f8>, "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"}
2011
+  (0.0ms) rollback transaction
2012
+  (0.0ms) begin transaction
2013
+ ----------------------------------------------------------------------------------------
2014
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2015
+ ----------------------------------------------------------------------------------------
2016
+  (0.0ms) rollback transaction
2017
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2018
+  (0.1ms) begin transaction
2019
+ ----------------------------------------------------------------------------------------
2020
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2021
+ ----------------------------------------------------------------------------------------
2022
+  (0.0ms) rollback transaction
2023
+  (0.1ms) begin transaction
2024
+ ------------------------------------------------------------
2025
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2026
+ ------------------------------------------------------------
2027
+  (0.0ms) SAVEPOINT active_record_1
2028
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:11:53.196838"], ["updated_at", "2016-05-03 01:11:53.196838"], ["uuid", "056fe464-10cc-11e6-a8d2-6c4008a6fa2a"]]
2029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2030
+  (1.1ms) rollback transaction
2031
+  (0.1ms) begin transaction
2032
+ ---------------------------------------------------
2033
+ RepiaTest: test_Invalid_route_has_401_json_response
2034
+ ---------------------------------------------------
2035
+  (0.1ms) rollback transaction
2036
+  (0.1ms) begin transaction
2037
+ ----------------------------------------------------------------------------------
2038
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2039
+ ----------------------------------------------------------------------------------
2040
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fb8bc95a3e0>, "rack.errors"=>#<StringIO:0x007fb8bc95a548>, "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"}
2041
+  (0.1ms) rollback transaction
2042
+  (0.1ms) begin transaction
2043
+ -------------------------------------------------
2044
+ DummiesControllerTest: test_handle_standard_error
2045
+ -------------------------------------------------
2046
+ Processing by DummiesController#create as HTML
2047
+ String can't be coerced into Fixnum
2048
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2049
+  (0.1ms) rollback transaction
2050
+  (0.0ms) begin transaction
2051
+ ------------------------------------------------------------------
2052
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
2053
+ ------------------------------------------------------------------
2054
+  (0.0ms) SAVEPOINT active_record_1
2055
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:11:53.241282"], ["updated_at", "2016-05-03 01:11:53.241282"], ["uuid", "0576adf8-10cc-11e6-a8d2-6c4008a6fa2a"]]
2056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2057
+ Processing by DummiesController#update as HTML
2058
+ Parameters: {"id"=>"0576adf8-10cc-11e6-a8d2-6c4008a6fa2a"}
2059
+ Attempting to get UniqueModel 0576adf8-10cc-11e6-a8d2-6c4008a6fa2a
2060
+ UniqueModel Load (0.3ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "0576adf8-10cc-11e6-a8d2-6c4008a6fa2a"]]
2061
+ Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2062
+  (0.6ms) rollback transaction
2063
+  (0.2ms) begin transaction
2064
+ ------------------------------------------------------
2065
+ DummiesControllerTest: test_options_request_is_handled
2066
+ ------------------------------------------------------
2067
+ Processing by DummiesController#options as HTML
2068
+ Rendered text template (0.0ms)
2069
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
2070
+ Processing by DummiesController#options as HTML
2071
+ Rendered text template (0.0ms)
2072
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2073
+  (0.1ms) rollback transaction
2074
+  (0.0ms) begin transaction
2075
+ ---------------------------------------------------------------------------
2076
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
2077
+ ---------------------------------------------------------------------------
2078
+ Processing by DummiesController#update as HTML
2079
+ Parameters: {"id"=>"blah"}
2080
+ Attempting to get UniqueModel blah
2081
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
2082
+ 404 - UniqueModel blah cannot be found
2083
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2084
+  (0.1ms) rollback transaction
2085
+  (0.0ms) begin transaction
2086
+ --------------------------------------------------
2087
+ DummiesControllerTest: test_render_multiple_errors
2088
+ --------------------------------------------------
2089
+ Processing by DummiesController#index as HTML
2090
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2091
+  (0.0ms) rollback transaction
2092
+  (0.0ms) begin transaction
2093
+ ---------------------------------------------------------------
2094
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
2095
+ ---------------------------------------------------------------
2096
+ Processing by DummiesController#show as HTML
2097
+ Parameters: {"id"=>"400"}
2098
+ 400 - Repia::Errors::BadRequest
2099
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2100
+ Processing by DummiesController#show as HTML
2101
+ Parameters: {"id"=>"401"}
2102
+ 401 - Repia::Errors::Unauthorized
2103
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2104
+ Processing by DummiesController#show as HTML
2105
+ Parameters: {"id"=>"404"}
2106
+ 404 - Repia::Errors::NotFound
2107
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2108
+ Processing by DummiesController#show as HTML
2109
+ Parameters: {"id"=>"409"}
2110
+ 409 - Repia::Errors::Conflict
2111
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2112
+ Processing by DummiesController#show as HTML
2113
+ Parameters: {"id"=>"500"}
2114
+ 500 - Repia::Errors::InternalServerError
2115
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2116
+  (0.0ms) rollback transaction
2117
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2118
+  (0.1ms) begin transaction
2119
+ ---------------------------------------------------------------
2120
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
2121
+ ---------------------------------------------------------------
2122
+ Processing by DummiesController#show as HTML
2123
+ Parameters: {"id"=>"400"}
2124
+ 400 - Repia::Errors::BadRequest
2125
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2126
+ Processing by DummiesController#show as HTML
2127
+ Parameters: {"id"=>"401"}
2128
+ 401 - Repia::Errors::Unauthorized
2129
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2130
+ Processing by DummiesController#show as HTML
2131
+ Parameters: {"id"=>"404"}
2132
+ 404 - Repia::Errors::NotFound
2133
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2134
+ Processing by DummiesController#show as HTML
2135
+ Parameters: {"id"=>"409"}
2136
+ 409 - Repia::Errors::Conflict
2137
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2138
+ Processing by DummiesController#show as HTML
2139
+ Parameters: {"id"=>"500"}
2140
+ 500 - Repia::Errors::InternalServerError
2141
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2142
+  (0.1ms) rollback transaction
2143
+  (0.1ms) begin transaction
2144
+ -------------------------------------------------
2145
+ DummiesControllerTest: test_handle_standard_error
2146
+ -------------------------------------------------
2147
+ Processing by DummiesController#create as HTML
2148
+ String can't be coerced into Fixnum
2149
+ Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2150
+  (0.1ms) rollback transaction
2151
+  (0.0ms) begin transaction
2152
+ ------------------------------------------------------------------
2153
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
2154
+ ------------------------------------------------------------------
2155
+  (0.1ms) SAVEPOINT active_record_1
2156
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:12:18.231896"], ["updated_at", "2016-05-03 01:12:18.231896"], ["uuid", "145bf2d8-10cc-11e6-9a85-6c4008a6fa2a"]]
2157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2158
+ Processing by DummiesController#update as HTML
2159
+ Parameters: {"id"=>"145bf2d8-10cc-11e6-9a85-6c4008a6fa2a"}
2160
+ Attempting to get UniqueModel 145bf2d8-10cc-11e6-9a85-6c4008a6fa2a
2161
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "145bf2d8-10cc-11e6-9a85-6c4008a6fa2a"]]
2162
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2163
+  (0.9ms) rollback transaction
2164
+  (0.1ms) begin transaction
2165
+ ------------------------------------------------------
2166
+ DummiesControllerTest: test_options_request_is_handled
2167
+ ------------------------------------------------------
2168
+ Processing by DummiesController#options as HTML
2169
+ Rendered text template (0.0ms)
2170
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
2171
+ Processing by DummiesController#options as HTML
2172
+ Rendered text template (0.0ms)
2173
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2174
+  (0.0ms) rollback transaction
2175
+  (0.0ms) begin transaction
2176
+ ---------------------------------------------------------------------------
2177
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
2178
+ ---------------------------------------------------------------------------
2179
+ Processing by DummiesController#update as HTML
2180
+ Parameters: {"id"=>"blah"}
2181
+ Attempting to get UniqueModel blah
2182
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
2183
+ 404 - UniqueModel blah cannot be found
2184
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2185
+  (0.1ms) rollback transaction
2186
+  (0.1ms) begin transaction
2187
+ --------------------------------------------------
2188
+ DummiesControllerTest: test_render_multiple_errors
2189
+ --------------------------------------------------
2190
+ Processing by DummiesController#index as HTML
2191
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2192
+  (0.0ms) rollback transaction
2193
+  (0.0ms) begin transaction
2194
+ ----------------------------------------------------------------------------------
2195
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2196
+ ----------------------------------------------------------------------------------
2197
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fd358918a60>, "rack.errors"=>#<StringIO:0x007fd358918b78>, "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"}
2198
+  (0.0ms) rollback transaction
2199
+  (0.1ms) begin transaction
2200
+ ----------------------------------------------------------------------------------------
2201
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2202
+ ----------------------------------------------------------------------------------------
2203
+  (0.0ms) rollback transaction
2204
+  (0.0ms) begin transaction
2205
+ ---------------------------------------------------
2206
+ RepiaTest: test_Invalid_route_has_401_json_response
2207
+ ---------------------------------------------------
2208
+  (0.0ms) rollback transaction
2209
+  (0.0ms) begin transaction
2210
+ ------------------------------------------------------------
2211
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2212
+ ------------------------------------------------------------
2213
+  (0.0ms) SAVEPOINT active_record_1
2214
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:12:18.275136"], ["updated_at", "2016-05-03 01:12:18.275136"], ["uuid", "14628986-10cc-11e6-9a85-6c4008a6fa2a"]]
2215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2216
+  (0.4ms) rollback transaction
2217
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2218
+  (0.1ms) begin transaction
2219
+ ---------------------------------------------------------------
2220
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
2221
+ ---------------------------------------------------------------
2222
+ Processing by DummiesController#show as HTML
2223
+ Parameters: {"id"=>"400"}
2224
+ 400 - Repia::Errors::BadRequest
2225
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2226
+ Processing by DummiesController#show as HTML
2227
+ Parameters: {"id"=>"401"}
2228
+ 401 - Repia::Errors::Unauthorized
2229
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2230
+ Processing by DummiesController#show as HTML
2231
+ Parameters: {"id"=>"404"}
2232
+ 404 - Repia::Errors::NotFound
2233
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2234
+ Processing by DummiesController#show as HTML
2235
+ Parameters: {"id"=>"409"}
2236
+ 409 - Repia::Errors::Conflict
2237
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2238
+ Processing by DummiesController#show as HTML
2239
+ Parameters: {"id"=>"500"}
2240
+ 500 - Repia::Errors::InternalServerError
2241
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2242
+  (0.1ms) rollback transaction
2243
+  (0.0ms) begin transaction
2244
+ ---------------------------------------------------------------------------
2245
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
2246
+ ---------------------------------------------------------------------------
2247
+ Processing by DummiesController#update as HTML
2248
+ Parameters: {"id"=>"blah"}
2249
+ Attempting to get UniqueModel blah
2250
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
2251
+ 404 - UniqueModel blah cannot be found
2252
+ Completed 404 Not Found in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
2253
+  (0.0ms) rollback transaction
2254
+  (0.0ms) begin transaction
2255
+ ------------------------------------------------------------------
2256
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
2257
+ ------------------------------------------------------------------
2258
+  (0.1ms) SAVEPOINT active_record_1
2259
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:13:11.633341"], ["updated_at", "2016-05-03 01:13:11.633341"], ["uuid", "343059c8-10cc-11e6-a1e1-6c4008a6fa2a"]]
2260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2261
+ Processing by DummiesController#update as HTML
2262
+ Parameters: {"id"=>"343059c8-10cc-11e6-a1e1-6c4008a6fa2a"}
2263
+ Attempting to get UniqueModel 343059c8-10cc-11e6-a1e1-6c4008a6fa2a
2264
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "343059c8-10cc-11e6-a1e1-6c4008a6fa2a"]]
2265
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2266
+  (0.8ms) rollback transaction
2267
+  (0.1ms) begin transaction
2268
+ ------------------------------------------------------
2269
+ DummiesControllerTest: test_options_request_is_handled
2270
+ ------------------------------------------------------
2271
+ Processing by DummiesController#options as HTML
2272
+ Rendered text template (0.0ms)
2273
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)
2274
+ Processing by DummiesController#options as HTML
2275
+ Rendered text template (0.0ms)
2276
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2277
+  (0.1ms) rollback transaction
2278
+  (0.1ms) begin transaction
2279
+ -------------------------------------------------
2280
+ DummiesControllerTest: test_handle_standard_error
2281
+ -------------------------------------------------
2282
+ Processing by DummiesController#create as HTML
2283
+ String can't be coerced into Fixnum
2284
+ Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2285
+  (0.1ms) rollback transaction
2286
+  (0.1ms) begin transaction
2287
+ --------------------------------------------------
2288
+ DummiesControllerTest: test_render_multiple_errors
2289
+ --------------------------------------------------
2290
+ Processing by DummiesController#index as HTML
2291
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2292
+  (0.1ms) rollback transaction
2293
+  (0.1ms) begin transaction
2294
+ ------------------------------------------------------------
2295
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2296
+ ------------------------------------------------------------
2297
+  (0.0ms) SAVEPOINT active_record_1
2298
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:13:11.668650"], ["updated_at", "2016-05-03 01:13:11.668650"], ["uuid", "3435c0f2-10cc-11e6-a1e1-6c4008a6fa2a"]]
2299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2300
+  (0.4ms) rollback transaction
2301
+  (0.1ms) begin transaction
2302
+ ----------------------------------------------------------------------------------
2303
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2304
+ ----------------------------------------------------------------------------------
2305
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fcc55d40070>, "rack.errors"=>#<StringIO:0x007fcc55d40250>, "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"}
2306
+  (0.0ms) rollback transaction
2307
+  (0.0ms) begin transaction
2308
+ ---------------------------------------------------
2309
+ RepiaTest: test_Invalid_route_has_401_json_response
2310
+ ---------------------------------------------------
2311
+  (0.0ms) rollback transaction
2312
+  (0.0ms) begin transaction
2313
+ ----------------------------------------------------------------------------------------
2314
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2315
+ ----------------------------------------------------------------------------------------
2316
+  (0.0ms) rollback transaction
2317
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2318
+  (0.1ms) begin transaction
2319
+ -----------------------------------------
2320
+ ExampleIntegratedTest: test_invalid_route
2321
+ -----------------------------------------
2322
+ Started GET "/doesnotexist" for 127.0.0.1 at 2016-05-02 20:15:05 -0500
2323
+  (0.1ms) rollback transaction
2324
+  (0.0ms) begin transaction
2325
+ --------------------------------------------------
2326
+ DummiesControllerTest: test_render_multiple_errors
2327
+ --------------------------------------------------
2328
+ Processing by DummiesController#index as HTML
2329
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2330
+  (0.0ms) rollback transaction
2331
+  (0.0ms) begin transaction
2332
+ ------------------------------------------------------------------
2333
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
2334
+ ------------------------------------------------------------------
2335
+  (0.0ms) SAVEPOINT active_record_1
2336
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:15:05.129192"], ["updated_at", "2016-05-03 01:15:05.129192"], ["uuid", "77d6716c-10cc-11e6-8362-6c4008a6fa2a"]]
2337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2338
+ Processing by DummiesController#update as HTML
2339
+ Parameters: {"id"=>"77d6716c-10cc-11e6-8362-6c4008a6fa2a"}
2340
+ Attempting to get UniqueModel 77d6716c-10cc-11e6-8362-6c4008a6fa2a
2341
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "77d6716c-10cc-11e6-8362-6c4008a6fa2a"]]
2342
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2343
+  (1.0ms) rollback transaction
2344
+  (0.1ms) begin transaction
2345
+ ---------------------------------------------------------------------------
2346
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
2347
+ ---------------------------------------------------------------------------
2348
+ Processing by DummiesController#update as HTML
2349
+ Parameters: {"id"=>"blah"}
2350
+ Attempting to get UniqueModel blah
2351
+ UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
2352
+ 404 - UniqueModel blah cannot be found
2353
+ Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2354
+  (0.1ms) rollback transaction
2355
+  (0.0ms) begin transaction
2356
+ ------------------------------------------------------
2357
+ DummiesControllerTest: test_options_request_is_handled
2358
+ ------------------------------------------------------
2359
+ Processing by DummiesController#options as HTML
2360
+ Rendered text template (0.0ms)
2361
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
2362
+ Processing by DummiesController#options as HTML
2363
+ Rendered text template (0.0ms)
2364
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2365
+  (0.0ms) rollback transaction
2366
+  (0.1ms) begin transaction
2367
+ -------------------------------------------------
2368
+ DummiesControllerTest: test_handle_standard_error
2369
+ -------------------------------------------------
2370
+ Processing by DummiesController#create as HTML
2371
+ String can't be coerced into Fixnum
2372
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2373
+  (0.0ms) rollback transaction
2374
+  (0.0ms) begin transaction
2375
+ ---------------------------------------------------------------
2376
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
2377
+ ---------------------------------------------------------------
2378
+ Processing by DummiesController#show as HTML
2379
+ Parameters: {"id"=>"400"}
2380
+ 400 - Repia::Errors::BadRequest
2381
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2382
+ Processing by DummiesController#show as HTML
2383
+ Parameters: {"id"=>"401"}
2384
+ 401 - Repia::Errors::Unauthorized
2385
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2386
+ Processing by DummiesController#show as HTML
2387
+ Parameters: {"id"=>"404"}
2388
+ 404 - Repia::Errors::NotFound
2389
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2390
+ Processing by DummiesController#show as HTML
2391
+ Parameters: {"id"=>"409"}
2392
+ 409 - Repia::Errors::Conflict
2393
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2394
+ Processing by DummiesController#show as HTML
2395
+ Parameters: {"id"=>"500"}
2396
+ 500 - Repia::Errors::InternalServerError
2397
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2398
+  (0.1ms) rollback transaction
2399
+  (0.0ms) begin transaction
2400
+ ------------------------------------------------------------
2401
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2402
+ ------------------------------------------------------------
2403
+  (0.0ms) SAVEPOINT active_record_1
2404
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:15:05.171426"], ["updated_at", "2016-05-03 01:15:05.171426"], ["uuid", "77dce36c-10cc-11e6-8362-6c4008a6fa2a"]]
2405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2406
+  (0.4ms) rollback transaction
2407
+  (0.0ms) begin transaction
2408
+ ----------------------------------------------------------------------------------
2409
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2410
+ ----------------------------------------------------------------------------------
2411
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f8b538e88f8>, "rack.errors"=>#<StringIO:0x007f8b538e89e8>, "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"}
2412
+  (0.0ms) rollback transaction
2413
+  (0.0ms) begin transaction
2414
+ ----------------------------------------------------------------------------------------
2415
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2416
+ ----------------------------------------------------------------------------------------
2417
+  (0.0ms) rollback transaction
2418
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2419
+  (0.1ms) begin transaction
2420
+ ---------------------------------------------------------------------------
2421
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
2422
+ ---------------------------------------------------------------------------
2423
+ Processing by DummiesController#update as HTML
2424
+ Parameters: {"id"=>"blah"}
2425
+ Attempting to get UniqueModel blah
2426
+ UniqueModel Load (0.2ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
2427
+ 404 - UniqueModel blah cannot be found
2428
+ Completed 404 Not Found in 12ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2429
+  (0.1ms) rollback transaction
2430
+  (0.0ms) begin transaction
2431
+ ------------------------------------------------------------------
2432
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
2433
+ ------------------------------------------------------------------
2434
+  (0.0ms) SAVEPOINT active_record_1
2435
+ SQL (0.3ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:37:52.005441"], ["updated_at", "2016-05-03 01:37:52.005441"], ["uuid", "a68f3860-10cf-11e6-aa48-6c4008a6fa2a"]]
2436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2437
+ Processing by DummiesController#update as HTML
2438
+ Parameters: {"id"=>"a68f3860-10cf-11e6-aa48-6c4008a6fa2a"}
2439
+ Attempting to get UniqueModel a68f3860-10cf-11e6-aa48-6c4008a6fa2a
2440
+ UniqueModel Load (0.0ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "a68f3860-10cf-11e6-aa48-6c4008a6fa2a"]]
2441
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2442
+  (0.4ms) rollback transaction
2443
+  (0.0ms) begin transaction
2444
+ -------------------------------------------------
2445
+ DummiesControllerTest: test_handle_standard_error
2446
+ -------------------------------------------------
2447
+ Processing by DummiesController#create as HTML
2448
+ String can't be coerced into Fixnum
2449
+ Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2450
+  (0.0ms) rollback transaction
2451
+  (0.0ms) begin transaction
2452
+ ------------------------------------------------------
2453
+ DummiesControllerTest: test_options_request_is_handled
2454
+ ------------------------------------------------------
2455
+ Processing by DummiesController#options as HTML
2456
+ Rendered text template (0.0ms)
2457
+ Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
2458
+ Processing by DummiesController#options as HTML
2459
+ Rendered text template (0.0ms)
2460
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2461
+  (0.1ms) rollback transaction
2462
+  (0.0ms) begin transaction
2463
+ ------------------------------------------
2464
+ DummiesControllerTest: test_exceptions_app
2465
+ ------------------------------------------
2466
+ Processing by DummiesController#destroy as HTML
2467
+ Parameters: {"id"=>"blah"}
2468
+ wrong number of arguments (0 for 1..2)
2469
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2470
+  (0.0ms) rollback transaction
2471
+  (0.0ms) begin transaction
2472
+ --------------------------------------------------
2473
+ DummiesControllerTest: test_render_multiple_errors
2474
+ --------------------------------------------------
2475
+ Processing by DummiesController#index as HTML
2476
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2477
+  (0.0ms) rollback transaction
2478
+  (0.0ms) begin transaction
2479
+ ---------------------------------------------------------------
2480
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
2481
+ ---------------------------------------------------------------
2482
+ Processing by DummiesController#show as HTML
2483
+ Parameters: {"id"=>"400"}
2484
+ 400 - Repia::Errors::BadRequest
2485
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2486
+ Processing by DummiesController#show as HTML
2487
+ Parameters: {"id"=>"401"}
2488
+ 401 - Repia::Errors::Unauthorized
2489
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2490
+ Processing by DummiesController#show as HTML
2491
+ Parameters: {"id"=>"404"}
2492
+ 404 - Repia::Errors::NotFound
2493
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2494
+ Processing by DummiesController#show as HTML
2495
+ Parameters: {"id"=>"409"}
2496
+ 409 - Repia::Errors::Conflict
2497
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2498
+ Processing by DummiesController#show as HTML
2499
+ Parameters: {"id"=>"500"}
2500
+ 500 - Repia::Errors::InternalServerError
2501
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2502
+  (0.0ms) rollback transaction
2503
+  (0.0ms) begin transaction
2504
+ ----------------------------------------------------------------------------------------
2505
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2506
+ ----------------------------------------------------------------------------------------
2507
+  (0.0ms) rollback transaction
2508
+  (0.0ms) begin transaction
2509
+ ----------------------------------------------------------------------------------
2510
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2511
+ ----------------------------------------------------------------------------------
2512
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fac4fbd04b8>, "rack.errors"=>#<StringIO:0x007fac4fbd05a8>, "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"}
2513
+  (0.0ms) rollback transaction
2514
+  (0.1ms) begin transaction
2515
+ ------------------------------------------------------------
2516
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2517
+ ------------------------------------------------------------
2518
+  (0.0ms) SAVEPOINT active_record_1
2519
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:37:52.044404"], ["updated_at", "2016-05-03 01:37:52.044404"], ["uuid", "a6952874-10cf-11e6-aa48-6c4008a6fa2a"]]
2520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2521
+  (0.3ms) rollback transaction
2522
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2523
+  (0.1ms) begin transaction
2524
+ ------------------------------------------------------
2525
+ DummiesControllerTest: test_options_request_is_handled
2526
+ ------------------------------------------------------
2527
+ Processing by DummiesController#options as HTML
2528
+ Rendered text template (0.0ms)
2529
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
2530
+ Processing by DummiesController#options as HTML
2531
+ Rendered text template (0.0ms)
2532
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2533
+  (0.0ms) rollback transaction
2534
+  (0.0ms) begin transaction
2535
+ -------------------------------------------------
2536
+ DummiesControllerTest: test_handle_standard_error
2537
+ -------------------------------------------------
2538
+ Processing by DummiesController#create as HTML
2539
+ String can't be coerced into Fixnum
2540
+ Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2541
+  (0.0ms) rollback transaction
2542
+  (0.0ms) begin transaction
2543
+ ---------------------------------------------------------------
2544
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
2545
+ ---------------------------------------------------------------
2546
+ Processing by DummiesController#show as HTML
2547
+ Parameters: {"id"=>"400"}
2548
+ 400 - Repia::Errors::BadRequest
2549
+ Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2550
+ Processing by DummiesController#show as HTML
2551
+ Parameters: {"id"=>"401"}
2552
+ 401 - Repia::Errors::Unauthorized
2553
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2554
+ Processing by DummiesController#show as HTML
2555
+ Parameters: {"id"=>"404"}
2556
+ 404 - Repia::Errors::NotFound
2557
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2558
+ Processing by DummiesController#show as HTML
2559
+ Parameters: {"id"=>"409"}
2560
+ 409 - Repia::Errors::Conflict
2561
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2562
+ Processing by DummiesController#show as HTML
2563
+ Parameters: {"id"=>"500"}
2564
+ 500 - Repia::Errors::InternalServerError
2565
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2566
+  (0.0ms) rollback transaction
2567
+  (0.0ms) begin transaction
2568
+ ---------------------------------------------------------------------------
2569
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
2570
+ ---------------------------------------------------------------------------
2571
+ Processing by DummiesController#update as HTML
2572
+ Parameters: {"id"=>"blah"}
2573
+ Attempting to get UniqueModel blah
2574
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
2575
+ 404 - UniqueModel blah cannot be found
2576
+ Completed 404 Not Found in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2577
+  (0.1ms) rollback transaction
2578
+  (0.1ms) begin transaction
2579
+ ------------------------------------------
2580
+ DummiesControllerTest: test_exceptions_app
2581
+ ------------------------------------------
2582
+ Processing by DummiesController#destroy as HTML
2583
+ Parameters: {"id"=>"blah"}
2584
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2585
+  (0.0ms) rollback transaction
2586
+  (0.0ms) begin transaction
2587
+ ------------------------------------------------------------------
2588
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
2589
+ ------------------------------------------------------------------
2590
+  (0.0ms) SAVEPOINT active_record_1
2591
+ SQL (0.4ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:39:44.878527"], ["updated_at", "2016-05-03 01:39:44.878527"], ["uuid", "e9d64618-10cf-11e6-8840-6c4008a6fa2a"]]
2592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2593
+ Processing by DummiesController#update as HTML
2594
+ Parameters: {"id"=>"e9d64618-10cf-11e6-8840-6c4008a6fa2a"}
2595
+ Attempting to get UniqueModel e9d64618-10cf-11e6-8840-6c4008a6fa2a
2596
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "e9d64618-10cf-11e6-8840-6c4008a6fa2a"]]
2597
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2598
+  (0.9ms) rollback transaction
2599
+  (0.1ms) begin transaction
2600
+ --------------------------------------------------
2601
+ DummiesControllerTest: test_render_multiple_errors
2602
+ --------------------------------------------------
2603
+ Processing by DummiesController#index as HTML
2604
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2605
+  (0.1ms) rollback transaction
2606
+  (0.0ms) begin transaction
2607
+ ----------------------------------------------------------------------------------
2608
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2609
+ ----------------------------------------------------------------------------------
2610
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007fdafc4a1328>, "rack.errors"=>#<StringIO:0x007fdafc4a13c8>, "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"}
2611
+  (0.0ms) rollback transaction
2612
+  (0.0ms) begin transaction
2613
+ ------------------------------------------------------------
2614
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2615
+ ------------------------------------------------------------
2616
+  (0.0ms) SAVEPOINT active_record_1
2617
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:39:44.899727"], ["updated_at", "2016-05-03 01:39:44.899727"], ["uuid", "e9d98378-10cf-11e6-8840-6c4008a6fa2a"]]
2618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2619
+  (0.4ms) rollback transaction
2620
+  (0.1ms) begin transaction
2621
+ ----------------------------------------------------------------------------------------
2622
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2623
+ ----------------------------------------------------------------------------------------
2624
+  (0.0ms) rollback transaction
2625
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2626
+  (0.1ms) begin transaction
2627
+ ------------------------------------------------------------------
2628
+ DummiesControllerTest: test_find_object_will_find_object_if_exists
2629
+ ------------------------------------------------------------------
2630
+  (0.1ms) SAVEPOINT active_record_1
2631
+ SQL (1.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:40:42.055680"], ["updated_at", "2016-05-03 01:40:42.055680"], ["uuid", "0bead214-10d0-11e6-9cce-6c4008a6fa2a"]]
2632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2633
+ Processing by DummiesController#update as HTML
2634
+ Parameters: {"id"=>"0bead214-10d0-11e6-9cce-6c4008a6fa2a"}
2635
+ Attempting to get UniqueModel 0bead214-10d0-11e6-9cce-6c4008a6fa2a
2636
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "0bead214-10d0-11e6-9cce-6c4008a6fa2a"]]
2637
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2638
+  (0.9ms) rollback transaction
2639
+  (0.1ms) begin transaction
2640
+ ---------------------------------------------------------------------------
2641
+ DummiesControllerTest: test_find_object_will_error_if_object_does_not_exist
2642
+ ---------------------------------------------------------------------------
2643
+ Processing by DummiesController#update as HTML
2644
+ Parameters: {"id"=>"blah"}
2645
+ Attempting to get UniqueModel blah
2646
+ UniqueModel Load (0.1ms) SELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1 [["uuid", "blah"]]
2647
+ 404 - UniqueModel blah cannot be found
2648
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2649
+  (0.1ms) rollback transaction
2650
+  (0.1ms) begin transaction
2651
+ ---------------------------------------------------------------
2652
+ DummiesControllerTest: test_Predefined_errors_should_be_handled
2653
+ ---------------------------------------------------------------
2654
+ Processing by DummiesController#show as HTML
2655
+ Parameters: {"id"=>"400"}
2656
+ 400 - Repia::Errors::BadRequest
2657
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2658
+ Processing by DummiesController#show as HTML
2659
+ Parameters: {"id"=>"401"}
2660
+ 401 - Repia::Errors::Unauthorized
2661
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2662
+ Processing by DummiesController#show as HTML
2663
+ Parameters: {"id"=>"404"}
2664
+ 404 - Repia::Errors::NotFound
2665
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2666
+ Processing by DummiesController#show as HTML
2667
+ Parameters: {"id"=>"409"}
2668
+ 409 - Repia::Errors::Conflict
2669
+ Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2670
+ Processing by DummiesController#show as HTML
2671
+ Parameters: {"id"=>"500"}
2672
+ 500 - Repia::Errors::InternalServerError
2673
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2674
+  (0.1ms) rollback transaction
2675
+  (0.0ms) begin transaction
2676
+ ------------------------------------------
2677
+ DummiesControllerTest: test_exceptions_app
2678
+ ------------------------------------------
2679
+ Processing by DummiesController#destroy as HTML
2680
+ Parameters: {"id"=>"blah"}
2681
+ Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2682
+  (0.1ms) rollback transaction
2683
+  (0.0ms) begin transaction
2684
+ --------------------------------------------------
2685
+ DummiesControllerTest: test_render_multiple_errors
2686
+ --------------------------------------------------
2687
+ Processing by DummiesController#index as HTML
2688
+ Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2689
+  (0.1ms) rollback transaction
2690
+  (0.1ms) begin transaction
2691
+ ------------------------------------------------------
2692
+ DummiesControllerTest: test_options_request_is_handled
2693
+ ------------------------------------------------------
2694
+ Processing by DummiesController#options as HTML
2695
+ Rendered text template (0.0ms)
2696
+ Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
2697
+ Processing by DummiesController#options as HTML
2698
+ Rendered text template (0.0ms)
2699
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2700
+  (0.0ms) rollback transaction
2701
+  (0.1ms) begin transaction
2702
+ -------------------------------------------------
2703
+ DummiesControllerTest: test_handle_standard_error
2704
+ -------------------------------------------------
2705
+ Processing by DummiesController#create as HTML
2706
+ String can't be coerced into Fixnum
2707
+ Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2708
+  (0.0ms) rollback transaction
2709
+  (0.0ms) begin transaction
2710
+ ----------------------------------------------------------------------------------------
2711
+ RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
2712
+ ----------------------------------------------------------------------------------------
2713
+  (0.0ms) rollback transaction
2714
+  (0.1ms) begin transaction
2715
+ ----------------------------------------------------------------------------------
2716
+ RepiaTest: test_HttpMethodNotAllowed_middleware_throws_405_for_invalid_HTTP_method
2717
+ ----------------------------------------------------------------------------------
2718
+ ActionController::UnknownHttpMethod: {"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x007f9e511a2880>, "rack.errors"=>#<StringIO:0x007f9e511a2948>, "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"}
2719
+  (0.0ms) rollback transaction
2720
+  (0.1ms) begin transaction
2721
+ ------------------------------------------------------------
2722
+ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
2723
+ ------------------------------------------------------------
2724
+  (0.0ms) SAVEPOINT active_record_1
2725
+ SQL (0.2ms) INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-05-03 01:40:42.107871"], ["updated_at", "2016-05-03 01:40:42.107871"], ["uuid", "0bf2c780-10d0-11e6-9cce-6c4008a6fa2a"]]
2726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2727
+  (0.5ms) rollback transaction