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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba3f8df494553f1dec0430a6db50097526c1c6c5
4
- data.tar.gz: c833126b21c386a9402d8e84e2f52d8f53d1b7c8
3
+ metadata.gz: 91b2546686e5dc8e92461952a197566a500eba76
4
+ data.tar.gz: b0f6c46be90ffd3dfacafd541b981d2794d56dfd
5
5
  SHA512:
6
- metadata.gz: 088e4ebb356627eb11731a9ee51ac9fb6f613e96f2f63e08d6ecca45a37869e52326dc7818f83ded0e6ad4e87ee0efa1c00e0af0600ba6683ae8a9594315b1da
7
- data.tar.gz: 8f66421ba6c66f5ba2a6ae8493a14512998de80417d51693748f5d65cfcbe3b38928bbe378bfd3c60b3bb5f526812979cbe1fe5a42140be9a34461883302c838
6
+ metadata.gz: 1681aaa567f7fdea2ca4d024ba49f7bc8c67ce5e717129955c33c14fcc6c5bc0439e18b29d147d88f23397f90b3448e46a08ee11baa3675a00b9d561d20f853b
7
+ data.tar.gz: e1e1ff1023e5a00d5ff0d419940e036b8c8e1eb4162aaef0f34083316ed7ebc6c6891cf541af5caceb544e288fa2b4666e99a291360e69fcc89d9766d8b82da3
@@ -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 3 params:
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.
@@ -86,7 +86,7 @@ module Restful
86
86
  #
87
87
  # @document
88
88
  def resource_ivar
89
- "@#{class_name.model_name.element}"
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.collection}"
98
+ "@#{class_name.model_name.plural}"
99
99
  end
100
100
 
101
101
  ##
@@ -3,5 +3,5 @@
3
3
  module Restful
4
4
  ##
5
5
  # Sets the library version
6
- VERSION = '0.1.1'
6
+ VERSION = '0.1.2'
7
7
  end
Binary file
@@ -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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87160
+ Completed 404 Not Found in 1ms
87161
+  (0.1ms) rollback transaction
87162
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
87163
+  (0.1ms) begin transaction
87164
+ Fixture Delete (0.3ms) DELETE FROM "documents"
87165
+ Fixture Insert (0.1ms) 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
+  (1.0ms) commit transaction
87167
+  (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
87174
+ SQL (1.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87176
+ Redirected to http://test.host/documents
87177
+ Completed 302 Found in 23ms (ActiveRecord: 1.7ms)
87178
+  (0.4ms) rollback transaction
87179
+  (0.1ms) begin transaction
87180
+ --------------------------------------------------------------------
87181
+ AlternatesController::base actions::create: test_0002_display errors
87182
+ --------------------------------------------------------------------
87183
+ Processing by AlternatesController#create as HTML
87184
+ Parameters: {"document"=>{"name"=>""}}
87185
+  (0.1ms) SAVEPOINT active_record_1
87186
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87187
+ Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)
87188
+  (0.1ms) rollback transaction
87189
+  (0.0ms) begin transaction
87190
+ ----------------------------------------------------------------
87191
+ AlternatesController::base actions::destroy: test_0001_redirects
87192
+ ----------------------------------------------------------------
87193
+ Processing by AlternatesController#destroy as HTML
87194
+ Parameters: {"id"=>"100"}
87195
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87196
+  (0.1ms) SAVEPOINT active_record_1
87197
+ SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
87198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87199
+  (0.0ms) SAVEPOINT active_record_1
87200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87201
+ Redirected to http://test.host/documents
87202
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
87203
+  (0.5ms) rollback transaction
87204
+  (0.1ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87211
+ Completed 404 Not Found in 1ms
87212
+  (0.1ms) rollback transaction
87213
+  (0.0ms) 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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87220
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
87221
+  (0.1ms) rollback transaction
87222
+  (0.0ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87229
+ Completed 404 Not Found in 1ms
87230
+  (0.1ms) rollback transaction
87231
+  (0.0ms) begin transaction
87232
+ ----------------------------------------------------------------
87233
+ AlternatesController::base actions::index: test_0001_render list
87234
+ ----------------------------------------------------------------
87235
+ Processing by AlternatesController#index as HTML
87236
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
87237
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
87238
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
87239
+  (0.1ms) rollback transaction
87240
+  (0.0ms) 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
+  (0.1ms) rollback transaction
87247
+  (0.0ms) 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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87254
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
87255
+  (0.1ms) rollback transaction
87256
+  (0.1ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87263
+ Completed 404 Not Found in 1ms
87264
+  (0.1ms) rollback transaction
87265
+  (0.0ms) 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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87272
+  (0.0ms) SAVEPOINT active_record_1
87273
+ SQL (0.4ms) 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]]
87274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87275
+ Redirected to http://test.host/documents
87276
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
87277
+  (0.5ms) rollback transaction
87278
+  (0.1ms) 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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87285
+  (0.0ms) SAVEPOINT active_record_1
87286
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87287
+ Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
87288
+  (0.1ms) rollback transaction
87289
+  (0.1ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87296
+ Completed 404 Not Found in 1ms
87297
+  (0.1ms) rollback transaction
87298
+  (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
87305
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87307
+ Redirected to http://test.host/
87308
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
87309
+  (0.5ms) rollback transaction
87310
+  (0.1ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87317
+  (0.1ms) SAVEPOINT active_record_1
87318
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87320
+ Redirected to http://test.host/
87321
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87322
+  (0.5ms) rollback transaction
87323
+  (0.1ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87330
+  (0.1ms) SAVEPOINT active_record_1
87331
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87332
+ Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
87333
+  (0.1ms) rollback transaction
87334
+  (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
87341
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87343
+ Redirected to http://test.host/
87344
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87345
+  (0.5ms) rollback transaction
87346
+  (0.1ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87353
+  (0.1ms) SAVEPOINT active_record_1
87354
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87356
+ Redirected to http://test.host/
87357
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87358
+  (0.4ms) rollback transaction
87359
+  (0.1ms) begin transaction
87360
+ --------------------------------------------------------------
87361
+ DocumentsController::base actions::create: test_0001_redirects
87362
+ --------------------------------------------------------------
87363
+ Processing by DocumentsController#create as HTML
87364
+ Parameters: {"document"=>{"name"=>"New document"}}
87365
+  (0.1ms) SAVEPOINT active_record_1
87366
+ SQL (0.4ms) 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]]
87367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87368
+ Redirected to http://test.host/documents
87369
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87370
+  (0.6ms) rollback transaction
87371
+  (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
87378
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
87379
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
87380
+  (0.1ms) rollback transaction
87381
+  (0.0ms) begin transaction
87382
+ ---------------------------------------------------------------
87383
+ DocumentsController::base actions::destroy: test_0001_redirects
87384
+ ---------------------------------------------------------------
87385
+ Processing by DocumentsController#destroy as HTML
87386
+ Parameters: {"id"=>"100"}
87387
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87388
+  (0.0ms) SAVEPOINT active_record_1
87389
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
87390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87391
+ Redirected to http://test.host/documents
87392
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
87393
+  (0.5ms) rollback transaction
87394
+  (0.1ms) 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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87401
+ Completed 404 Not Found in 1ms
87402
+  (0.1ms) rollback transaction
87403
+  (0.0ms) begin transaction
87404
+ --------------------------------------------------------------
87405
+ DocumentsController::base actions::edit: test_0001_render form
87406
+ --------------------------------------------------------------
87407
+ Processing by DocumentsController#edit as HTML
87408
+ Parameters: {"id"=>"100"}
87409
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87410
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
87411
+  (0.1ms) rollback transaction
87412
+  (0.0ms) 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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87419
+ Completed 404 Not Found in 1ms
87420
+  (0.1ms) rollback transaction
87421
+  (0.0ms) begin transaction
87422
+ ---------------------------------------------------------------
87423
+ DocumentsController::base actions::index: test_0001_render list
87424
+ ---------------------------------------------------------------
87425
+ Processing by DocumentsController#index as HTML
87426
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
87427
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
87428
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
87429
+  (0.1ms) rollback transaction
87430
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
87437
+  (0.0ms) begin transaction
87438
+ --------------------------------------------------------------
87439
+ DocumentsController::base actions::show: test_0001_render view
87440
+ --------------------------------------------------------------
87441
+ Processing by DocumentsController#show as HTML
87442
+ Parameters: {"id"=>"100"}
87443
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87444
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
87445
+  (0.1ms) rollback transaction
87446
+  (0.1ms) 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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87453
+ Completed 404 Not Found in 1ms
87454
+  (0.1ms) rollback transaction
87455
+  (0.0ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87462
+  (0.0ms) SAVEPOINT active_record_1
87463
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87465
+ Redirected to http://test.host/documents
87466
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87467
+  (0.5ms) rollback transaction
87468
+  (0.1ms) begin transaction
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
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87475
+  (0.0ms) SAVEPOINT active_record_1
87476
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87477
+ Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)
87478
+  (0.1ms) rollback transaction
87479
+  (0.1ms) 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
  Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["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.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-17 00:00:00.000000000 Z
11
+ date: 2013-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails