repia 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/repia/core.rb +53 -23
- data/lib/repia/version.rb +1 -1
- data/test/dummy/app/controllers/dummies_controller.rb +10 -0
- data/test/dummy/log/test.log +1710 -0
- data/test/repia_test.rb +34 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48cc1f107f305100b05ac5988d7b423c39c59871
|
4
|
+
data.tar.gz: d72b0acc3d21385ffceb17fd4da2b7e6779048ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41f69c5cb1c7312a558da4e468a60cdcbdace45c11819a3410caa493e71096151d7f1fa3f4eaa161f973bb36c2082205f525b146fba10590baeac5d2ba1d0c6f
|
7
|
+
data.tar.gz: d854fb71bcedadac0a6d28bb7b65cf26c0d40cc0e1178ca4aef7f8c47b19c450370f60a97c537289dafda9441c5c6cff1381595ddf99b0e3fd34f9e566306356
|
data/lib/repia/core.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/repia/version.rb
CHANGED
@@ -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
|
data/test/dummy/log/test.log
CHANGED
@@ -1015,3 +1015,1713 @@ RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
|
1015
1015
|
[1m[35m (0.4ms)[0m rollback transaction
|
1016
1016
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1017
1017
|
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1018
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1019
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1020
|
+
------------------------------------------------------------
|
1021
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1022
|
+
------------------------------------------------------------
|
1023
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1024
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1026
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1027
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1038
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1063
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1078
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1079
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1087
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1094
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1119
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1130
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1131
|
+
------------------------------------------------------------
|
1132
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1133
|
+
------------------------------------------------------------
|
1134
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1135
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1137
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1138
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1139
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1146
|
+
------------------------------------------------------------
|
1147
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1148
|
+
------------------------------------------------------------
|
1149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1150
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1152
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1153
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1164
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1204
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1205
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1230
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1237
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1248
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1256
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1262
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1263
|
+
------------------------------------------------------------
|
1264
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1265
|
+
------------------------------------------------------------
|
1266
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1267
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1269
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1270
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1271
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1282
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1290
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1315
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1323
|
+
----------------------------------------------------------------------------------------
|
1324
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1325
|
+
----------------------------------------------------------------------------------------
|
1326
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1327
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1328
|
+
------------------------------------------------------------
|
1329
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1330
|
+
------------------------------------------------------------
|
1331
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1332
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1334
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1335
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1341
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1342
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1349
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1357
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1368
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1393
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1400
|
+
----------------------------------------------------------------------------------------
|
1401
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1402
|
+
----------------------------------------------------------------------------------------
|
1403
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1404
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1405
|
+
------------------------------------------------------------
|
1406
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1407
|
+
------------------------------------------------------------
|
1408
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1409
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1411
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1412
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1413
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1421
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1446
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1453
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1464
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1465
|
+
------------------------------------------------------------
|
1466
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1467
|
+
------------------------------------------------------------
|
1468
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1469
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1471
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1472
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1478
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1479
|
+
----------------------------------------------------------------------------------------
|
1480
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1481
|
+
----------------------------------------------------------------------------------------
|
1482
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1483
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1484
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1490
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1491
|
+
------------------------------------------------------------
|
1492
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1493
|
+
------------------------------------------------------------
|
1494
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1495
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1497
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1499
|
+
----------------------------------------------------------------------------------------
|
1500
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1501
|
+
----------------------------------------------------------------------------------------
|
1502
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1503
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1528
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1536
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35mUniqueModel Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1547
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1554
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1565
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1566
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1572
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1573
|
+
----------------------------------------------------------------------------------------
|
1574
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1575
|
+
----------------------------------------------------------------------------------------
|
1576
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1577
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1578
|
+
------------------------------------------------------------
|
1579
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1580
|
+
------------------------------------------------------------
|
1581
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1582
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1584
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1610
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1621
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1628
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1639
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1647
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1648
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1649
|
+
------------------------------------------------------------
|
1650
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1651
|
+
------------------------------------------------------------
|
1652
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1653
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1655
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1656
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1662
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1663
|
+
----------------------------------------------------------------------------------------
|
1664
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1665
|
+
----------------------------------------------------------------------------------------
|
1666
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35mUniqueModel Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1678
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1703
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1714
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1722
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1729
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1731
|
+
----------------------------------------------------------------------------------------
|
1732
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1733
|
+
----------------------------------------------------------------------------------------
|
1734
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1735
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1736
|
+
------------------------------------------------------------
|
1737
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1738
|
+
------------------------------------------------------------
|
1739
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1740
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1742
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1743
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1749
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1785
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1792
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35mUniqueModel Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1803
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1804
|
+
------------------------------------------------------------------
|
1805
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
1806
|
+
------------------------------------------------------------------
|
1807
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1808
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1819
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1827
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1828
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1829
|
+
------------------------------------------------------------
|
1830
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
1831
|
+
------------------------------------------------------------
|
1832
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1833
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1835
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1836
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1842
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1843
|
+
----------------------------------------------------------------------------------------
|
1844
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
1845
|
+
----------------------------------------------------------------------------------------
|
1846
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1847
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1858
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1859
|
+
------------------------------------------------------------------
|
1860
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
1861
|
+
------------------------------------------------------------------
|
1862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1863
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "c28ec5c0-10cb-11e6-bdfa-6c4008a6fa2a"]]
|
1869
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
1870
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1878
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1889
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1914
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1922
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1923
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1948
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1956
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1963
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1964
|
+
------------------------------------------------------------------
|
1965
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
1966
|
+
------------------------------------------------------------------
|
1967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1968
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1976
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "blah"]]
|
1984
|
+
404 - UniqueModel blah cannot be found
|
1985
|
+
Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
1986
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1987
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1998
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1999
|
+
------------------------------------------------------------
|
2000
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2001
|
+
------------------------------------------------------------
|
2002
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2003
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2005
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2006
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2012
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2013
|
+
----------------------------------------------------------------------------------------
|
2014
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2015
|
+
----------------------------------------------------------------------------------------
|
2016
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2017
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2018
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2019
|
+
----------------------------------------------------------------------------------------
|
2020
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2021
|
+
----------------------------------------------------------------------------------------
|
2022
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2023
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2024
|
+
------------------------------------------------------------
|
2025
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2026
|
+
------------------------------------------------------------
|
2027
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2028
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2030
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
2031
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2032
|
+
---------------------------------------------------
|
2033
|
+
RepiaTest: test_Invalid_route_has_401_json_response
|
2034
|
+
---------------------------------------------------
|
2035
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2042
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2050
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2051
|
+
------------------------------------------------------------------
|
2052
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
2053
|
+
------------------------------------------------------------------
|
2054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2055
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.3ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "0576adf8-10cc-11e6-a8d2-6c4008a6fa2a"]]
|
2061
|
+
Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
2062
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2063
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2074
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2085
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2092
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2117
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2118
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2143
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2152
|
+
------------------------------------------------------------------
|
2153
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
2154
|
+
------------------------------------------------------------------
|
2155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2156
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2164
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2175
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "blah"]]
|
2183
|
+
404 - UniqueModel blah cannot be found
|
2184
|
+
Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
2185
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2186
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2193
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2200
|
+
----------------------------------------------------------------------------------------
|
2201
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2202
|
+
----------------------------------------------------------------------------------------
|
2203
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2204
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2205
|
+
---------------------------------------------------
|
2206
|
+
RepiaTest: test_Invalid_route_has_401_json_response
|
2207
|
+
---------------------------------------------------
|
2208
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2209
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2210
|
+
------------------------------------------------------------
|
2211
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2212
|
+
------------------------------------------------------------
|
2213
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2214
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2216
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2217
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2218
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2243
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "blah"]]
|
2251
|
+
404 - UniqueModel blah cannot be found
|
2252
|
+
Completed 404 Not Found in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
2253
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2254
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2255
|
+
------------------------------------------------------------------
|
2256
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
2257
|
+
------------------------------------------------------------------
|
2258
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2259
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "343059c8-10cc-11e6-a1e1-6c4008a6fa2a"]]
|
2265
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
2266
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2267
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2278
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2286
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2294
|
+
------------------------------------------------------------
|
2295
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2296
|
+
------------------------------------------------------------
|
2297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2298
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2300
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2301
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2307
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2308
|
+
---------------------------------------------------
|
2309
|
+
RepiaTest: test_Invalid_route_has_401_json_response
|
2310
|
+
---------------------------------------------------
|
2311
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2313
|
+
----------------------------------------------------------------------------------------
|
2314
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2315
|
+
----------------------------------------------------------------------------------------
|
2316
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2317
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2318
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2324
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2331
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2332
|
+
------------------------------------------------------------------
|
2333
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
2334
|
+
------------------------------------------------------------------
|
2335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2336
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2344
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.2ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "blah"]]
|
2352
|
+
404 - UniqueModel blah cannot be found
|
2353
|
+
Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
2354
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2355
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2366
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2399
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2400
|
+
------------------------------------------------------------
|
2401
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2402
|
+
------------------------------------------------------------
|
2403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2404
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2406
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2407
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2413
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2414
|
+
----------------------------------------------------------------------------------------
|
2415
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2416
|
+
----------------------------------------------------------------------------------------
|
2417
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2418
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2419
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.2ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "blah"]]
|
2427
|
+
404 - UniqueModel blah cannot be found
|
2428
|
+
Completed 404 Not Found in 12ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
2429
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2430
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2431
|
+
------------------------------------------------------------------
|
2432
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
2433
|
+
------------------------------------------------------------------
|
2434
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2435
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.0ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "a68f3860-10cf-11e6-aa48-6c4008a6fa2a"]]
|
2441
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
2442
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2443
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2462
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2471
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2503
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2504
|
+
----------------------------------------------------------------------------------------
|
2505
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2506
|
+
----------------------------------------------------------------------------------------
|
2507
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2508
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2514
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2515
|
+
------------------------------------------------------------
|
2516
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2517
|
+
------------------------------------------------------------
|
2518
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2519
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2521
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2522
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2523
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2534
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2542
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2567
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "blah"]]
|
2575
|
+
404 - UniqueModel blah cannot be found
|
2576
|
+
Completed 404 Not Found in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
2577
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2578
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2586
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2587
|
+
------------------------------------------------------------------
|
2588
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
2589
|
+
------------------------------------------------------------------
|
2590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2591
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "e9d64618-10cf-11e6-8840-6c4008a6fa2a"]]
|
2597
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
2598
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2599
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2606
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2612
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2613
|
+
------------------------------------------------------------
|
2614
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2615
|
+
------------------------------------------------------------
|
2616
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2617
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2619
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2620
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2621
|
+
----------------------------------------------------------------------------------------
|
2622
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2623
|
+
----------------------------------------------------------------------------------------
|
2624
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2625
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2626
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2627
|
+
------------------------------------------------------------------
|
2628
|
+
DummiesControllerTest: test_find_object_will_find_object_if_exists
|
2629
|
+
------------------------------------------------------------------
|
2630
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2631
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUniqueModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2639
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUniqueModel Load (0.1ms)[0m [1mSELECT "unique_models".* FROM "unique_models" WHERE "unique_models"."uuid" = ? LIMIT 1[0m [["uuid", "blah"]]
|
2647
|
+
404 - UniqueModel blah cannot be found
|
2648
|
+
Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
2649
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2650
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2675
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2690
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2701
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2709
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2710
|
+
----------------------------------------------------------------------------------------
|
2711
|
+
RepiaTest: test_HttpMethodNotAllowed_middleware_does_not_throw_405_for_valid_HTTP_method
|
2712
|
+
----------------------------------------------------------------------------------------
|
2713
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2714
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2720
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2721
|
+
------------------------------------------------------------
|
2722
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
2723
|
+
------------------------------------------------------------
|
2724
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2725
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2727
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|