repia 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/repia/core.rb +15 -2
- data/lib/repia/errors.rb +27 -0
- data/lib/repia/middlewares.rb +30 -0
- data/lib/repia/version.rb +1 -1
- data/lib/repia.rb +1 -0
- data/test/dummy/config/routes.rb +1 -0
- data/test/dummy/log/development.log +1 -9
- data/test/dummy/log/test.log +674 -165
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c43c35f68fca4bb9550fc155b016f19c6ece35a1
|
4
|
+
data.tar.gz: 7115749047f6e1813fb74d326a7d7c75c094c345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 559a23596a4dababa985291550e502bc23081e78d1a7b7d9fbdb4302660db441cdd3e06b532eb41285c9a5c20a260322b1fa9ebaa051ad26b0495e2ebb4c971b
|
7
|
+
data.tar.gz: 2b487c67856a82b5f077ed34d7748b9c26c254d371061a6bb80755130e25e7b8ee6c8da45eefe238950669c3ee2e0c7a7b4f411be8ea8b5f08bdb7c32cf04c29
|
data/lib/repia/core.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'json'
|
1
2
|
require 'repia/errors'
|
2
3
|
|
3
4
|
module Repia
|
@@ -42,19 +43,31 @@ module Repia
|
|
42
43
|
render_error 500, "Unknown error occurred: #{exception.message}"
|
43
44
|
end
|
44
45
|
|
46
|
+
# Catch all manually thrown HTTP errors (predefined by repia)
|
45
47
|
rescue_from Errors::HTTPError do |exception|
|
46
48
|
status_code = exception.class.const_get("STATUS_CODE")
|
47
|
-
message = exception.message || exception.class
|
49
|
+
message = exception.message || exception.class::MESSAGE
|
48
50
|
logger.error "#{status_code} - #{message}"
|
49
51
|
render_error status_code, message
|
50
52
|
end
|
51
53
|
|
54
|
+
##
|
55
|
+
# Use this as an action triggered by exceptions_app to return a JSON
|
56
|
+
# response to any middleware level exceptions
|
57
|
+
#
|
58
|
+
def exceptions_app
|
59
|
+
status = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code.to_i
|
60
|
+
error = Errors::STATUS_CODE_TO_ERROR[status]
|
61
|
+
message = error ? error::MESSAGE : "Unknown error"
|
62
|
+
render_error status, message
|
63
|
+
end
|
64
|
+
|
52
65
|
##
|
53
66
|
# Renders a generic OPTIONS response. The actual controller must
|
54
67
|
# override this action if desired to have specific OPTIONS handling
|
55
68
|
# logic.
|
56
69
|
#
|
57
|
-
def options
|
70
|
+
def options
|
58
71
|
# echo back access-control-request-headers
|
59
72
|
if request.headers["Access-Control-Request-Headers"]
|
60
73
|
response["Access-Control-Allow-Headers"] =
|
data/lib/repia/errors.rb
CHANGED
@@ -5,8 +5,35 @@ module Repia
|
|
5
5
|
class HTTPError < StandardError; end
|
6
6
|
class BadRequest < HTTPError; STATUS_CODE = 400; end
|
7
7
|
class Unauthorized < HTTPError; STATUS_CODE = 401; end
|
8
|
+
class PaymentRequired < HTTPError; STATUS_CODE = 402; end
|
9
|
+
class Forbidden < HTTPError; STATUS_CODE = 403; end
|
8
10
|
class NotFound < HTTPError; STATUS_CODE = 404; end
|
11
|
+
class MethodNotAllowed < HTTPError; STATUS_CODE = 405; end
|
12
|
+
class NotAcceptable < HTTPError; STATUS_CODE = 406; end
|
13
|
+
class ProxyAuthenticationRequired < HTTPError; STATUS_CODE = 407; end
|
14
|
+
class RequestTimeout < HTTPError; STATUS_CODE = 408; end
|
9
15
|
class Conflict < HTTPError; STATUS_CODE = 409; end
|
16
|
+
class Gone < HTTPError; STATUS_CODE = 410; end
|
17
|
+
class LengthRequired < HTTPError; STATUS_CODE = 411; end
|
18
|
+
class PreconditionFailed < HTTPError; STATUS_CODE = 412; end
|
19
|
+
class RequestEntityTooLarge < HTTPError; STATUS_CODE = 413; end
|
20
|
+
class RequestURITooLong < HTTPError; STATUS_CODE = 414; end
|
21
|
+
class UnsupportedMediaType < HTTPError; STATUS_CODE = 415; end
|
22
|
+
class RequestedRangeNotSatisfiable < HTTPError; STATUS_CODE = 416; end
|
23
|
+
class ExpectationFailed < HTTPError; STATUS_CODE = 417; end
|
10
24
|
class InternalServerError < HTTPError; STATUS_CODE = 500; end
|
25
|
+
class NotImplemented < HTTPError; STATUS_CODE = 501; end
|
26
|
+
class BadGateway < HTTPError; STATUS_CODE = 502; end
|
27
|
+
class ServiceUnavailable < HTTPError; STATUS_CODE = 503; end
|
28
|
+
class GatewayTimeout < HTTPError; STATUS_CODE = 504; end
|
29
|
+
class HTTPVersionNotSupported < HTTPError; STATUS_CODE = 505; end
|
30
|
+
|
31
|
+
# At loading time, create a map and store a humanized error message for
|
32
|
+
# convenience.
|
33
|
+
STATUS_CODE_TO_ERROR = {}
|
34
|
+
HTTPError.subclasses.each do |error|
|
35
|
+
STATUS_CODE_TO_ERROR[error::STATUS_CODE] = error
|
36
|
+
error::MESSAGE = error.name.split("::").last.underscore.humanize
|
37
|
+
end
|
11
38
|
end
|
12
39
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Repia
|
2
|
+
##
|
3
|
+
# This class serves as a middleware to handle Method Not Allowed error
|
4
|
+
# (which is not handled by show_exceptions for some reason).
|
5
|
+
#
|
6
|
+
# Code was excerpted from https://gist.github.com/viola/1243572 and was
|
7
|
+
# modified to serve a JSON response.
|
8
|
+
#
|
9
|
+
# Add it after ActionDispatch::RequestId to keep the request ID in the
|
10
|
+
# response headers.
|
11
|
+
#
|
12
|
+
class HttpMethodNotAllowed
|
13
|
+
def initialize(app)
|
14
|
+
@app = app
|
15
|
+
end
|
16
|
+
|
17
|
+
def call(env)
|
18
|
+
if !ActionDispatch::Request::HTTP_METHODS.include?(env["REQUEST_METHOD"].upcase)
|
19
|
+
Rails.logger.info("ActionController::UnknownHttpMethod: #{env.inspect}")
|
20
|
+
[405,
|
21
|
+
{"Content-Type" => "application/json; charset=utf-8"},
|
22
|
+
[JSON.generate({errors: ["Method not allowed"]})]
|
23
|
+
]
|
24
|
+
else
|
25
|
+
@status, @headers, @response = @app.call(env)
|
26
|
+
[@status, @headers, @response]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/repia/version.rb
CHANGED
data/lib/repia.rb
CHANGED
data/test/dummy/config/routes.rb
CHANGED
@@ -1,10 +1,2 @@
|
|
1
|
-
[1m[
|
2
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
2
|
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
-
Migrating to CreateUniqueModels (20160423030023)
|
6
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "unique_models" ("uuid" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
8
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160423030023"]]
|
9
|
-
[1m[35m (0.8ms)[0m commit transaction
|
10
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -1,69 +1,453 @@
|
|
1
|
-
[1m[
|
2
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
3
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
-
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6
|
-
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160423030023')
|
7
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8
2
|
[1m[35m (0.1ms)[0m begin transaction
|
3
|
+
------------------------------------------------------
|
4
|
+
DummiesControllerTest: test_options_request_is_handled
|
5
|
+
------------------------------------------------------
|
6
|
+
Processing by DummiesController#options as HTML
|
7
|
+
Rendered text template (0.0ms)
|
8
|
+
Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
|
9
|
+
Processing by DummiesController#options as HTML
|
10
|
+
Rendered text template (0.0ms)
|
11
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
12
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13
|
+
[1m[35m (0.0ms)[0m begin transaction
|
14
|
+
--------------------------------------------------
|
15
|
+
DummiesControllerTest: test_render_multiple_errors
|
16
|
+
--------------------------------------------------
|
17
|
+
Processing by DummiesController#index as HTML
|
18
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
19
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
20
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21
|
+
-------------------------------------------------
|
22
|
+
DummiesControllerTest: test_handle_standard_error
|
23
|
+
-------------------------------------------------
|
24
|
+
Processing by DummiesController#create as HTML
|
25
|
+
String can't be coerced into Fixnum
|
26
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
27
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
28
|
+
[1m[35m (0.0ms)[0m begin transaction
|
29
|
+
---------------------------------------------------------------
|
30
|
+
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
31
|
+
---------------------------------------------------------------
|
32
|
+
Processing by DummiesController#show as HTML
|
33
|
+
Parameters: {"id"=>"400"}
|
34
|
+
400 - Repia::Errors::BadRequest
|
35
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
36
|
+
Processing by DummiesController#show as HTML
|
37
|
+
Parameters: {"id"=>"401"}
|
38
|
+
401 - Repia::Errors::Unauthorized
|
39
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
40
|
+
Processing by DummiesController#show as HTML
|
41
|
+
Parameters: {"id"=>"404"}
|
42
|
+
404 - Repia::Errors::NotFound
|
43
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
44
|
+
Processing by DummiesController#show as HTML
|
45
|
+
Parameters: {"id"=>"409"}
|
46
|
+
409 - Repia::Errors::Conflict
|
47
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
48
|
+
Processing by DummiesController#show as HTML
|
49
|
+
Parameters: {"id"=>"500"}
|
50
|
+
500 - Repia::Errors::InternalServerError
|
51
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
52
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
53
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9
54
|
------------------------------------------------------------
|
10
55
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
11
56
|
------------------------------------------------------------
|
57
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
58
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 00:50:50.676017"], ["updated_at", "2016-04-27 00:50:50.676017"], ["uuid", "16700686-0c12-11e6-aeed-6c4008a6fa2a"]]
|
59
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
60
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
61
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63
|
+
-------------------------------------------------
|
64
|
+
DummiesControllerTest: test_handle_standard_error
|
65
|
+
-------------------------------------------------
|
66
|
+
Processing by DummiesController#create as HTML
|
67
|
+
String can't be coerced into Fixnum
|
68
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
12
69
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13
70
|
[1m[35m (0.0ms)[0m begin transaction
|
14
|
-
|
15
|
-
|
16
|
-
|
71
|
+
------------------------------------------------------
|
72
|
+
DummiesControllerTest: test_options_request_is_handled
|
73
|
+
------------------------------------------------------
|
74
|
+
Processing by DummiesController#options as HTML
|
75
|
+
Rendered text template (0.0ms)
|
76
|
+
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
77
|
+
Processing by DummiesController#options as HTML
|
78
|
+
Rendered text template (0.0ms)
|
79
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
80
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81
|
+
[1m[35m (0.0ms)[0m begin transaction
|
82
|
+
---------------------------------------------------------------
|
83
|
+
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
84
|
+
---------------------------------------------------------------
|
85
|
+
Processing by DummiesController#show as HTML
|
86
|
+
Parameters: {"id"=>"400"}
|
87
|
+
400 - Repia::Errors::BadRequest
|
88
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
89
|
+
Processing by DummiesController#show as HTML
|
90
|
+
Parameters: {"id"=>"401"}
|
91
|
+
401 - Repia::Errors::Unauthorized
|
92
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
93
|
+
Processing by DummiesController#show as HTML
|
94
|
+
Parameters: {"id"=>"404"}
|
95
|
+
404 - Repia::Errors::NotFound
|
96
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
97
|
+
Processing by DummiesController#show as HTML
|
98
|
+
Parameters: {"id"=>"409"}
|
99
|
+
409 - Repia::Errors::Conflict
|
100
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
101
|
+
Processing by DummiesController#show as HTML
|
102
|
+
Parameters: {"id"=>"500"}
|
103
|
+
500 - Repia::Errors::InternalServerError
|
104
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
105
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
106
|
+
[1m[35m (0.0ms)[0m begin transaction
|
107
|
+
------------------------------------------------
|
108
|
+
DummiesControllerTest: test_handle_routing_error
|
109
|
+
------------------------------------------------
|
110
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
111
|
+
[1m[35m (0.0ms)[0m begin transaction
|
112
|
+
--------------------------------------------------
|
113
|
+
DummiesControllerTest: test_render_multiple_errors
|
114
|
+
--------------------------------------------------
|
115
|
+
Processing by DummiesController#index as HTML
|
116
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
17
117
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
118
|
+
[1m[35m (0.0ms)[0m begin transaction
|
119
|
+
------------------------------------------------------------
|
120
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
121
|
+
------------------------------------------------------------
|
122
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
123
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 00:51:29.976773"], ["updated_at", "2016-04-27 00:51:29.976773"], ["uuid", "2ddcd376-0c12-11e6-b668-6c4008a6fa2a"]]
|
124
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
125
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
18
126
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
127
|
[1m[35m (0.1ms)[0m begin transaction
|
128
|
+
------------------------------------------------
|
129
|
+
DummiesControllerTest: test_handle_routing_error
|
130
|
+
------------------------------------------------
|
131
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
132
|
+
[1m[35m (0.0ms)[0m begin transaction
|
133
|
+
---------------------------------------------------------------
|
134
|
+
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
135
|
+
---------------------------------------------------------------
|
136
|
+
Processing by DummiesController#show as HTML
|
137
|
+
Parameters: {"id"=>"400"}
|
138
|
+
400 - Repia::Errors::BadRequest
|
139
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
140
|
+
Processing by DummiesController#show as HTML
|
141
|
+
Parameters: {"id"=>"401"}
|
142
|
+
401 - Repia::Errors::Unauthorized
|
143
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
144
|
+
Processing by DummiesController#show as HTML
|
145
|
+
Parameters: {"id"=>"404"}
|
146
|
+
404 - Repia::Errors::NotFound
|
147
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
148
|
+
Processing by DummiesController#show as HTML
|
149
|
+
Parameters: {"id"=>"409"}
|
150
|
+
409 - Repia::Errors::Conflict
|
151
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
152
|
+
Processing by DummiesController#show as HTML
|
153
|
+
Parameters: {"id"=>"500"}
|
154
|
+
500 - Repia::Errors::InternalServerError
|
155
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
156
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
157
|
+
[1m[35m (0.0ms)[0m begin transaction
|
158
|
+
------------------------------------------------------
|
159
|
+
DummiesControllerTest: test_options_request_is_handled
|
160
|
+
------------------------------------------------------
|
161
|
+
Processing by DummiesController#options as HTML
|
162
|
+
Rendered text template (0.0ms)
|
163
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
164
|
+
Processing by DummiesController#options as HTML
|
165
|
+
Rendered text template (0.0ms)
|
166
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
167
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
168
|
+
[1m[35m (0.0ms)[0m begin transaction
|
169
|
+
--------------------------------------------------
|
170
|
+
DummiesControllerTest: test_render_multiple_errors
|
171
|
+
--------------------------------------------------
|
172
|
+
Processing by DummiesController#index as HTML
|
173
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
174
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
175
|
+
[1m[35m (0.0ms)[0m begin transaction
|
176
|
+
-------------------------------------------------
|
177
|
+
DummiesControllerTest: test_handle_standard_error
|
178
|
+
-------------------------------------------------
|
179
|
+
Processing by DummiesController#create as HTML
|
180
|
+
String can't be coerced into Fixnum
|
181
|
+
Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
182
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
183
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20
184
|
------------------------------------------------------------
|
21
185
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
22
186
|
------------------------------------------------------------
|
23
|
-
[1m[36m (0.
|
24
|
-
[1m[
|
25
|
-
|
26
|
-
|
27
|
-
---------------------
|
28
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
187
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
188
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 00:55:05.685091"], ["updated_at", "2016-04-27 00:55:05.685091"], ["uuid", "ae6f4ed8-0c12-11e6-9f25-6c4008a6fa2a"]]
|
189
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
190
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
29
191
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30
192
|
[1m[35m (0.1ms)[0m begin transaction
|
31
193
|
------------------------------------------------------------
|
32
194
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
33
195
|
------------------------------------------------------------
|
34
|
-
[1m[36m (0.
|
35
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-
|
36
|
-
[1m[36m (0.
|
37
|
-
[1m[35m (1.
|
196
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
197
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 00:55:49.246418"], ["updated_at", "2016-04-27 00:55:49.246418"], ["uuid", "c8663d06-0c12-11e6-b9c9-6c4008a6fa2a"]]
|
198
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
199
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
38
200
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
39
|
-
|
40
|
-
|
41
|
-
|
201
|
+
---------------------------------------------------------------
|
202
|
+
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
203
|
+
---------------------------------------------------------------
|
204
|
+
Processing by DummiesController#show as HTML
|
205
|
+
Parameters: {"id"=>"400"}
|
206
|
+
400 - Repia::Errors::BadRequest
|
207
|
+
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
208
|
+
Processing by DummiesController#show as HTML
|
209
|
+
Parameters: {"id"=>"401"}
|
210
|
+
401 - Repia::Errors::Unauthorized
|
211
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
212
|
+
Processing by DummiesController#show as HTML
|
213
|
+
Parameters: {"id"=>"404"}
|
214
|
+
404 - Repia::Errors::NotFound
|
215
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
216
|
+
Processing by DummiesController#show as HTML
|
217
|
+
Parameters: {"id"=>"409"}
|
218
|
+
409 - Repia::Errors::Conflict
|
219
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
220
|
+
Processing by DummiesController#show as HTML
|
221
|
+
Parameters: {"id"=>"500"}
|
222
|
+
500 - Repia::Errors::InternalServerError
|
223
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
225
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
226
|
+
-------------------------------------------------
|
227
|
+
DummiesControllerTest: test_handle_standard_error
|
228
|
+
-------------------------------------------------
|
229
|
+
Processing by DummiesController#create as HTML
|
230
|
+
String can't be coerced into Fixnum
|
231
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
232
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
233
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
234
|
+
--------------------------------------------------
|
235
|
+
DummiesControllerTest: test_render_multiple_errors
|
236
|
+
--------------------------------------------------
|
237
|
+
Processing by DummiesController#index as HTML
|
238
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
239
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
240
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
241
|
+
------------------------------------------------------
|
242
|
+
DummiesControllerTest: test_options_request_is_handled
|
243
|
+
------------------------------------------------------
|
244
|
+
Processing by DummiesController#options as HTML
|
245
|
+
Rendered text template (0.0ms)
|
246
|
+
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
247
|
+
Processing by DummiesController#options as HTML
|
248
|
+
Rendered text template (0.0ms)
|
249
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
42
250
|
[1m[35m (0.1ms)[0m rollback transaction
|
251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252
|
+
------------------------------------------------
|
253
|
+
DummiesControllerTest: test_handle_routing_error
|
254
|
+
------------------------------------------------
|
255
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
43
256
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
257
|
[1m[35m (0.1ms)[0m begin transaction
|
45
258
|
------------------------------------------------------------
|
46
259
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
47
260
|
------------------------------------------------------------
|
48
261
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
49
|
-
[1m[35mSQL (0.
|
262
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 00:58:29.077685"], ["updated_at", "2016-04-27 00:58:29.077685"], ["uuid", "27aa8e5c-0c13-11e6-a1c0-6c4008a6fa2a"]]
|
50
263
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51
|
-
[1m[35m (
|
264
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
265
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
266
|
+
---------------------------------------------------------------
|
267
|
+
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
268
|
+
---------------------------------------------------------------
|
269
|
+
Processing by DummiesController#show as HTML
|
270
|
+
Parameters: {"id"=>"400"}
|
271
|
+
400 - Repia::Errors::BadRequest
|
272
|
+
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
273
|
+
Processing by DummiesController#show as HTML
|
274
|
+
Parameters: {"id"=>"401"}
|
275
|
+
401 - Repia::Errors::Unauthorized
|
276
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
277
|
+
Processing by DummiesController#show as HTML
|
278
|
+
Parameters: {"id"=>"404"}
|
279
|
+
404 - Repia::Errors::NotFound
|
280
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
281
|
+
Processing by DummiesController#show as HTML
|
282
|
+
Parameters: {"id"=>"409"}
|
283
|
+
409 - Repia::Errors::Conflict
|
284
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
285
|
+
Processing by DummiesController#show as HTML
|
286
|
+
Parameters: {"id"=>"500"}
|
287
|
+
500 - Repia::Errors::InternalServerError
|
288
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
289
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
290
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
291
|
+
------------------------------------------------
|
292
|
+
DummiesControllerTest: test_handle_routing_error
|
293
|
+
------------------------------------------------
|
294
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
296
|
+
------------------------------------------------------
|
297
|
+
DummiesControllerTest: test_options_request_is_handled
|
298
|
+
------------------------------------------------------
|
299
|
+
Processing by DummiesController#options as HTML
|
300
|
+
Rendered text template (0.0ms)
|
301
|
+
Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
|
302
|
+
Processing by DummiesController#options as HTML
|
303
|
+
Rendered text template (0.0ms)
|
304
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
305
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
306
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
307
|
+
-------------------------------------------------
|
308
|
+
DummiesControllerTest: test_handle_standard_error
|
309
|
+
-------------------------------------------------
|
310
|
+
Processing by DummiesController#create as HTML
|
311
|
+
String can't be coerced into Fixnum
|
312
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
313
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
315
|
+
--------------------------------------------------
|
316
|
+
DummiesControllerTest: test_render_multiple_errors
|
317
|
+
--------------------------------------------------
|
318
|
+
Processing by DummiesController#index as HTML
|
319
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
320
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
52
321
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
53
322
|
[1m[35m (0.1ms)[0m begin transaction
|
54
|
-
|
55
|
-
|
56
|
-
|
323
|
+
-------------------------------------------------
|
324
|
+
DummiesControllerTest: test_handle_standard_error
|
325
|
+
-------------------------------------------------
|
326
|
+
Processing by DummiesController#create as HTML
|
327
|
+
String can't be coerced into Fixnum
|
328
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
329
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
331
|
+
------------------------------------------------
|
332
|
+
DummiesControllerTest: test_handle_routing_error
|
333
|
+
------------------------------------------------
|
334
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
335
|
+
[1m[35m (0.0ms)[0m begin transaction
|
336
|
+
------------------------------------------------------
|
337
|
+
DummiesControllerTest: test_options_request_is_handled
|
338
|
+
------------------------------------------------------
|
339
|
+
Processing by DummiesController#options as HTML
|
340
|
+
Rendered text template (0.0ms)
|
341
|
+
Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
342
|
+
Processing by DummiesController#options as HTML
|
343
|
+
Rendered text template (0.0ms)
|
344
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
345
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
346
|
+
[1m[35m (0.0ms)[0m begin transaction
|
347
|
+
---------------------------------------------------------------
|
348
|
+
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
349
|
+
---------------------------------------------------------------
|
350
|
+
Processing by DummiesController#show as HTML
|
351
|
+
Parameters: {"id"=>"400"}
|
352
|
+
400 - Repia::Errors::BadRequest
|
353
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
354
|
+
Processing by DummiesController#show as HTML
|
355
|
+
Parameters: {"id"=>"401"}
|
356
|
+
401 - Repia::Errors::Unauthorized
|
357
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
358
|
+
Processing by DummiesController#show as HTML
|
359
|
+
Parameters: {"id"=>"404"}
|
360
|
+
404 - Repia::Errors::NotFound
|
361
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
362
|
+
Processing by DummiesController#show as HTML
|
363
|
+
Parameters: {"id"=>"409"}
|
364
|
+
409 - Repia::Errors::Conflict
|
365
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
366
|
+
Processing by DummiesController#show as HTML
|
367
|
+
Parameters: {"id"=>"500"}
|
368
|
+
500 - Repia::Errors::InternalServerError
|
369
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
370
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
371
|
+
[1m[35m (0.0ms)[0m begin transaction
|
372
|
+
--------------------------------------------------
|
373
|
+
DummiesControllerTest: test_render_multiple_errors
|
374
|
+
--------------------------------------------------
|
375
|
+
Processing by DummiesController#index as HTML
|
376
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
57
377
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
58
378
|
[1m[35m (0.0ms)[0m begin transaction
|
59
379
|
------------------------------------------------------------
|
60
380
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
61
381
|
------------------------------------------------------------
|
62
382
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-
|
64
|
-
[1m[36m (0.
|
383
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 01:03:52.448139"], ["updated_at", "2016-04-27 01:03:52.448139"], ["uuid", "e868f638-0c13-11e6-873a-6c4008a6fa2a"]]
|
384
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65
385
|
[1m[35m (0.9ms)[0m rollback transaction
|
66
386
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
387
|
+
[1m[35m (0.1ms)[0m begin transaction
|
388
|
+
------------------------------------------------------------
|
389
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
390
|
+
------------------------------------------------------------
|
391
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
392
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 01:08:28.079585"], ["updated_at", "2016-04-27 01:08:28.079585"], ["uuid", "8cb2fbda-0c14-11e6-b1c2-6c4008a6fa2a"]]
|
393
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
394
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
395
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
396
|
+
-------------------------------------------------
|
397
|
+
DummiesControllerTest: test_handle_standard_error
|
398
|
+
-------------------------------------------------
|
399
|
+
Processing by DummiesController#create as HTML
|
400
|
+
String can't be coerced into Fixnum
|
401
|
+
Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
402
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
403
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
404
|
+
---------------------------------------------------------------
|
405
|
+
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
406
|
+
---------------------------------------------------------------
|
407
|
+
Processing by DummiesController#show as HTML
|
408
|
+
Parameters: {"id"=>"400"}
|
409
|
+
400 - Repia::Errors::BadRequest
|
410
|
+
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
411
|
+
Processing by DummiesController#show as HTML
|
412
|
+
Parameters: {"id"=>"401"}
|
413
|
+
401 - Repia::Errors::Unauthorized
|
414
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
415
|
+
Processing by DummiesController#show as HTML
|
416
|
+
Parameters: {"id"=>"404"}
|
417
|
+
404 - Repia::Errors::NotFound
|
418
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
419
|
+
Processing by DummiesController#show as HTML
|
420
|
+
Parameters: {"id"=>"409"}
|
421
|
+
409 - Repia::Errors::Conflict
|
422
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
423
|
+
Processing by DummiesController#show as HTML
|
424
|
+
Parameters: {"id"=>"500"}
|
425
|
+
500 - Repia::Errors::InternalServerError
|
426
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
427
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
428
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
429
|
+
------------------------------------------------
|
430
|
+
DummiesControllerTest: test_handle_routing_error
|
431
|
+
------------------------------------------------
|
432
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
433
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
434
|
+
------------------------------------------------------
|
435
|
+
DummiesControllerTest: test_options_request_is_handled
|
436
|
+
------------------------------------------------------
|
437
|
+
Processing by DummiesController#options as HTML
|
438
|
+
Rendered text template (0.0ms)
|
439
|
+
Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
440
|
+
Processing by DummiesController#options as HTML
|
441
|
+
Rendered text template (0.0ms)
|
442
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
443
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
444
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
445
|
+
--------------------------------------------------
|
446
|
+
DummiesControllerTest: test_render_multiple_errors
|
447
|
+
--------------------------------------------------
|
448
|
+
Processing by DummiesController#index as HTML
|
449
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
450
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
67
451
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
68
452
|
[1m[35m (0.1ms)[0m begin transaction
|
69
453
|
---------------------------------------------------------------
|
@@ -71,34 +455,101 @@ DummiesControllerTest: test_Predefined_errors_should_be_handled
|
|
71
455
|
---------------------------------------------------------------
|
72
456
|
Processing by DummiesController#show as HTML
|
73
457
|
Parameters: {"id"=>"400"}
|
458
|
+
400 - Repia::Errors::BadRequest
|
459
|
+
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
460
|
+
Processing by DummiesController#show as HTML
|
461
|
+
Parameters: {"id"=>"401"}
|
462
|
+
401 - Repia::Errors::Unauthorized
|
463
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
464
|
+
Processing by DummiesController#show as HTML
|
465
|
+
Parameters: {"id"=>"404"}
|
466
|
+
404 - Repia::Errors::NotFound
|
467
|
+
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
468
|
+
Processing by DummiesController#show as HTML
|
469
|
+
Parameters: {"id"=>"409"}
|
470
|
+
409 - Repia::Errors::Conflict
|
471
|
+
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
472
|
+
Processing by DummiesController#show as HTML
|
473
|
+
Parameters: {"id"=>"500"}
|
74
474
|
500 - Repia::Errors::InternalServerError
|
75
|
-
Completed 500 Internal Server Error in
|
475
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
476
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
478
|
+
------------------------------------------------
|
479
|
+
DummiesControllerTest: test_handle_routing_error
|
480
|
+
------------------------------------------------
|
481
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
482
|
+
[1m[35m (0.0ms)[0m begin transaction
|
483
|
+
--------------------------------------------------
|
484
|
+
DummiesControllerTest: test_render_multiple_errors
|
485
|
+
--------------------------------------------------
|
486
|
+
Processing by DummiesController#index as HTML
|
487
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
488
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
489
|
+
[1m[35m (0.0ms)[0m begin transaction
|
490
|
+
-------------------------------------------------
|
491
|
+
DummiesControllerTest: test_handle_standard_error
|
492
|
+
-------------------------------------------------
|
493
|
+
Processing by DummiesController#create as HTML
|
494
|
+
String can't be coerced into Fixnum
|
495
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
496
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
497
|
+
[1m[35m (0.0ms)[0m begin transaction
|
498
|
+
------------------------------------------------------
|
499
|
+
DummiesControllerTest: test_options_request_is_handled
|
500
|
+
------------------------------------------------------
|
501
|
+
Processing by DummiesController#options as HTML
|
502
|
+
Rendered text template (0.0ms)
|
503
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
504
|
+
Processing by DummiesController#options as HTML
|
505
|
+
Rendered text template (0.0ms)
|
506
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
76
507
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
77
508
|
[1m[35m (0.0ms)[0m begin transaction
|
78
509
|
------------------------------------------------------------
|
79
510
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
80
511
|
------------------------------------------------------------
|
81
|
-
[1m[36m (0.
|
82
|
-
[1m[35mSQL (0.
|
83
|
-
[1m[36m (0.
|
84
|
-
[1m[35m (1.
|
512
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
513
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 01:10:05.927864"], ["updated_at", "2016-04-27 01:10:05.927864"], ["uuid", "c70575ec-0c14-11e6-9f4f-6c4008a6fa2a"]]
|
514
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
515
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
85
516
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
86
517
|
[1m[35m (0.1ms)[0m begin transaction
|
87
518
|
------------------------------------------------------------
|
88
519
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
89
520
|
------------------------------------------------------------
|
90
521
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
91
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-
|
92
|
-
[1m[36m (0.
|
93
|
-
[1m[35m (1.
|
522
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 01:10:15.805432"], ["updated_at", "2016-04-27 01:10:15.805432"], ["uuid", "cce8a60a-0c14-11e6-a738-6c4008a6fa2a"]]
|
523
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
524
|
+
[1m[35m (1.7ms)[0m rollback transaction
|
94
525
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
526
|
+
-------------------------------------------------
|
527
|
+
DummiesControllerTest: test_handle_standard_error
|
528
|
+
-------------------------------------------------
|
529
|
+
Processing by DummiesController#create as HTML
|
530
|
+
String can't be coerced into Fixnum
|
531
|
+
Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
532
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
533
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
534
|
+
------------------------------------------------
|
535
|
+
DummiesControllerTest: test_handle_routing_error
|
536
|
+
------------------------------------------------
|
537
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
538
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
539
|
+
--------------------------------------------------
|
540
|
+
DummiesControllerTest: test_render_multiple_errors
|
541
|
+
--------------------------------------------------
|
542
|
+
Processing by DummiesController#index as HTML
|
543
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
544
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
545
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
95
546
|
---------------------------------------------------------------
|
96
547
|
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
97
548
|
---------------------------------------------------------------
|
98
549
|
Processing by DummiesController#show as HTML
|
99
550
|
Parameters: {"id"=>"400"}
|
100
551
|
400 - Repia::Errors::BadRequest
|
101
|
-
Completed 400 Bad Request in
|
552
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
102
553
|
Processing by DummiesController#show as HTML
|
103
554
|
Parameters: {"id"=>"401"}
|
104
555
|
401 - Repia::Errors::Unauthorized
|
@@ -115,9 +566,28 @@ Processing by DummiesController#show as HTML
|
|
115
566
|
Parameters: {"id"=>"500"}
|
116
567
|
500 - Repia::Errors::InternalServerError
|
117
568
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
118
|
-
[1m[35m (0.
|
119
|
-
[1m[
|
569
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
570
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
571
|
+
------------------------------------------------------
|
572
|
+
DummiesControllerTest: test_options_request_is_handled
|
573
|
+
------------------------------------------------------
|
574
|
+
Processing by DummiesController#options as HTML
|
575
|
+
Rendered text template (0.0ms)
|
576
|
+
Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
577
|
+
Processing by DummiesController#options as HTML
|
578
|
+
Rendered text template (0.0ms)
|
579
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
580
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
581
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
120
582
|
[1m[35m (0.1ms)[0m begin transaction
|
583
|
+
------------------------------------------------------------
|
584
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
585
|
+
------------------------------------------------------------
|
586
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
587
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 03:28:57.536795"], ["updated_at", "2016-04-27 03:28:57.536795"], ["uuid", "2d0c150e-0c28-11e6-a34e-6c4008a6fa2a"]]
|
588
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
589
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
590
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
121
591
|
---------------------------------------------------------------
|
122
592
|
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
123
593
|
---------------------------------------------------------------
|
@@ -141,24 +611,34 @@ Processing by DummiesController#show as HTML
|
|
141
611
|
Parameters: {"id"=>"500"}
|
142
612
|
500 - Repia::Errors::InternalServerError
|
143
613
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
144
|
-
[1m[
|
145
|
-
[1m[
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
[1m[35m (0.
|
153
|
-
[1m[
|
154
|
-
[1m[35m (0.1ms)[0m begin transaction
|
614
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
615
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
616
|
+
-------------------------------------------------
|
617
|
+
DummiesControllerTest: test_handle_standard_error
|
618
|
+
-------------------------------------------------
|
619
|
+
Processing by DummiesController#create as HTML
|
620
|
+
String can't be coerced into Fixnum
|
621
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
622
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
155
624
|
------------------------------------------------------
|
156
625
|
DummiesControllerTest: test_options_request_is_handled
|
157
626
|
------------------------------------------------------
|
158
627
|
Processing by DummiesController#options as HTML
|
159
628
|
Rendered text template (0.0ms)
|
160
|
-
Completed 200 OK in
|
161
|
-
|
629
|
+
Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
|
630
|
+
Processing by DummiesController#options as HTML
|
631
|
+
Rendered text template (0.0ms)
|
632
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
633
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
634
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
635
|
+
--------------------------------------------------
|
636
|
+
DummiesControllerTest: test_render_multiple_errors
|
637
|
+
--------------------------------------------------
|
638
|
+
Processing by DummiesController#index as HTML
|
639
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
640
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
641
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
162
642
|
[1m[35m (0.1ms)[0m begin transaction
|
163
643
|
---------------------------------------------------------------
|
164
644
|
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
@@ -166,7 +646,7 @@ DummiesControllerTest: test_Predefined_errors_should_be_handled
|
|
166
646
|
Processing by DummiesController#show as HTML
|
167
647
|
Parameters: {"id"=>"400"}
|
168
648
|
400 - Repia::Errors::BadRequest
|
169
|
-
Completed 400 Bad Request in
|
649
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
170
650
|
Processing by DummiesController#show as HTML
|
171
651
|
Parameters: {"id"=>"401"}
|
172
652
|
401 - Repia::Errors::Unauthorized
|
@@ -185,33 +665,87 @@ Processing by DummiesController#show as HTML
|
|
185
665
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
186
666
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
187
667
|
[1m[35m (0.0ms)[0m begin transaction
|
668
|
+
--------------------------------------------------
|
669
|
+
DummiesControllerTest: test_render_multiple_errors
|
670
|
+
--------------------------------------------------
|
671
|
+
Processing by DummiesController#index as HTML
|
672
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
673
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
674
|
+
[1m[35m (0.0ms)[0m begin transaction
|
675
|
+
------------------------------------------------------
|
676
|
+
DummiesControllerTest: test_options_request_is_handled
|
677
|
+
------------------------------------------------------
|
678
|
+
Processing by DummiesController#options as HTML
|
679
|
+
Rendered text template (0.0ms)
|
680
|
+
Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
681
|
+
Processing by DummiesController#options as HTML
|
682
|
+
Rendered text template (0.0ms)
|
683
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
684
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
685
|
+
[1m[35m (0.0ms)[0m begin transaction
|
686
|
+
-------------------------------------------------
|
687
|
+
DummiesControllerTest: test_handle_standard_error
|
688
|
+
-------------------------------------------------
|
689
|
+
Processing by DummiesController#create as HTML
|
690
|
+
String can't be coerced into Fixnum
|
691
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
692
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
693
|
+
[1m[35m (0.0ms)[0m begin transaction
|
188
694
|
------------------------------------------------------------
|
189
695
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
190
696
|
------------------------------------------------------------
|
191
|
-
[1m[36m (0.
|
192
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-
|
697
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
698
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 03:29:03.119996"], ["updated_at", "2016-04-27 03:29:03.119996"], ["uuid", "3060017a-0c28-11e6-9db0-6c4008a6fa2a"]]
|
193
699
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
194
|
-
[1m[35m (1.
|
700
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
195
701
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
196
702
|
[1m[35m (0.1ms)[0m begin transaction
|
703
|
+
------------------------------------------------------------
|
704
|
+
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
705
|
+
------------------------------------------------------------
|
706
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
707
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-27 03:29:16.233653"], ["updated_at", "2016-04-27 03:29:16.233653"], ["uuid", "3830ffb2-0c28-11e6-a0e4-6c4008a6fa2a"]]
|
708
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
709
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
710
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
711
|
+
--------------------------------------------------
|
712
|
+
DummiesControllerTest: test_render_multiple_errors
|
713
|
+
--------------------------------------------------
|
714
|
+
Processing by DummiesController#index as HTML
|
715
|
+
Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
716
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
717
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
718
|
+
-------------------------------------------------
|
719
|
+
DummiesControllerTest: test_handle_standard_error
|
720
|
+
-------------------------------------------------
|
721
|
+
Processing by DummiesController#create as HTML
|
722
|
+
String can't be coerced into Fixnum
|
723
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
724
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
725
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
726
|
+
------------------------------------------------
|
727
|
+
DummiesControllerTest: test_handle_routing_error
|
728
|
+
------------------------------------------------
|
729
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
730
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
197
731
|
------------------------------------------------------
|
198
732
|
DummiesControllerTest: test_options_request_is_handled
|
199
733
|
------------------------------------------------------
|
200
734
|
Processing by DummiesController#options as HTML
|
201
735
|
Rendered text template (0.0ms)
|
202
|
-
Completed 200 OK in 5ms (Views: 4.
|
736
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
203
737
|
Processing by DummiesController#options as HTML
|
204
738
|
Rendered text template (0.0ms)
|
205
739
|
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
206
|
-
[1m[
|
207
|
-
[1m[
|
740
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
741
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208
742
|
---------------------------------------------------------------
|
209
743
|
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
210
744
|
---------------------------------------------------------------
|
211
745
|
Processing by DummiesController#show as HTML
|
212
746
|
Parameters: {"id"=>"400"}
|
213
747
|
400 - Repia::Errors::BadRequest
|
214
|
-
Completed 400 Bad Request in 0ms (Views: 0.
|
748
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
215
749
|
Processing by DummiesController#show as HTML
|
216
750
|
Parameters: {"id"=>"401"}
|
217
751
|
401 - Repia::Errors::Unauthorized
|
@@ -228,35 +762,34 @@ Processing by DummiesController#show as HTML
|
|
228
762
|
Parameters: {"id"=>"500"}
|
229
763
|
500 - Repia::Errors::InternalServerError
|
230
764
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
765
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
766
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
767
|
+
[1m[35m (0.1ms)[0m begin transaction
|
768
|
+
--------------------------------------------------
|
769
|
+
DummiesControllerTest: test_render_multiple_errors
|
770
|
+
--------------------------------------------------
|
771
|
+
Processing by DummiesController#index as HTML
|
772
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
231
773
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
232
774
|
[1m[35m (0.0ms)[0m begin transaction
|
233
|
-
------------------------------------------------------------
|
234
|
-
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
235
|
-
------------------------------------------------------------
|
236
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:23:36.007863"], ["updated_at", "2016-04-23 03:23:36.007863"], ["uuid", "c3bfa8c2-0902-11e6-8ddf-6c4008a6fa2a"]]
|
238
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239
|
-
[1m[35m (1.0ms)[0m rollback transaction
|
240
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
241
|
-
[1m[35m (0.1ms)[0m begin transaction
|
242
775
|
------------------------------------------------------
|
243
776
|
DummiesControllerTest: test_options_request_is_handled
|
244
777
|
------------------------------------------------------
|
245
778
|
Processing by DummiesController#options as HTML
|
246
779
|
Rendered text template (0.0ms)
|
247
|
-
Completed 200 OK in
|
780
|
+
Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
248
781
|
Processing by DummiesController#options as HTML
|
249
782
|
Rendered text template (0.0ms)
|
250
|
-
Completed 200 OK in 0ms (Views: 0.
|
783
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
251
784
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
252
|
-
[1m[35m (0.
|
785
|
+
[1m[35m (0.0ms)[0m begin transaction
|
253
786
|
---------------------------------------------------------------
|
254
787
|
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
255
788
|
---------------------------------------------------------------
|
256
789
|
Processing by DummiesController#show as HTML
|
257
790
|
Parameters: {"id"=>"400"}
|
258
791
|
400 - Repia::Errors::BadRequest
|
259
|
-
Completed 400 Bad Request in 0ms (Views: 0.
|
792
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
260
793
|
Processing by DummiesController#show as HTML
|
261
794
|
Parameters: {"id"=>"401"}
|
262
795
|
401 - Repia::Errors::Unauthorized
|
@@ -273,15 +806,28 @@ Processing by DummiesController#show as HTML
|
|
273
806
|
Parameters: {"id"=>"500"}
|
274
807
|
500 - Repia::Errors::InternalServerError
|
275
808
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
276
|
-
[1m[36m (0.
|
809
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
810
|
+
[1m[35m (0.0ms)[0m begin transaction
|
811
|
+
------------------------------------------------
|
812
|
+
DummiesControllerTest: test_handle_routing_error
|
813
|
+
------------------------------------------------
|
814
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
815
|
+
[1m[35m (0.0ms)[0m begin transaction
|
816
|
+
-------------------------------------------------
|
817
|
+
DummiesControllerTest: test_handle_standard_error
|
818
|
+
-------------------------------------------------
|
819
|
+
Processing by DummiesController#create as HTML
|
820
|
+
String can't be coerced into Fixnum
|
821
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
822
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
277
823
|
[1m[35m (0.0ms)[0m begin transaction
|
278
824
|
------------------------------------------------------------
|
279
825
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
280
826
|
------------------------------------------------------------
|
281
827
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
282
|
-
[1m[35mSQL (0.
|
828
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-29 02:31:57.648010"], ["updated_at", "2016-04-29 02:31:57.648010"], ["uuid", "8b75f962-0db2-11e6-8639-6c4008a6fa2a"]]
|
283
829
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
284
|
-
[1m[35m (
|
830
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
285
831
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
286
832
|
[1m[35m (0.1ms)[0m begin transaction
|
287
833
|
---------------------------------------------------------------
|
@@ -290,7 +836,7 @@ DummiesControllerTest: test_Predefined_errors_should_be_handled
|
|
290
836
|
Processing by DummiesController#show as HTML
|
291
837
|
Parameters: {"id"=>"400"}
|
292
838
|
400 - Repia::Errors::BadRequest
|
293
|
-
Completed 400 Bad Request in
|
839
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
294
840
|
Processing by DummiesController#show as HTML
|
295
841
|
Parameters: {"id"=>"401"}
|
296
842
|
401 - Repia::Errors::Unauthorized
|
@@ -314,24 +860,37 @@ DummiesControllerTest: test_options_request_is_handled
|
|
314
860
|
------------------------------------------------------
|
315
861
|
Processing by DummiesController#options as HTML
|
316
862
|
Rendered text template (0.0ms)
|
317
|
-
Completed 200 OK in 6ms (Views: 5.
|
863
|
+
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
|
318
864
|
Processing by DummiesController#options as HTML
|
319
865
|
Rendered text template (0.0ms)
|
320
|
-
Completed 200 OK in 0ms (Views: 0.
|
866
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
867
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
868
|
+
[1m[35m (0.0ms)[0m begin transaction
|
869
|
+
------------------------------------------------
|
870
|
+
DummiesControllerTest: test_handle_routing_error
|
871
|
+
------------------------------------------------
|
872
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
873
|
+
[1m[35m (0.0ms)[0m begin transaction
|
874
|
+
-------------------------------------------------
|
875
|
+
DummiesControllerTest: test_handle_standard_error
|
876
|
+
-------------------------------------------------
|
877
|
+
Processing by DummiesController#create as HTML
|
878
|
+
String can't be coerced into Fixnum
|
879
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
321
880
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322
881
|
[1m[35m (0.0ms)[0m begin transaction
|
323
882
|
--------------------------------------------------
|
324
883
|
DummiesControllerTest: test_render_multiple_errors
|
325
884
|
--------------------------------------------------
|
326
885
|
Processing by DummiesController#index as HTML
|
327
|
-
Completed 400 Bad Request in 0ms (Views: 0.
|
886
|
+
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
328
887
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329
888
|
[1m[35m (0.0ms)[0m begin transaction
|
330
889
|
------------------------------------------------------------
|
331
890
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
332
891
|
------------------------------------------------------------
|
333
|
-
[1m[36m (0.
|
334
|
-
[1m[35mSQL (
|
892
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
893
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-29 02:33:06.477185"], ["updated_at", "2016-04-29 02:33:06.477185"], ["uuid", "b47c7796-0db2-11e6-bc93-6c4008a6fa2a"]]
|
335
894
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
336
895
|
[1m[35m (1.1ms)[0m rollback transaction
|
337
896
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
@@ -361,41 +920,41 @@ Processing by DummiesController#show as HTML
|
|
361
920
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
362
921
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
363
922
|
[1m[35m (0.0ms)[0m begin transaction
|
923
|
+
-------------------------------------------------
|
924
|
+
DummiesControllerTest: test_handle_standard_error
|
925
|
+
-------------------------------------------------
|
926
|
+
Processing by DummiesController#create as HTML
|
927
|
+
String can't be coerced into Fixnum
|
928
|
+
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
929
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
930
|
+
[1m[35m (0.0ms)[0m begin transaction
|
931
|
+
--------------------------------------------------
|
932
|
+
DummiesControllerTest: test_render_multiple_errors
|
933
|
+
--------------------------------------------------
|
934
|
+
Processing by DummiesController#index as HTML
|
935
|
+
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
936
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
937
|
+
[1m[35m (0.0ms)[0m begin transaction
|
364
938
|
------------------------------------------------------
|
365
939
|
DummiesControllerTest: test_options_request_is_handled
|
366
940
|
------------------------------------------------------
|
367
941
|
Processing by DummiesController#options as HTML
|
368
942
|
Rendered text template (0.0ms)
|
369
|
-
Completed 200 OK in
|
943
|
+
Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
370
944
|
Processing by DummiesController#options as HTML
|
371
945
|
Rendered text template (0.0ms)
|
372
946
|
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
373
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
374
|
-
[1m[35m (0.0ms)[0m begin transaction
|
375
|
-
--------------------------------------------------
|
376
|
-
DummiesControllerTest: test_render_multiple_errors
|
377
|
-
--------------------------------------------------
|
378
|
-
Processing by DummiesController#index as HTML
|
379
|
-
Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
380
947
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
381
948
|
[1m[35m (0.0ms)[0m begin transaction
|
382
949
|
------------------------------------------------------------
|
383
950
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
384
|
-
------------------------------------------------------------
|
385
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
386
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-23 03:25:54.844491"], ["updated_at", "2016-04-23 03:25:54.844491"], ["uuid", "16807c58-0903-11e6-b659-6c4008a6fa2a"]]
|
387
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
388
|
-
[1m[35m (0.8ms)[0m rollback transaction
|
389
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
390
|
-
[1m[35m (0.1ms)[0m begin transaction
|
391
|
-
------------------------------------------------------------
|
392
|
-
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
393
951
|
------------------------------------------------------------
|
394
952
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
395
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-
|
953
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-29 02:33:36.266428"], ["updated_at", "2016-04-29 02:33:36.266428"], ["uuid", "c63df022-0db2-11e6-846e-6c4008a6fa2a"]]
|
396
954
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
397
955
|
[1m[35m (1.2ms)[0m rollback transaction
|
398
|
-
[1m[
|
956
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
957
|
+
[1m[35m (0.1ms)[0m begin transaction
|
399
958
|
---------------------------------------------------------------
|
400
959
|
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
401
960
|
---------------------------------------------------------------
|
@@ -419,90 +978,40 @@ Processing by DummiesController#show as HTML
|
|
419
978
|
Parameters: {"id"=>"500"}
|
420
979
|
500 - Repia::Errors::InternalServerError
|
421
980
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
422
|
-
[1m[
|
423
|
-
[1m[
|
424
|
-
------------------------------------------------------
|
425
|
-
DummiesControllerTest: test_options_request_is_handled
|
426
|
-
------------------------------------------------------
|
427
|
-
Processing by DummiesController#options as HTML
|
428
|
-
Rendered text template (0.0ms)
|
429
|
-
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
430
|
-
Processing by DummiesController#options as HTML
|
431
|
-
Rendered text template (0.0ms)
|
432
|
-
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
433
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
434
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
981
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
982
|
+
[1m[35m (0.0ms)[0m begin transaction
|
435
983
|
--------------------------------------------------
|
436
984
|
DummiesControllerTest: test_render_multiple_errors
|
437
985
|
--------------------------------------------------
|
438
986
|
Processing by DummiesController#index as HTML
|
439
987
|
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
440
|
-
[1m[
|
441
|
-
[1m[
|
988
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
989
|
+
[1m[35m (0.0ms)[0m begin transaction
|
442
990
|
-------------------------------------------------
|
443
991
|
DummiesControllerTest: test_handle_standard_error
|
444
992
|
-------------------------------------------------
|
445
993
|
Processing by DummiesController#create as HTML
|
446
994
|
String can't be coerced into Fixnum
|
447
995
|
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
448
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
449
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
450
|
-
[1m[35m (0.1ms)[0m begin transaction
|
451
|
-
-------------------------------------------------
|
452
|
-
DummiesControllerTest: test_handle_standard_error
|
453
|
-
-------------------------------------------------
|
454
|
-
Processing by DummiesController#create as HTML
|
455
|
-
String can't be coerced into Fixnum
|
456
|
-
Completed 500 Internal Server Error in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
457
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
458
|
-
[1m[35m (0.0ms)[0m begin transaction
|
459
|
-
--------------------------------------------------
|
460
|
-
DummiesControllerTest: test_render_multiple_errors
|
461
|
-
--------------------------------------------------
|
462
|
-
Processing by DummiesController#index as HTML
|
463
|
-
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
464
996
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
465
997
|
[1m[35m (0.0ms)[0m begin transaction
|
466
998
|
------------------------------------------------------
|
467
999
|
DummiesControllerTest: test_options_request_is_handled
|
468
1000
|
------------------------------------------------------
|
469
1001
|
Processing by DummiesController#options as HTML
|
470
|
-
Rendered text template (0.
|
471
|
-
Completed 200 OK in
|
1002
|
+
Rendered text template (0.1ms)
|
1003
|
+
Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
|
472
1004
|
Processing by DummiesController#options as HTML
|
473
1005
|
Rendered text template (0.0ms)
|
474
|
-
Completed 200 OK in 0ms (Views: 0.
|
1006
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
475
1007
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
476
1008
|
[1m[35m (0.0ms)[0m begin transaction
|
477
|
-
---------------------------------------------------------------
|
478
|
-
DummiesControllerTest: test_Predefined_errors_should_be_handled
|
479
|
-
---------------------------------------------------------------
|
480
|
-
Processing by DummiesController#show as HTML
|
481
|
-
Parameters: {"id"=>"400"}
|
482
|
-
400 - Repia::Errors::BadRequest
|
483
|
-
Completed 400 Bad Request in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
484
|
-
Processing by DummiesController#show as HTML
|
485
|
-
Parameters: {"id"=>"401"}
|
486
|
-
401 - Repia::Errors::Unauthorized
|
487
|
-
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
488
|
-
Processing by DummiesController#show as HTML
|
489
|
-
Parameters: {"id"=>"404"}
|
490
|
-
404 - Repia::Errors::NotFound
|
491
|
-
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
492
|
-
Processing by DummiesController#show as HTML
|
493
|
-
Parameters: {"id"=>"409"}
|
494
|
-
409 - Repia::Errors::Conflict
|
495
|
-
Completed 409 Conflict in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
496
|
-
Processing by DummiesController#show as HTML
|
497
|
-
Parameters: {"id"=>"500"}
|
498
|
-
500 - Repia::Errors::InternalServerError
|
499
|
-
Completed 500 Internal Server Error in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
500
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
501
|
-
[1m[35m (0.1ms)[0m begin transaction
|
502
1009
|
------------------------------------------------------------
|
503
1010
|
RepiaTest: test_UniqueModel_gets_assigned_a_UUID_at_creation
|
504
1011
|
------------------------------------------------------------
|
505
1012
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
506
|
-
[1m[35mSQL (0.
|
507
|
-
[1m[36m (0.
|
508
|
-
[1m[35m (0.
|
1013
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "unique_models" ("created_at", "updated_at", "uuid") VALUES (?, ?, ?) [["created_at", "2016-04-29 03:10:26.843611"], ["updated_at", "2016-04-29 03:10:26.843611"], ["uuid", "ebd94412-0db7-11e6-a6c5-6c4008a6fa2a"]]
|
1014
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1015
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1016
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1017
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David An
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -90,6 +90,7 @@ extra_rdoc_files: []
|
|
90
90
|
files:
|
91
91
|
- lib/repia/core.rb
|
92
92
|
- lib/repia/errors.rb
|
93
|
+
- lib/repia/middlewares.rb
|
93
94
|
- lib/repia/version.rb
|
94
95
|
- lib/repia.rb
|
95
96
|
- lib/tasks/repia_tasks.rake
|