restful_controller 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/lib/restful/base.rb +2 -2
- data/lib/restful/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +326 -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: 91b2546686e5dc8e92461952a197566a500eba76
|
4
|
+
data.tar.gz: b0f6c46be90ffd3dfacafd541b981d2794d56dfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1681aaa567f7fdea2ca4d024ba49f7bc8c67ce5e717129955c33c14fcc6c5bc0439e18b29d147d88f23397f90b3448e46a08ee11baa3675a00b9d561d20f853b
|
7
|
+
data.tar.gz: e1e1ff1023e5a00d5ff0d419940e036b8c8e1eb4162aaef0f34083316ed7ebc6c6891cf541af5caceb544e288fa2b4666e99a291360e69fcc89d9766d8b82da3
|
data/README.rdoc
CHANGED
@@ -23,7 +23,7 @@ Run bundler command and you are all set.
|
|
23
23
|
Restful module must be included on each controller that you want to become Restful. Also it's need for these controllers to include the respond_to macro, which will especify the format to which our controllers will respond to.
|
24
24
|
|
25
25
|
Finally the resful macro is need it to setup our controller.
|
26
|
-
This macro accepts
|
26
|
+
This macro accepts 2 params:
|
27
27
|
|
28
28
|
=== Params
|
29
29
|
* model: A requires parameter which is a symbol of the model name.
|
data/lib/restful/base.rb
CHANGED
@@ -86,7 +86,7 @@ module Restful
|
|
86
86
|
#
|
87
87
|
# @document
|
88
88
|
def resource_ivar
|
89
|
-
"@#{class_name.model_name.
|
89
|
+
"@#{class_name.model_name.singular}"
|
90
90
|
end
|
91
91
|
|
92
92
|
##
|
@@ -95,7 +95,7 @@ module Restful
|
|
95
95
|
#
|
96
96
|
# @documents
|
97
97
|
def collection_ivar
|
98
|
-
"@#{class_name.model_name.
|
98
|
+
"@#{class_name.model_name.plural}"
|
99
99
|
end
|
100
100
|
|
101
101
|
##
|
data/lib/restful/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -87154,6 +87154,332 @@ Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
|
|
87154
87154
|
---------------------------------------------------------------------------------
|
87155
87155
|
DocumentsController::base actions::update: test_0003_raise exception on not found
|
87156
87156
|
---------------------------------------------------------------------------------
|
87157
|
+
Processing by DocumentsController#update as HTML
|
87158
|
+
Parameters: {"id"=>"1"}
|
87159
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
87160
|
+
Completed 404 Not Found in 1ms
|
87161
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87162
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
87163
|
+
[1m[35m (0.1ms)[0m begin transaction
|
87164
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "documents"[0m
|
87165
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-24 03:09:11', '2013-07-24 03:09:11')
|
87166
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
87167
|
+
[1m[35m (0.1ms)[0m begin transaction
|
87168
|
+
---------------------------------------------------------------
|
87169
|
+
AlternatesController::base actions::create: test_0001_redirects
|
87170
|
+
---------------------------------------------------------------
|
87171
|
+
Processing by AlternatesController#create as HTML
|
87172
|
+
Parameters: {"document"=>{"name"=>"New document"}}
|
87173
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87174
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87175
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87176
|
+
Redirected to http://test.host/documents
|
87177
|
+
Completed 302 Found in 23ms (ActiveRecord: 1.7ms)
|
87178
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
87179
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87180
|
+
--------------------------------------------------------------------
|
87181
|
+
AlternatesController::base actions::create: test_0002_display errors
|
87182
|
+
--------------------------------------------------------------------
|
87183
|
+
Processing by AlternatesController#create as HTML
|
87184
|
+
Parameters: {"document"=>{"name"=>""}}
|
87185
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
87186
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
87187
|
+
Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)
|
87188
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87189
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87190
|
+
----------------------------------------------------------------
|
87191
|
+
AlternatesController::base actions::destroy: test_0001_redirects
|
87192
|
+
----------------------------------------------------------------
|
87193
|
+
Processing by AlternatesController#destroy as HTML
|
87194
|
+
Parameters: {"id"=>"100"}
|
87195
|
+
[1m[35mDocument Load (0.2ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87196
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87197
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
|
87198
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
87200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87201
|
+
Redirected to http://test.host/documents
|
87202
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
|
87203
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
87204
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87205
|
+
-----------------------------------------------------------------------------------
|
87206
|
+
AlternatesController::base actions::destroy: test_0002_raise exception on not found
|
87207
|
+
-----------------------------------------------------------------------------------
|
87208
|
+
Processing by AlternatesController#destroy as HTML
|
87209
|
+
Parameters: {"id"=>"1"}
|
87210
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
87211
|
+
Completed 404 Not Found in 1ms
|
87212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87213
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87214
|
+
---------------------------------------------------------------
|
87215
|
+
AlternatesController::base actions::edit: test_0001_render form
|
87216
|
+
---------------------------------------------------------------
|
87217
|
+
Processing by AlternatesController#edit as HTML
|
87218
|
+
Parameters: {"id"=>"100"}
|
87219
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
87220
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
87221
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87223
|
+
--------------------------------------------------------------------------------
|
87224
|
+
AlternatesController::base actions::edit: test_0002_raise exception on not found
|
87225
|
+
--------------------------------------------------------------------------------
|
87226
|
+
Processing by AlternatesController#edit as HTML
|
87227
|
+
Parameters: {"id"=>"1"}
|
87228
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
87229
|
+
Completed 404 Not Found in 1ms
|
87230
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87231
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87232
|
+
----------------------------------------------------------------
|
87233
|
+
AlternatesController::base actions::index: test_0001_render list
|
87234
|
+
----------------------------------------------------------------
|
87235
|
+
Processing by AlternatesController#index as HTML
|
87236
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("documents"."updated_at") AS max_id FROM "documents"[0m
|
87237
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents"
|
87238
|
+
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
87239
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87240
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87241
|
+
--------------------------------------------------------------
|
87242
|
+
AlternatesController::base actions::new: test_0001_render form
|
87243
|
+
--------------------------------------------------------------
|
87244
|
+
Processing by AlternatesController#new as HTML
|
87245
|
+
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
87246
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87247
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87248
|
+
---------------------------------------------------------------
|
87249
|
+
AlternatesController::base actions::show: test_0001_render view
|
87250
|
+
---------------------------------------------------------------
|
87251
|
+
Processing by AlternatesController#show as HTML
|
87252
|
+
Parameters: {"id"=>"100"}
|
87253
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
87254
|
+
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
87255
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87257
|
+
--------------------------------------------------------------------------------
|
87258
|
+
AlternatesController::base actions::show: test_0002_raise exception on not found
|
87259
|
+
--------------------------------------------------------------------------------
|
87260
|
+
Processing by AlternatesController#show as HTML
|
87261
|
+
Parameters: {"id"=>"1"}
|
87262
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
87263
|
+
Completed 404 Not Found in 1ms
|
87264
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87265
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87266
|
+
---------------------------------------------------------------
|
87267
|
+
AlternatesController::base actions::update: test_0001_redirects
|
87268
|
+
---------------------------------------------------------------
|
87269
|
+
Processing by AlternatesController#update as HTML
|
87270
|
+
Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
|
87271
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
87272
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
87273
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100[0m [["name", "New document"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87274
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
87275
|
+
Redirected to http://test.host/documents
|
87276
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
87277
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
87278
|
+
[1m[35m (0.1ms)[0m begin transaction
|
87279
|
+
--------------------------------------------------------------------
|
87280
|
+
AlternatesController::base actions::update: test_0002_display errors
|
87281
|
+
--------------------------------------------------------------------
|
87282
|
+
Processing by AlternatesController#update as HTML
|
87283
|
+
Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
|
87284
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
87285
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
87286
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
87287
|
+
Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
|
87288
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87290
|
+
----------------------------------------------------------------------------------
|
87291
|
+
AlternatesController::base actions::update: test_0003_raise exception on not found
|
87292
|
+
----------------------------------------------------------------------------------
|
87293
|
+
Processing by AlternatesController#update as HTML
|
87294
|
+
Parameters: {"id"=>"1"}
|
87295
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
87296
|
+
Completed 404 Not Found in 1ms
|
87297
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87298
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87299
|
+
--------------------------------------------------
|
87300
|
+
BlocksController: test_0001_has one response block
|
87301
|
+
--------------------------------------------------
|
87302
|
+
Processing by BlocksController#create as HTML
|
87303
|
+
Parameters: {"document"=>{"name"=>"Sample"}}
|
87304
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87305
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87306
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87307
|
+
Redirected to http://test.host/
|
87308
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
87309
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
87310
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87311
|
+
----------------------------------------------------------------
|
87312
|
+
BlocksController: test_0002_has two response blocks with success
|
87313
|
+
----------------------------------------------------------------
|
87314
|
+
Processing by BlocksController#update as HTML
|
87315
|
+
Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
|
87316
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87317
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87318
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87319
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87320
|
+
Redirected to http://test.host/
|
87321
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
87322
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
87323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87324
|
+
----------------------------------------------------------------
|
87325
|
+
BlocksController: test_0003_has two response blocks with failire
|
87326
|
+
----------------------------------------------------------------
|
87327
|
+
Processing by BlocksController#update as HTML
|
87328
|
+
Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
|
87329
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87330
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87331
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
87332
|
+
Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
87333
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87334
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87335
|
+
---------------------------------------------------------------
|
87336
|
+
CustomNoticesController::flash messages: test_0001_has a notice
|
87337
|
+
---------------------------------------------------------------
|
87338
|
+
Processing by CustomNoticesController#create as HTML
|
87339
|
+
Parameters: {"document"=>{"name"=>"Sample"}}
|
87340
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87341
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87342
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87343
|
+
Redirected to http://test.host/
|
87344
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
87345
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
87346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87347
|
+
---------------------------------------------------------------
|
87348
|
+
CustomNoticesController::flash messages: test_0002_has an alert
|
87349
|
+
---------------------------------------------------------------
|
87350
|
+
Processing by CustomNoticesController#update as HTML
|
87351
|
+
Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
|
87352
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87353
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87354
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87355
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87356
|
+
Redirected to http://test.host/
|
87357
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
87358
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
87359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87360
|
+
--------------------------------------------------------------
|
87361
|
+
DocumentsController::base actions::create: test_0001_redirects
|
87362
|
+
--------------------------------------------------------------
|
87363
|
+
Processing by DocumentsController#create as HTML
|
87364
|
+
Parameters: {"document"=>{"name"=>"New document"}}
|
87365
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
87366
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87367
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
87368
|
+
Redirected to http://test.host/documents
|
87369
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
87370
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
87371
|
+
[1m[35m (0.1ms)[0m begin transaction
|
87372
|
+
-------------------------------------------------------------------
|
87373
|
+
DocumentsController::base actions::create: test_0002_display errors
|
87374
|
+
-------------------------------------------------------------------
|
87375
|
+
Processing by DocumentsController#create as HTML
|
87376
|
+
Parameters: {"document"=>{"name"=>""}}
|
87377
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
87378
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
87379
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
87380
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87382
|
+
---------------------------------------------------------------
|
87383
|
+
DocumentsController::base actions::destroy: test_0001_redirects
|
87384
|
+
---------------------------------------------------------------
|
87385
|
+
Processing by DocumentsController#destroy as HTML
|
87386
|
+
Parameters: {"id"=>"100"}
|
87387
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
87388
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
87389
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "documents" WHERE "documents"."id" = ?[0m [["id", 100]]
|
87390
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
87391
|
+
Redirected to http://test.host/documents
|
87392
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
87393
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
87394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
87395
|
+
----------------------------------------------------------------------------------
|
87396
|
+
DocumentsController::base actions::destroy: test_0002_raise exception on not found
|
87397
|
+
----------------------------------------------------------------------------------
|
87398
|
+
Processing by DocumentsController#destroy as HTML
|
87399
|
+
Parameters: {"id"=>"1"}
|
87400
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
87401
|
+
Completed 404 Not Found in 1ms
|
87402
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87403
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87404
|
+
--------------------------------------------------------------
|
87405
|
+
DocumentsController::base actions::edit: test_0001_render form
|
87406
|
+
--------------------------------------------------------------
|
87407
|
+
Processing by DocumentsController#edit as HTML
|
87408
|
+
Parameters: {"id"=>"100"}
|
87409
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87410
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
87411
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87412
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87413
|
+
-------------------------------------------------------------------------------
|
87414
|
+
DocumentsController::base actions::edit: test_0002_raise exception on not found
|
87415
|
+
-------------------------------------------------------------------------------
|
87416
|
+
Processing by DocumentsController#edit as HTML
|
87417
|
+
Parameters: {"id"=>"1"}
|
87418
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
87419
|
+
Completed 404 Not Found in 1ms
|
87420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87422
|
+
---------------------------------------------------------------
|
87423
|
+
DocumentsController::base actions::index: test_0001_render list
|
87424
|
+
---------------------------------------------------------------
|
87425
|
+
Processing by DocumentsController#index as HTML
|
87426
|
+
[1m[35m (0.1ms)[0m SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
|
87427
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents"[0m
|
87428
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
87429
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87430
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87431
|
+
-------------------------------------------------------------
|
87432
|
+
DocumentsController::base actions::new: test_0001_render form
|
87433
|
+
-------------------------------------------------------------
|
87434
|
+
Processing by DocumentsController#new as HTML
|
87435
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
87436
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87437
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87438
|
+
--------------------------------------------------------------
|
87439
|
+
DocumentsController::base actions::show: test_0001_render view
|
87440
|
+
--------------------------------------------------------------
|
87441
|
+
Processing by DocumentsController#show as HTML
|
87442
|
+
Parameters: {"id"=>"100"}
|
87443
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87444
|
+
Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
|
87445
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87446
|
+
[1m[35m (0.1ms)[0m begin transaction
|
87447
|
+
-------------------------------------------------------------------------------
|
87448
|
+
DocumentsController::base actions::show: test_0002_raise exception on not found
|
87449
|
+
-------------------------------------------------------------------------------
|
87450
|
+
Processing by DocumentsController#show as HTML
|
87451
|
+
Parameters: {"id"=>"1"}
|
87452
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
87453
|
+
Completed 404 Not Found in 1ms
|
87454
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87455
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87456
|
+
--------------------------------------------------------------
|
87457
|
+
DocumentsController::base actions::update: test_0001_redirects
|
87458
|
+
--------------------------------------------------------------
|
87459
|
+
Processing by DocumentsController#update as HTML
|
87460
|
+
Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
|
87461
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87462
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
87463
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 24 Jul 2013 03:09:11 UTC +00:00]]
|
87464
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87465
|
+
Redirected to http://test.host/documents
|
87466
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
87467
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
87468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87469
|
+
-------------------------------------------------------------------
|
87470
|
+
DocumentsController::base actions::update: test_0002_display errors
|
87471
|
+
-------------------------------------------------------------------
|
87472
|
+
Processing by DocumentsController#update as HTML
|
87473
|
+
Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
|
87474
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
87475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
87476
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
87477
|
+
Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)
|
87478
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
87479
|
+
[1m[35m (0.1ms)[0m begin transaction
|
87480
|
+
---------------------------------------------------------------------------------
|
87481
|
+
DocumentsController::base actions::update: test_0003_raise exception on not found
|
87482
|
+
---------------------------------------------------------------------------------
|
87157
87483
|
Processing by DocumentsController#update as HTML
|
87158
87484
|
Parameters: {"id"=>"1"}
|
87159
87485
|
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Alberto Chavez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|