restful_controller 0.1.2 → 0.1.3

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: 91b2546686e5dc8e92461952a197566a500eba76
4
- data.tar.gz: b0f6c46be90ffd3dfacafd541b981d2794d56dfd
3
+ metadata.gz: 52641134615fbf575cc84a2c5dd01d21d588f0dc
4
+ data.tar.gz: 0009f1fe93f75fb8501a93c45325a868a0d35305
5
5
  SHA512:
6
- metadata.gz: 1681aaa567f7fdea2ca4d024ba49f7bc8c67ce5e717129955c33c14fcc6c5bc0439e18b29d147d88f23397f90b3448e46a08ee11baa3675a00b9d561d20f853b
7
- data.tar.gz: e1e1ff1023e5a00d5ff0d419940e036b8c8e1eb4162aaef0f34083316ed7ebc6c6891cf541af5caceb544e288fa2b4666e99a291360e69fcc89d9766d8b82da3
6
+ metadata.gz: 9d2852e445651b25ad97530b64d6f739c99f095fc30eae4445d032c96c1f8b0e1ebcf1a1179c52b16ac787f8a13be5d5784bcec7131bdecfdaa872c86341f366
7
+ data.tar.gz: fdb30c0d779c8a8030157b42b3bd3eaf7509ec294cafbc8616fbe3b018b1a555215ed025ce341c7ba4fdb1ceebfe5532a881f87bff39ec634656780eddfedc7f
data/lib/restful/base.rb CHANGED
@@ -333,7 +333,7 @@ module Restful
333
333
  end
334
334
 
335
335
  options = actions.extract_options!
336
- except_actions = options[:except]
336
+ except_actions = options[:except] || []
337
337
  keep_actions = keep_actions - except_actions
338
338
 
339
339
  (ACTIONS - keep_actions).uniq.each do |action|
@@ -3,5 +3,5 @@
3
3
  module Restful
4
4
  ##
5
5
  # Sets the library version
6
- VERSION = '0.1.2'
6
+ VERSION = '0.1.3'
7
7
  end
@@ -63,14 +63,14 @@ describe 'Actions definition' do
63
63
  it 'have listed actions but except actions' do
64
64
  ##
65
65
  # Controller class for tests
66
- class HandPickActionsController < BaseController
66
+ class HandPickWithExceptionActionsController < BaseController
67
67
  respond_to :html
68
68
  restful model: :document,
69
69
  actions: [:index, :show, :destroy,
70
70
  except: [:edit, :update, :destroy]]
71
71
  end
72
72
 
73
- subject = HandPickActionsController.new
73
+ subject = HandPickWithExceptionActionsController.new
74
74
 
75
75
  subject.must_respond_to :index
76
76
  subject.must_respond_to :show
@@ -81,6 +81,26 @@ describe 'Actions definition' do
81
81
  subject.wont_respond_to :destroy
82
82
  end
83
83
 
84
+ it 'have listed actions' do
85
+ ##
86
+ # Controller class for tests
87
+ class HandPickActionsController < BaseController
88
+ respond_to :html
89
+ restful model: :document,
90
+ actions: [:index, :show, :destroy]
91
+ end
92
+
93
+ subject = HandPickActionsController.new
94
+
95
+ subject.must_respond_to :index
96
+ subject.must_respond_to :show
97
+ subject.must_respond_to :destroy
98
+ subject.wont_respond_to :edit
99
+ subject.wont_respond_to :update
100
+ subject.wont_respond_to :new
101
+ subject.wont_respond_to :create
102
+ end
103
+
84
104
  it 'have invalid actions listed' do
85
105
  ##
86
106
  # Controller class for tests
Binary file
@@ -87480,6 +87480,1962 @@ Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)
87480
87480
  ---------------------------------------------------------------------------------
87481
87481
  DocumentsController::base actions::update: test_0003_raise exception on not found
87482
87482
  ---------------------------------------------------------------------------------
87483
+ Processing by DocumentsController#update as HTML
87484
+ Parameters: {"id"=>"1"}
87485
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87486
+ Completed 404 Not Found in 1ms
87487
+  (0.1ms) rollback transaction
87488
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
87489
+  (0.1ms) begin transaction
87490
+ Fixture Delete (0.5ms) DELETE FROM "documents"
87491
+ Fixture Insert (0.4ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-08-06 17:42:47', '2013-08-06 17:42:47')
87492
+  (1.0ms) commit transaction
87493
+  (0.1ms) begin transaction
87494
+ ---------------------------------------------------------------
87495
+ AlternatesController::base actions::create: test_0001_redirects
87496
+ ---------------------------------------------------------------
87497
+ Processing by AlternatesController#create as HTML
87498
+ Parameters: {"document"=>{"name"=>"New document"}}
87499
+  (0.1ms) SAVEPOINT active_record_1
87500
+ SQL (1.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87502
+ Redirected to http://test.host/documents
87503
+ Completed 302 Found in 52ms (ActiveRecord: 2.0ms)
87504
+  (0.5ms) rollback transaction
87505
+  (0.1ms) begin transaction
87506
+ --------------------------------------------------------------------
87507
+ AlternatesController::base actions::create: test_0002_display errors
87508
+ --------------------------------------------------------------------
87509
+ Processing by AlternatesController#create as HTML
87510
+ Parameters: {"document"=>{"name"=>""}}
87511
+  (0.1ms) SAVEPOINT active_record_1
87512
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
87513
+ Completed 200 OK in 22ms (Views: 15.6ms | ActiveRecord: 0.1ms)
87514
+  (0.1ms) rollback transaction
87515
+  (0.0ms) begin transaction
87516
+ ----------------------------------------------------------------
87517
+ AlternatesController::base actions::destroy: test_0001_redirects
87518
+ ----------------------------------------------------------------
87519
+ Processing by AlternatesController#destroy as HTML
87520
+ Parameters: {"id"=>"100"}
87521
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87522
+  (0.1ms) SAVEPOINT active_record_1
87523
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
87524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87525
+  (0.0ms) SAVEPOINT active_record_1
87526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87527
+ Redirected to http://test.host/documents
87528
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
87529
+  (0.5ms) rollback transaction
87530
+  (0.1ms) begin transaction
87531
+ -----------------------------------------------------------------------------------
87532
+ AlternatesController::base actions::destroy: test_0002_raise exception on not found
87533
+ -----------------------------------------------------------------------------------
87534
+ Processing by AlternatesController#destroy as HTML
87535
+ Parameters: {"id"=>"1"}
87536
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87537
+ Completed 404 Not Found in 1ms
87538
+  (0.1ms) rollback transaction
87539
+  (0.0ms) begin transaction
87540
+ ---------------------------------------------------------------
87541
+ AlternatesController::base actions::edit: test_0001_render form
87542
+ ---------------------------------------------------------------
87543
+ Processing by AlternatesController#edit as HTML
87544
+ Parameters: {"id"=>"100"}
87545
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87546
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
87547
+  (0.1ms) rollback transaction
87548
+  (0.0ms) begin transaction
87549
+ --------------------------------------------------------------------------------
87550
+ AlternatesController::base actions::edit: test_0002_raise exception on not found
87551
+ --------------------------------------------------------------------------------
87552
+ Processing by AlternatesController#edit as HTML
87553
+ Parameters: {"id"=>"1"}
87554
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87555
+ Completed 404 Not Found in 1ms
87556
+  (0.1ms) rollback transaction
87557
+  (0.0ms) begin transaction
87558
+ ----------------------------------------------------------------
87559
+ AlternatesController::base actions::index: test_0001_render list
87560
+ ----------------------------------------------------------------
87561
+ Processing by AlternatesController#index as HTML
87562
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
87563
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
87564
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
87565
+  (0.1ms) rollback transaction
87566
+  (0.0ms) begin transaction
87567
+ --------------------------------------------------------------
87568
+ AlternatesController::base actions::new: test_0001_render form
87569
+ --------------------------------------------------------------
87570
+ Processing by AlternatesController#new as HTML
87571
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
87572
+  (0.1ms) rollback transaction
87573
+  (0.0ms) begin transaction
87574
+ ---------------------------------------------------------------
87575
+ AlternatesController::base actions::show: test_0001_render view
87576
+ ---------------------------------------------------------------
87577
+ Processing by AlternatesController#show as HTML
87578
+ Parameters: {"id"=>"100"}
87579
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87580
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
87581
+  (0.1ms) rollback transaction
87582
+  (0.1ms) begin transaction
87583
+ --------------------------------------------------------------------------------
87584
+ AlternatesController::base actions::show: test_0002_raise exception on not found
87585
+ --------------------------------------------------------------------------------
87586
+ Processing by AlternatesController#show as HTML
87587
+ Parameters: {"id"=>"1"}
87588
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87589
+ Completed 404 Not Found in 1ms
87590
+  (0.1ms) rollback transaction
87591
+  (0.0ms) begin transaction
87592
+ ---------------------------------------------------------------
87593
+ AlternatesController::base actions::update: test_0001_redirects
87594
+ ---------------------------------------------------------------
87595
+ Processing by AlternatesController#update as HTML
87596
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
87597
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87598
+  (0.1ms) SAVEPOINT active_record_1
87599
+ SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87601
+ Redirected to http://test.host/documents
87602
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
87603
+  (0.5ms) rollback transaction
87604
+  (0.1ms) begin transaction
87605
+ --------------------------------------------------------------------
87606
+ AlternatesController::base actions::update: test_0002_display errors
87607
+ --------------------------------------------------------------------
87608
+ Processing by AlternatesController#update as HTML
87609
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
87610
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87611
+  (0.1ms) SAVEPOINT active_record_1
87612
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87613
+ Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
87614
+  (0.1ms) rollback transaction
87615
+  (0.1ms) begin transaction
87616
+ ----------------------------------------------------------------------------------
87617
+ AlternatesController::base actions::update: test_0003_raise exception on not found
87618
+ ----------------------------------------------------------------------------------
87619
+ Processing by AlternatesController#update as HTML
87620
+ Parameters: {"id"=>"1"}
87621
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87622
+ Completed 404 Not Found in 1ms
87623
+  (0.1ms) rollback transaction
87624
+  (0.0ms) begin transaction
87625
+ --------------------------------------------------
87626
+ BlocksController: test_0001_has one response block
87627
+ --------------------------------------------------
87628
+ Processing by BlocksController#create as HTML
87629
+ Parameters: {"document"=>{"name"=>"Sample"}}
87630
+  (0.1ms) SAVEPOINT active_record_1
87631
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87633
+ Redirected to http://test.host/
87634
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87635
+  (0.5ms) rollback transaction
87636
+  (0.1ms) begin transaction
87637
+ ----------------------------------------------------------------
87638
+ BlocksController: test_0002_has two response blocks with success
87639
+ ----------------------------------------------------------------
87640
+ Processing by BlocksController#update as HTML
87641
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
87642
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87643
+  (0.0ms) SAVEPOINT active_record_1
87644
+ SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87646
+ Redirected to http://test.host/
87647
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
87648
+  (0.5ms) rollback transaction
87649
+  (0.1ms) begin transaction
87650
+ ----------------------------------------------------------------
87651
+ BlocksController: test_0003_has two response blocks with failire
87652
+ ----------------------------------------------------------------
87653
+ Processing by BlocksController#update as HTML
87654
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
87655
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87656
+  (0.1ms) SAVEPOINT active_record_1
87657
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87658
+ Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
87659
+  (0.1ms) rollback transaction
87660
+  (0.0ms) begin transaction
87661
+ ---------------------------------------------------------------
87662
+ CustomNoticesController::flash messages: test_0001_has a notice
87663
+ ---------------------------------------------------------------
87664
+ Processing by CustomNoticesController#create as HTML
87665
+ Parameters: {"document"=>{"name"=>"Sample"}}
87666
+  (0.1ms) SAVEPOINT active_record_1
87667
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87669
+ Redirected to http://test.host/
87670
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87671
+  (0.4ms) rollback transaction
87672
+  (0.1ms) begin transaction
87673
+ ---------------------------------------------------------------
87674
+ CustomNoticesController::flash messages: test_0002_has an alert
87675
+ ---------------------------------------------------------------
87676
+ Processing by CustomNoticesController#update as HTML
87677
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
87678
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87679
+  (0.0ms) SAVEPOINT active_record_1
87680
+ SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87682
+ Redirected to http://test.host/
87683
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
87684
+  (0.3ms) rollback transaction
87685
+  (0.1ms) begin transaction
87686
+ --------------------------------------------------------------
87687
+ DocumentsController::base actions::create: test_0001_redirects
87688
+ --------------------------------------------------------------
87689
+ Processing by DocumentsController#create as HTML
87690
+ Parameters: {"document"=>{"name"=>"New document"}}
87691
+  (0.1ms) SAVEPOINT active_record_1
87692
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87694
+ Redirected to http://test.host/documents
87695
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87696
+  (0.7ms) rollback transaction
87697
+  (0.1ms) begin transaction
87698
+ -------------------------------------------------------------------
87699
+ DocumentsController::base actions::create: test_0002_display errors
87700
+ -------------------------------------------------------------------
87701
+ Processing by DocumentsController#create as HTML
87702
+ Parameters: {"document"=>{"name"=>""}}
87703
+  (0.1ms) SAVEPOINT active_record_1
87704
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87705
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.1ms)
87706
+  (0.1ms) rollback transaction
87707
+  (0.1ms) begin transaction
87708
+ ---------------------------------------------------------------
87709
+ DocumentsController::base actions::destroy: test_0001_redirects
87710
+ ---------------------------------------------------------------
87711
+ Processing by DocumentsController#destroy as HTML
87712
+ Parameters: {"id"=>"100"}
87713
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87714
+  (0.1ms) SAVEPOINT active_record_1
87715
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
87716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87717
+ Redirected to http://test.host/documents
87718
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
87719
+  (0.4ms) rollback transaction
87720
+  (0.0ms) begin transaction
87721
+ ----------------------------------------------------------------------------------
87722
+ DocumentsController::base actions::destroy: test_0002_raise exception on not found
87723
+ ----------------------------------------------------------------------------------
87724
+ Processing by DocumentsController#destroy as HTML
87725
+ Parameters: {"id"=>"1"}
87726
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87727
+ Completed 404 Not Found in 1ms
87728
+  (0.1ms) rollback transaction
87729
+  (0.0ms) begin transaction
87730
+ --------------------------------------------------------------
87731
+ DocumentsController::base actions::edit: test_0001_render form
87732
+ --------------------------------------------------------------
87733
+ Processing by DocumentsController#edit as HTML
87734
+ Parameters: {"id"=>"100"}
87735
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87736
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
87737
+  (0.1ms) rollback transaction
87738
+  (0.0ms) begin transaction
87739
+ -------------------------------------------------------------------------------
87740
+ DocumentsController::base actions::edit: test_0002_raise exception on not found
87741
+ -------------------------------------------------------------------------------
87742
+ Processing by DocumentsController#edit as HTML
87743
+ Parameters: {"id"=>"1"}
87744
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87745
+ Completed 404 Not Found in 1ms
87746
+  (0.1ms) rollback transaction
87747
+  (0.0ms) begin transaction
87748
+ ---------------------------------------------------------------
87749
+ DocumentsController::base actions::index: test_0001_render list
87750
+ ---------------------------------------------------------------
87751
+ Processing by DocumentsController#index as HTML
87752
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
87753
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
87754
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
87755
+  (0.1ms) rollback transaction
87756
+  (0.0ms) begin transaction
87757
+ -------------------------------------------------------------
87758
+ DocumentsController::base actions::new: test_0001_render form
87759
+ -------------------------------------------------------------
87760
+ Processing by DocumentsController#new as HTML
87761
+ Completed 200 OK in 35ms (Views: 34.4ms | ActiveRecord: 0.0ms)
87762
+  (0.1ms) rollback transaction
87763
+  (0.0ms) begin transaction
87764
+ --------------------------------------------------------------
87765
+ DocumentsController::base actions::show: test_0001_render view
87766
+ --------------------------------------------------------------
87767
+ Processing by DocumentsController#show as HTML
87768
+ Parameters: {"id"=>"100"}
87769
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87770
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)
87771
+  (0.1ms) rollback transaction
87772
+  (0.0ms) begin transaction
87773
+ -------------------------------------------------------------------------------
87774
+ DocumentsController::base actions::show: test_0002_raise exception on not found
87775
+ -------------------------------------------------------------------------------
87776
+ Processing by DocumentsController#show as HTML
87777
+ Parameters: {"id"=>"1"}
87778
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87779
+ Completed 404 Not Found in 1ms
87780
+  (0.1ms) rollback transaction
87781
+  (0.0ms) begin transaction
87782
+ --------------------------------------------------------------
87783
+ DocumentsController::base actions::update: test_0001_redirects
87784
+ --------------------------------------------------------------
87785
+ Processing by DocumentsController#update as HTML
87786
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
87787
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87788
+  (0.0ms) SAVEPOINT active_record_1
87789
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:42:47 UTC +00:00]]
87790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87791
+ Redirected to http://test.host/documents
87792
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87793
+  (0.4ms) rollback transaction
87794
+  (0.1ms) begin transaction
87795
+ -------------------------------------------------------------------
87796
+ DocumentsController::base actions::update: test_0002_display errors
87797
+ -------------------------------------------------------------------
87798
+ Processing by DocumentsController#update as HTML
87799
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
87800
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87801
+  (0.1ms) SAVEPOINT active_record_1
87802
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87803
+ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)
87804
+  (0.1ms) rollback transaction
87805
+  (0.0ms) begin transaction
87806
+ ---------------------------------------------------------------------------------
87807
+ DocumentsController::base actions::update: test_0003_raise exception on not found
87808
+ ---------------------------------------------------------------------------------
87809
+ Processing by DocumentsController#update as HTML
87810
+ Parameters: {"id"=>"1"}
87811
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87812
+ Completed 404 Not Found in 1ms
87813
+  (0.1ms) rollback transaction
87814
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
87815
+  (0.1ms) begin transaction
87816
+ Fixture Delete (0.2ms) DELETE FROM "documents"
87817
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-08-06 17:43:28', '2013-08-06 17:43:28')
87818
+  (0.9ms) commit transaction
87819
+  (0.0ms) begin transaction
87820
+ ---------------------------------------------------------------
87821
+ AlternatesController::base actions::create: test_0001_redirects
87822
+ ---------------------------------------------------------------
87823
+ Processing by AlternatesController#create as HTML
87824
+ Parameters: {"document"=>{"name"=>"New document"}}
87825
+  (0.1ms) SAVEPOINT active_record_1
87826
+ SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
87827
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87828
+ Redirected to http://test.host/documents
87829
+ Completed 302 Found in 49ms (ActiveRecord: 1.2ms)
87830
+  (0.4ms) rollback transaction
87831
+  (0.1ms) begin transaction
87832
+ --------------------------------------------------------------------
87833
+ AlternatesController::base actions::create: test_0002_display errors
87834
+ --------------------------------------------------------------------
87835
+ Processing by AlternatesController#create as HTML
87836
+ Parameters: {"document"=>{"name"=>""}}
87837
+  (0.1ms) SAVEPOINT active_record_1
87838
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
87839
+ Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.1ms)
87840
+  (0.1ms) rollback transaction
87841
+  (0.0ms) begin transaction
87842
+ ----------------------------------------------------------------
87843
+ AlternatesController::base actions::destroy: test_0001_redirects
87844
+ ----------------------------------------------------------------
87845
+ Processing by AlternatesController#destroy as HTML
87846
+ Parameters: {"id"=>"100"}
87847
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87848
+  (0.1ms) SAVEPOINT active_record_1
87849
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
87850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87851
+  (0.0ms) SAVEPOINT active_record_1
87852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87853
+ Redirected to http://test.host/documents
87854
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
87855
+  (0.4ms) rollback transaction
87856
+  (0.1ms) begin transaction
87857
+ -----------------------------------------------------------------------------------
87858
+ AlternatesController::base actions::destroy: test_0002_raise exception on not found
87859
+ -----------------------------------------------------------------------------------
87860
+ Processing by AlternatesController#destroy as HTML
87861
+ Parameters: {"id"=>"1"}
87862
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87863
+ Completed 404 Not Found in 1ms
87864
+  (0.1ms) rollback transaction
87865
+  (0.1ms) begin transaction
87866
+ ---------------------------------------------------------------
87867
+ AlternatesController::base actions::edit: test_0001_render form
87868
+ ---------------------------------------------------------------
87869
+ Processing by AlternatesController#edit as HTML
87870
+ Parameters: {"id"=>"100"}
87871
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87872
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
87873
+  (0.1ms) rollback transaction
87874
+  (0.1ms) begin transaction
87875
+ --------------------------------------------------------------------------------
87876
+ AlternatesController::base actions::edit: test_0002_raise exception on not found
87877
+ --------------------------------------------------------------------------------
87878
+ Processing by AlternatesController#edit as HTML
87879
+ Parameters: {"id"=>"1"}
87880
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87881
+ Completed 404 Not Found in 1ms
87882
+  (0.1ms) rollback transaction
87883
+  (0.0ms) begin transaction
87884
+ ----------------------------------------------------------------
87885
+ AlternatesController::base actions::index: test_0001_render list
87886
+ ----------------------------------------------------------------
87887
+ Processing by AlternatesController#index as HTML
87888
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
87889
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
87890
+ Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
87891
+  (0.1ms) rollback transaction
87892
+  (0.0ms) begin transaction
87893
+ --------------------------------------------------------------
87894
+ AlternatesController::base actions::new: test_0001_render form
87895
+ --------------------------------------------------------------
87896
+ Processing by AlternatesController#new as HTML
87897
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
87898
+  (0.1ms) rollback transaction
87899
+  (0.0ms) begin transaction
87900
+ ---------------------------------------------------------------
87901
+ AlternatesController::base actions::show: test_0001_render view
87902
+ ---------------------------------------------------------------
87903
+ Processing by AlternatesController#show as HTML
87904
+ Parameters: {"id"=>"100"}
87905
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87906
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
87907
+  (0.1ms) rollback transaction
87908
+  (0.0ms) begin transaction
87909
+ --------------------------------------------------------------------------------
87910
+ AlternatesController::base actions::show: test_0002_raise exception on not found
87911
+ --------------------------------------------------------------------------------
87912
+ Processing by AlternatesController#show as HTML
87913
+ Parameters: {"id"=>"1"}
87914
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87915
+ Completed 404 Not Found in 1ms
87916
+  (0.1ms) rollback transaction
87917
+  (0.1ms) begin transaction
87918
+ ---------------------------------------------------------------
87919
+ AlternatesController::base actions::update: test_0001_redirects
87920
+ ---------------------------------------------------------------
87921
+ Processing by AlternatesController#update as HTML
87922
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
87923
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87924
+  (0.1ms) SAVEPOINT active_record_1
87925
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
87926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87927
+ Redirected to http://test.host/documents
87928
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
87929
+  (0.4ms) rollback transaction
87930
+  (0.1ms) begin transaction
87931
+ --------------------------------------------------------------------
87932
+ AlternatesController::base actions::update: test_0002_display errors
87933
+ --------------------------------------------------------------------
87934
+ Processing by AlternatesController#update as HTML
87935
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
87936
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87937
+  (0.1ms) SAVEPOINT active_record_1
87938
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87939
+ Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)
87940
+  (0.1ms) rollback transaction
87941
+  (0.0ms) begin transaction
87942
+ ----------------------------------------------------------------------------------
87943
+ AlternatesController::base actions::update: test_0003_raise exception on not found
87944
+ ----------------------------------------------------------------------------------
87945
+ Processing by AlternatesController#update as HTML
87946
+ Parameters: {"id"=>"1"}
87947
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
87948
+ Completed 404 Not Found in 1ms
87949
+  (0.1ms) rollback transaction
87950
+  (0.0ms) begin transaction
87951
+ --------------------------------------------------
87952
+ BlocksController: test_0001_has one response block
87953
+ --------------------------------------------------
87954
+ Processing by BlocksController#create as HTML
87955
+ Parameters: {"document"=>{"name"=>"Sample"}}
87956
+  (0.1ms) SAVEPOINT active_record_1
87957
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
87958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87959
+ Redirected to http://test.host/
87960
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
87961
+  (0.4ms) rollback transaction
87962
+  (0.0ms) begin transaction
87963
+ ----------------------------------------------------------------
87964
+ BlocksController: test_0002_has two response blocks with success
87965
+ ----------------------------------------------------------------
87966
+ Processing by BlocksController#update as HTML
87967
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
87968
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87969
+  (0.1ms) SAVEPOINT active_record_1
87970
+ SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
87971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87972
+ Redirected to http://test.host/
87973
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
87974
+  (0.5ms) rollback transaction
87975
+  (0.0ms) begin transaction
87976
+ ----------------------------------------------------------------
87977
+ BlocksController: test_0003_has two response blocks with failire
87978
+ ----------------------------------------------------------------
87979
+ Processing by BlocksController#update as HTML
87980
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
87981
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
87982
+  (0.1ms) SAVEPOINT active_record_1
87983
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87984
+ Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
87985
+  (0.1ms) rollback transaction
87986
+  (0.0ms) begin transaction
87987
+ ---------------------------------------------------------------
87988
+ CustomNoticesController::flash messages: test_0001_has a notice
87989
+ ---------------------------------------------------------------
87990
+ Processing by CustomNoticesController#create as HTML
87991
+ Parameters: {"document"=>{"name"=>"Sample"}}
87992
+  (0.1ms) SAVEPOINT active_record_1
87993
+ SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
87994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87995
+ Redirected to http://test.host/
87996
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
87997
+  (0.5ms) rollback transaction
87998
+  (0.0ms) begin transaction
87999
+ ---------------------------------------------------------------
88000
+ CustomNoticesController::flash messages: test_0002_has an alert
88001
+ ---------------------------------------------------------------
88002
+ Processing by CustomNoticesController#update as HTML
88003
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
88004
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88005
+  (0.1ms) SAVEPOINT active_record_1
88006
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
88007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88008
+ Redirected to http://test.host/
88009
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88010
+  (0.5ms) rollback transaction
88011
+  (0.1ms) begin transaction
88012
+ --------------------------------------------------------------
88013
+ DocumentsController::base actions::create: test_0001_redirects
88014
+ --------------------------------------------------------------
88015
+ Processing by DocumentsController#create as HTML
88016
+ Parameters: {"document"=>{"name"=>"New document"}}
88017
+  (0.1ms) SAVEPOINT active_record_1
88018
+ SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
88019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88020
+ Redirected to http://test.host/documents
88021
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
88022
+  (0.5ms) rollback transaction
88023
+  (0.1ms) begin transaction
88024
+ -------------------------------------------------------------------
88025
+ DocumentsController::base actions::create: test_0002_display errors
88026
+ -------------------------------------------------------------------
88027
+ Processing by DocumentsController#create as HTML
88028
+ Parameters: {"document"=>{"name"=>""}}
88029
+  (0.1ms) SAVEPOINT active_record_1
88030
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88031
+ Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)
88032
+  (0.1ms) rollback transaction
88033
+  (0.1ms) begin transaction
88034
+ ---------------------------------------------------------------
88035
+ DocumentsController::base actions::destroy: test_0001_redirects
88036
+ ---------------------------------------------------------------
88037
+ Processing by DocumentsController#destroy as HTML
88038
+ Parameters: {"id"=>"100"}
88039
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88040
+  (0.1ms) SAVEPOINT active_record_1
88041
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
88042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88043
+ Redirected to http://test.host/documents
88044
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
88045
+  (0.4ms) rollback transaction
88046
+  (0.0ms) begin transaction
88047
+ ----------------------------------------------------------------------------------
88048
+ DocumentsController::base actions::destroy: test_0002_raise exception on not found
88049
+ ----------------------------------------------------------------------------------
88050
+ Processing by DocumentsController#destroy as HTML
88051
+ Parameters: {"id"=>"1"}
88052
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88053
+ Completed 404 Not Found in 1ms
88054
+  (0.1ms) rollback transaction
88055
+  (0.0ms) begin transaction
88056
+ --------------------------------------------------------------
88057
+ DocumentsController::base actions::edit: test_0001_render form
88058
+ --------------------------------------------------------------
88059
+ Processing by DocumentsController#edit as HTML
88060
+ Parameters: {"id"=>"100"}
88061
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88062
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
88063
+  (0.1ms) rollback transaction
88064
+  (0.0ms) begin transaction
88065
+ -------------------------------------------------------------------------------
88066
+ DocumentsController::base actions::edit: test_0002_raise exception on not found
88067
+ -------------------------------------------------------------------------------
88068
+ Processing by DocumentsController#edit as HTML
88069
+ Parameters: {"id"=>"1"}
88070
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88071
+ Completed 404 Not Found in 1ms
88072
+  (0.1ms) rollback transaction
88073
+  (0.0ms) begin transaction
88074
+ ---------------------------------------------------------------
88075
+ DocumentsController::base actions::index: test_0001_render list
88076
+ ---------------------------------------------------------------
88077
+ Processing by DocumentsController#index as HTML
88078
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
88079
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
88080
+ Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)
88081
+  (0.1ms) rollback transaction
88082
+  (0.0ms) begin transaction
88083
+ -------------------------------------------------------------
88084
+ DocumentsController::base actions::new: test_0001_render form
88085
+ -------------------------------------------------------------
88086
+ Processing by DocumentsController#new as HTML
88087
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
88088
+  (0.1ms) rollback transaction
88089
+  (0.1ms) begin transaction
88090
+ --------------------------------------------------------------
88091
+ DocumentsController::base actions::show: test_0001_render view
88092
+ --------------------------------------------------------------
88093
+ Processing by DocumentsController#show as HTML
88094
+ Parameters: {"id"=>"100"}
88095
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88096
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
88097
+  (0.1ms) rollback transaction
88098
+  (0.1ms) begin transaction
88099
+ -------------------------------------------------------------------------------
88100
+ DocumentsController::base actions::show: test_0002_raise exception on not found
88101
+ -------------------------------------------------------------------------------
88102
+ Processing by DocumentsController#show as HTML
88103
+ Parameters: {"id"=>"1"}
88104
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88105
+ Completed 404 Not Found in 1ms
88106
+  (0.1ms) rollback transaction
88107
+  (0.0ms) begin transaction
88108
+ --------------------------------------------------------------
88109
+ DocumentsController::base actions::update: test_0001_redirects
88110
+ --------------------------------------------------------------
88111
+ Processing by DocumentsController#update as HTML
88112
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
88113
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88114
+  (0.0ms) SAVEPOINT active_record_1
88115
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:28 UTC +00:00]]
88116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88117
+ Redirected to http://test.host/documents
88118
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88119
+  (0.4ms) rollback transaction
88120
+  (0.0ms) begin transaction
88121
+ -------------------------------------------------------------------
88122
+ DocumentsController::base actions::update: test_0002_display errors
88123
+ -------------------------------------------------------------------
88124
+ Processing by DocumentsController#update as HTML
88125
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88126
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88127
+  (0.0ms) SAVEPOINT active_record_1
88128
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88129
+ Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
88130
+  (0.1ms) rollback transaction
88131
+  (0.1ms) begin transaction
88132
+ ---------------------------------------------------------------------------------
88133
+ DocumentsController::base actions::update: test_0003_raise exception on not found
88134
+ ---------------------------------------------------------------------------------
88135
+ Processing by DocumentsController#update as HTML
88136
+ Parameters: {"id"=>"1"}
88137
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88138
+ Completed 404 Not Found in 1ms
88139
+  (0.1ms) rollback transaction
88140
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
88141
+  (0.1ms) begin transaction
88142
+ Fixture Delete (0.2ms) DELETE FROM "documents"
88143
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-08-06 17:43:52', '2013-08-06 17:43:52')
88144
+  (1.1ms) commit transaction
88145
+  (0.0ms) begin transaction
88146
+ ---------------------------------------------------------------
88147
+ AlternatesController::base actions::create: test_0001_redirects
88148
+ ---------------------------------------------------------------
88149
+ Processing by AlternatesController#create as HTML
88150
+ Parameters: {"document"=>{"name"=>"New document"}}
88151
+  (0.1ms) SAVEPOINT active_record_1
88152
+ SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88154
+ Redirected to http://test.host/documents
88155
+ Completed 302 Found in 52ms (ActiveRecord: 1.2ms)
88156
+  (0.4ms) rollback transaction
88157
+  (0.1ms) begin transaction
88158
+ --------------------------------------------------------------------
88159
+ AlternatesController::base actions::create: test_0002_display errors
88160
+ --------------------------------------------------------------------
88161
+ Processing by AlternatesController#create as HTML
88162
+ Parameters: {"document"=>{"name"=>""}}
88163
+  (0.1ms) SAVEPOINT active_record_1
88164
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
88165
+ Completed 200 OK in 18ms (Views: 12.2ms | ActiveRecord: 0.1ms)
88166
+  (0.1ms) rollback transaction
88167
+  (0.0ms) begin transaction
88168
+ ----------------------------------------------------------------
88169
+ AlternatesController::base actions::destroy: test_0001_redirects
88170
+ ----------------------------------------------------------------
88171
+ Processing by AlternatesController#destroy as HTML
88172
+ Parameters: {"id"=>"100"}
88173
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88174
+  (0.1ms) SAVEPOINT active_record_1
88175
+ SQL (0.4ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
88176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88177
+  (0.1ms) SAVEPOINT active_record_1
88178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88179
+ Redirected to http://test.host/documents
88180
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
88181
+  (0.4ms) rollback transaction
88182
+  (0.0ms) begin transaction
88183
+ -----------------------------------------------------------------------------------
88184
+ AlternatesController::base actions::destroy: test_0002_raise exception on not found
88185
+ -----------------------------------------------------------------------------------
88186
+ Processing by AlternatesController#destroy as HTML
88187
+ Parameters: {"id"=>"1"}
88188
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88189
+ Completed 404 Not Found in 1ms
88190
+  (0.1ms) rollback transaction
88191
+  (0.0ms) begin transaction
88192
+ ---------------------------------------------------------------
88193
+ AlternatesController::base actions::edit: test_0001_render form
88194
+ ---------------------------------------------------------------
88195
+ Processing by AlternatesController#edit as HTML
88196
+ Parameters: {"id"=>"100"}
88197
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88198
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
88199
+  (0.1ms) rollback transaction
88200
+  (0.0ms) begin transaction
88201
+ --------------------------------------------------------------------------------
88202
+ AlternatesController::base actions::edit: test_0002_raise exception on not found
88203
+ --------------------------------------------------------------------------------
88204
+ Processing by AlternatesController#edit as HTML
88205
+ Parameters: {"id"=>"1"}
88206
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88207
+ Completed 404 Not Found in 1ms
88208
+  (0.1ms) rollback transaction
88209
+  (0.0ms) begin transaction
88210
+ ----------------------------------------------------------------
88211
+ AlternatesController::base actions::index: test_0001_render list
88212
+ ----------------------------------------------------------------
88213
+ Processing by AlternatesController#index as HTML
88214
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
88215
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
88216
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
88217
+  (0.1ms) rollback transaction
88218
+  (0.0ms) begin transaction
88219
+ --------------------------------------------------------------
88220
+ AlternatesController::base actions::new: test_0001_render form
88221
+ --------------------------------------------------------------
88222
+ Processing by AlternatesController#new as HTML
88223
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
88224
+  (0.1ms) rollback transaction
88225
+  (0.0ms) begin transaction
88226
+ ---------------------------------------------------------------
88227
+ AlternatesController::base actions::show: test_0001_render view
88228
+ ---------------------------------------------------------------
88229
+ Processing by AlternatesController#show as HTML
88230
+ Parameters: {"id"=>"100"}
88231
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88232
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
88233
+  (0.1ms) rollback transaction
88234
+  (0.1ms) begin transaction
88235
+ --------------------------------------------------------------------------------
88236
+ AlternatesController::base actions::show: test_0002_raise exception on not found
88237
+ --------------------------------------------------------------------------------
88238
+ Processing by AlternatesController#show as HTML
88239
+ Parameters: {"id"=>"1"}
88240
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88241
+ Completed 404 Not Found in 1ms
88242
+  (0.1ms) rollback transaction
88243
+  (0.0ms) begin transaction
88244
+ ---------------------------------------------------------------
88245
+ AlternatesController::base actions::update: test_0001_redirects
88246
+ ---------------------------------------------------------------
88247
+ Processing by AlternatesController#update as HTML
88248
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
88249
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88250
+  (0.0ms) SAVEPOINT active_record_1
88251
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88253
+ Redirected to http://test.host/documents
88254
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
88255
+  (0.3ms) rollback transaction
88256
+  (0.1ms) begin transaction
88257
+ --------------------------------------------------------------------
88258
+ AlternatesController::base actions::update: test_0002_display errors
88259
+ --------------------------------------------------------------------
88260
+ Processing by AlternatesController#update as HTML
88261
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88262
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88263
+  (0.1ms) SAVEPOINT active_record_1
88264
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88265
+ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)
88266
+  (0.1ms) rollback transaction
88267
+  (0.0ms) begin transaction
88268
+ ----------------------------------------------------------------------------------
88269
+ AlternatesController::base actions::update: test_0003_raise exception on not found
88270
+ ----------------------------------------------------------------------------------
88271
+ Processing by AlternatesController#update as HTML
88272
+ Parameters: {"id"=>"1"}
88273
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88274
+ Completed 404 Not Found in 1ms
88275
+  (0.1ms) rollback transaction
88276
+  (0.0ms) begin transaction
88277
+ --------------------------------------------------
88278
+ BlocksController: test_0001_has one response block
88279
+ --------------------------------------------------
88280
+ Processing by BlocksController#create as HTML
88281
+ Parameters: {"document"=>{"name"=>"Sample"}}
88282
+  (0.1ms) SAVEPOINT active_record_1
88283
+ SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88285
+ Redirected to http://test.host/
88286
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
88287
+  (0.3ms) rollback transaction
88288
+  (0.0ms) begin transaction
88289
+ ----------------------------------------------------------------
88290
+ BlocksController: test_0002_has two response blocks with success
88291
+ ----------------------------------------------------------------
88292
+ Processing by BlocksController#update as HTML
88293
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
88294
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88295
+  (0.1ms) SAVEPOINT active_record_1
88296
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88298
+ Redirected to http://test.host/
88299
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88300
+  (0.5ms) rollback transaction
88301
+  (0.0ms) begin transaction
88302
+ ----------------------------------------------------------------
88303
+ BlocksController: test_0003_has two response blocks with failire
88304
+ ----------------------------------------------------------------
88305
+ Processing by BlocksController#update as HTML
88306
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88307
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88308
+  (0.1ms) SAVEPOINT active_record_1
88309
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88310
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)
88311
+  (0.1ms) rollback transaction
88312
+  (0.1ms) begin transaction
88313
+ ---------------------------------------------------------------
88314
+ CustomNoticesController::flash messages: test_0001_has a notice
88315
+ ---------------------------------------------------------------
88316
+ Processing by CustomNoticesController#create as HTML
88317
+ Parameters: {"document"=>{"name"=>"Sample"}}
88318
+  (0.1ms) SAVEPOINT active_record_1
88319
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88321
+ Redirected to http://test.host/
88322
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
88323
+  (0.5ms) rollback transaction
88324
+  (0.1ms) begin transaction
88325
+ ---------------------------------------------------------------
88326
+ CustomNoticesController::flash messages: test_0002_has an alert
88327
+ ---------------------------------------------------------------
88328
+ Processing by CustomNoticesController#update as HTML
88329
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
88330
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88331
+  (0.1ms) SAVEPOINT active_record_1
88332
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88334
+ Redirected to http://test.host/
88335
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88336
+  (0.3ms) rollback transaction
88337
+  (0.0ms) begin transaction
88338
+ --------------------------------------------------------------
88339
+ DocumentsController::base actions::create: test_0001_redirects
88340
+ --------------------------------------------------------------
88341
+ Processing by DocumentsController#create as HTML
88342
+ Parameters: {"document"=>{"name"=>"New document"}}
88343
+  (0.1ms) SAVEPOINT active_record_1
88344
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88346
+ Redirected to http://test.host/documents
88347
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88348
+  (0.4ms) rollback transaction
88349
+  (0.0ms) begin transaction
88350
+ -------------------------------------------------------------------
88351
+ DocumentsController::base actions::create: test_0002_display errors
88352
+ -------------------------------------------------------------------
88353
+ Processing by DocumentsController#create as HTML
88354
+ Parameters: {"document"=>{"name"=>""}}
88355
+  (0.1ms) SAVEPOINT active_record_1
88356
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88357
+ Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)
88358
+  (0.0ms) rollback transaction
88359
+  (0.0ms) begin transaction
88360
+ ---------------------------------------------------------------
88361
+ DocumentsController::base actions::destroy: test_0001_redirects
88362
+ ---------------------------------------------------------------
88363
+ Processing by DocumentsController#destroy as HTML
88364
+ Parameters: {"id"=>"100"}
88365
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88366
+  (0.0ms) SAVEPOINT active_record_1
88367
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
88368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88369
+ Redirected to http://test.host/documents
88370
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
88371
+  (0.5ms) rollback transaction
88372
+  (0.0ms) begin transaction
88373
+ ----------------------------------------------------------------------------------
88374
+ DocumentsController::base actions::destroy: test_0002_raise exception on not found
88375
+ ----------------------------------------------------------------------------------
88376
+ Processing by DocumentsController#destroy as HTML
88377
+ Parameters: {"id"=>"1"}
88378
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88379
+ Completed 404 Not Found in 1ms
88380
+  (0.1ms) rollback transaction
88381
+  (0.0ms) begin transaction
88382
+ --------------------------------------------------------------
88383
+ DocumentsController::base actions::edit: test_0001_render form
88384
+ --------------------------------------------------------------
88385
+ Processing by DocumentsController#edit as HTML
88386
+ Parameters: {"id"=>"100"}
88387
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88388
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
88389
+  (0.1ms) rollback transaction
88390
+  (0.0ms) begin transaction
88391
+ -------------------------------------------------------------------------------
88392
+ DocumentsController::base actions::edit: test_0002_raise exception on not found
88393
+ -------------------------------------------------------------------------------
88394
+ Processing by DocumentsController#edit as HTML
88395
+ Parameters: {"id"=>"1"}
88396
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88397
+ Completed 404 Not Found in 1ms
88398
+  (0.1ms) rollback transaction
88399
+  (0.0ms) begin transaction
88400
+ ---------------------------------------------------------------
88401
+ DocumentsController::base actions::index: test_0001_render list
88402
+ ---------------------------------------------------------------
88403
+ Processing by DocumentsController#index as HTML
88404
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
88405
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
88406
+ Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)
88407
+  (0.1ms) rollback transaction
88408
+  (0.0ms) begin transaction
88409
+ -------------------------------------------------------------
88410
+ DocumentsController::base actions::new: test_0001_render form
88411
+ -------------------------------------------------------------
88412
+ Processing by DocumentsController#new as HTML
88413
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
88414
+  (0.1ms) rollback transaction
88415
+  (0.0ms) begin transaction
88416
+ --------------------------------------------------------------
88417
+ DocumentsController::base actions::show: test_0001_render view
88418
+ --------------------------------------------------------------
88419
+ Processing by DocumentsController#show as HTML
88420
+ Parameters: {"id"=>"100"}
88421
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88422
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
88423
+  (0.1ms) rollback transaction
88424
+  (0.0ms) begin transaction
88425
+ -------------------------------------------------------------------------------
88426
+ DocumentsController::base actions::show: test_0002_raise exception on not found
88427
+ -------------------------------------------------------------------------------
88428
+ Processing by DocumentsController#show as HTML
88429
+ Parameters: {"id"=>"1"}
88430
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88431
+ Completed 404 Not Found in 1ms
88432
+  (0.1ms) rollback transaction
88433
+  (0.0ms) begin transaction
88434
+ --------------------------------------------------------------
88435
+ DocumentsController::base actions::update: test_0001_redirects
88436
+ --------------------------------------------------------------
88437
+ Processing by DocumentsController#update as HTML
88438
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
88439
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88440
+  (0.0ms) SAVEPOINT active_record_1
88441
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:43:52 UTC +00:00]]
88442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88443
+ Redirected to http://test.host/documents
88444
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88445
+  (0.4ms) rollback transaction
88446
+  (0.0ms) begin transaction
88447
+ -------------------------------------------------------------------
88448
+ DocumentsController::base actions::update: test_0002_display errors
88449
+ -------------------------------------------------------------------
88450
+ Processing by DocumentsController#update as HTML
88451
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88452
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88453
+  (0.0ms) SAVEPOINT active_record_1
88454
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88455
+ Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
88456
+  (0.1ms) rollback transaction
88457
+  (0.1ms) begin transaction
88458
+ ---------------------------------------------------------------------------------
88459
+ DocumentsController::base actions::update: test_0003_raise exception on not found
88460
+ ---------------------------------------------------------------------------------
88461
+ Processing by DocumentsController#update as HTML
88462
+ Parameters: {"id"=>"1"}
88463
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88464
+ Completed 404 Not Found in 1ms
88465
+  (0.1ms) rollback transaction
88466
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
88467
+  (0.1ms) begin transaction
88468
+ Fixture Delete (0.3ms) DELETE FROM "documents"
88469
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-08-06 17:44:10', '2013-08-06 17:44:10')
88470
+  (1.0ms) commit transaction
88471
+  (0.0ms) begin transaction
88472
+ ---------------------------------------------------------------
88473
+ AlternatesController::base actions::create: test_0001_redirects
88474
+ ---------------------------------------------------------------
88475
+ Processing by AlternatesController#create as HTML
88476
+ Parameters: {"document"=>{"name"=>"New document"}}
88477
+  (0.1ms) SAVEPOINT active_record_1
88478
+ SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88480
+ Redirected to http://test.host/documents
88481
+ Completed 302 Found in 49ms (ActiveRecord: 1.2ms)
88482
+  (0.5ms) rollback transaction
88483
+  (0.1ms) begin transaction
88484
+ --------------------------------------------------------------------
88485
+ AlternatesController::base actions::create: test_0002_display errors
88486
+ --------------------------------------------------------------------
88487
+ Processing by AlternatesController#create as HTML
88488
+ Parameters: {"document"=>{"name"=>""}}
88489
+  (0.1ms) SAVEPOINT active_record_1
88490
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
88491
+ Completed 200 OK in 18ms (Views: 12.2ms | ActiveRecord: 0.1ms)
88492
+  (0.1ms) rollback transaction
88493
+  (0.0ms) begin transaction
88494
+ ----------------------------------------------------------------
88495
+ AlternatesController::base actions::destroy: test_0001_redirects
88496
+ ----------------------------------------------------------------
88497
+ Processing by AlternatesController#destroy as HTML
88498
+ Parameters: {"id"=>"100"}
88499
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88500
+  (0.1ms) SAVEPOINT active_record_1
88501
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
88502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88503
+  (0.0ms) SAVEPOINT active_record_1
88504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88505
+ Redirected to http://test.host/documents
88506
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
88507
+  (0.5ms) rollback transaction
88508
+  (0.1ms) begin transaction
88509
+ -----------------------------------------------------------------------------------
88510
+ AlternatesController::base actions::destroy: test_0002_raise exception on not found
88511
+ -----------------------------------------------------------------------------------
88512
+ Processing by AlternatesController#destroy as HTML
88513
+ Parameters: {"id"=>"1"}
88514
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88515
+ Completed 404 Not Found in 1ms
88516
+  (0.1ms) rollback transaction
88517
+  (0.0ms) begin transaction
88518
+ ---------------------------------------------------------------
88519
+ AlternatesController::base actions::edit: test_0001_render form
88520
+ ---------------------------------------------------------------
88521
+ Processing by AlternatesController#edit as HTML
88522
+ Parameters: {"id"=>"100"}
88523
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88524
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
88525
+  (0.1ms) rollback transaction
88526
+  (0.1ms) begin transaction
88527
+ --------------------------------------------------------------------------------
88528
+ AlternatesController::base actions::edit: test_0002_raise exception on not found
88529
+ --------------------------------------------------------------------------------
88530
+ Processing by AlternatesController#edit as HTML
88531
+ Parameters: {"id"=>"1"}
88532
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88533
+ Completed 404 Not Found in 1ms
88534
+  (0.1ms) rollback transaction
88535
+  (0.1ms) begin transaction
88536
+ ----------------------------------------------------------------
88537
+ AlternatesController::base actions::index: test_0001_render list
88538
+ ----------------------------------------------------------------
88539
+ Processing by AlternatesController#index as HTML
88540
+  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
88541
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
88542
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
88543
+  (0.1ms) rollback transaction
88544
+  (0.0ms) begin transaction
88545
+ --------------------------------------------------------------
88546
+ AlternatesController::base actions::new: test_0001_render form
88547
+ --------------------------------------------------------------
88548
+ Processing by AlternatesController#new as HTML
88549
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
88550
+  (0.1ms) rollback transaction
88551
+  (0.0ms) begin transaction
88552
+ ---------------------------------------------------------------
88553
+ AlternatesController::base actions::show: test_0001_render view
88554
+ ---------------------------------------------------------------
88555
+ Processing by AlternatesController#show as HTML
88556
+ Parameters: {"id"=>"100"}
88557
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88558
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
88559
+  (0.1ms) rollback transaction
88560
+  (0.1ms) begin transaction
88561
+ --------------------------------------------------------------------------------
88562
+ AlternatesController::base actions::show: test_0002_raise exception on not found
88563
+ --------------------------------------------------------------------------------
88564
+ Processing by AlternatesController#show as HTML
88565
+ Parameters: {"id"=>"1"}
88566
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88567
+ Completed 404 Not Found in 1ms
88568
+  (0.1ms) rollback transaction
88569
+  (0.0ms) begin transaction
88570
+ ---------------------------------------------------------------
88571
+ AlternatesController::base actions::update: test_0001_redirects
88572
+ ---------------------------------------------------------------
88573
+ Processing by AlternatesController#update as HTML
88574
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
88575
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88576
+  (0.1ms) SAVEPOINT active_record_1
88577
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88579
+ Redirected to http://test.host/documents
88580
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
88581
+  (0.4ms) rollback transaction
88582
+  (0.1ms) begin transaction
88583
+ --------------------------------------------------------------------
88584
+ AlternatesController::base actions::update: test_0002_display errors
88585
+ --------------------------------------------------------------------
88586
+ Processing by AlternatesController#update as HTML
88587
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88588
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88589
+  (0.1ms) SAVEPOINT active_record_1
88590
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88591
+ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)
88592
+  (0.1ms) rollback transaction
88593
+  (0.0ms) begin transaction
88594
+ ----------------------------------------------------------------------------------
88595
+ AlternatesController::base actions::update: test_0003_raise exception on not found
88596
+ ----------------------------------------------------------------------------------
88597
+ Processing by AlternatesController#update as HTML
88598
+ Parameters: {"id"=>"1"}
88599
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88600
+ Completed 404 Not Found in 1ms
88601
+  (0.1ms) rollback transaction
88602
+  (0.0ms) begin transaction
88603
+ --------------------------------------------------
88604
+ BlocksController: test_0001_has one response block
88605
+ --------------------------------------------------
88606
+ Processing by BlocksController#create as HTML
88607
+ Parameters: {"document"=>{"name"=>"Sample"}}
88608
+  (0.1ms) SAVEPOINT active_record_1
88609
+ SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88611
+ Redirected to http://test.host/
88612
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
88613
+  (0.4ms) rollback transaction
88614
+  (0.1ms) begin transaction
88615
+ ----------------------------------------------------------------
88616
+ BlocksController: test_0002_has two response blocks with success
88617
+ ----------------------------------------------------------------
88618
+ Processing by BlocksController#update as HTML
88619
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
88620
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88621
+  (0.1ms) SAVEPOINT active_record_1
88622
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88624
+ Redirected to http://test.host/
88625
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88626
+  (0.4ms) rollback transaction
88627
+  (0.0ms) begin transaction
88628
+ ----------------------------------------------------------------
88629
+ BlocksController: test_0003_has two response blocks with failire
88630
+ ----------------------------------------------------------------
88631
+ Processing by BlocksController#update as HTML
88632
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88633
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88634
+  (0.1ms) SAVEPOINT active_record_1
88635
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88636
+ Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms)
88637
+  (0.1ms) rollback transaction
88638
+  (0.0ms) begin transaction
88639
+ ---------------------------------------------------------------
88640
+ CustomNoticesController::flash messages: test_0001_has a notice
88641
+ ---------------------------------------------------------------
88642
+ Processing by CustomNoticesController#create as HTML
88643
+ Parameters: {"document"=>{"name"=>"Sample"}}
88644
+  (0.1ms) SAVEPOINT active_record_1
88645
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88647
+ Redirected to http://test.host/
88648
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88649
+  (0.3ms) rollback transaction
88650
+  (0.0ms) begin transaction
88651
+ ---------------------------------------------------------------
88652
+ CustomNoticesController::flash messages: test_0002_has an alert
88653
+ ---------------------------------------------------------------
88654
+ Processing by CustomNoticesController#update as HTML
88655
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
88656
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88657
+  (0.1ms) SAVEPOINT active_record_1
88658
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88660
+ Redirected to http://test.host/
88661
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88662
+  (0.5ms) rollback transaction
88663
+  (0.0ms) begin transaction
88664
+ --------------------------------------------------------------
88665
+ DocumentsController::base actions::create: test_0001_redirects
88666
+ --------------------------------------------------------------
88667
+ Processing by DocumentsController#create as HTML
88668
+ Parameters: {"document"=>{"name"=>"New document"}}
88669
+  (0.1ms) SAVEPOINT active_record_1
88670
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88672
+ Redirected to http://test.host/documents
88673
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88674
+  (0.5ms) rollback transaction
88675
+  (0.1ms) begin transaction
88676
+ -------------------------------------------------------------------
88677
+ DocumentsController::base actions::create: test_0002_display errors
88678
+ -------------------------------------------------------------------
88679
+ Processing by DocumentsController#create as HTML
88680
+ Parameters: {"document"=>{"name"=>""}}
88681
+  (0.1ms) SAVEPOINT active_record_1
88682
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88683
+ Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)
88684
+  (0.1ms) rollback transaction
88685
+  (0.0ms) begin transaction
88686
+ ---------------------------------------------------------------
88687
+ DocumentsController::base actions::destroy: test_0001_redirects
88688
+ ---------------------------------------------------------------
88689
+ Processing by DocumentsController#destroy as HTML
88690
+ Parameters: {"id"=>"100"}
88691
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88692
+  (0.1ms) SAVEPOINT active_record_1
88693
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
88694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88695
+ Redirected to http://test.host/documents
88696
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
88697
+  (0.4ms) rollback transaction
88698
+  (0.1ms) begin transaction
88699
+ ----------------------------------------------------------------------------------
88700
+ DocumentsController::base actions::destroy: test_0002_raise exception on not found
88701
+ ----------------------------------------------------------------------------------
88702
+ Processing by DocumentsController#destroy as HTML
88703
+ Parameters: {"id"=>"1"}
88704
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88705
+ Completed 404 Not Found in 1ms
88706
+  (0.1ms) rollback transaction
88707
+  (0.0ms) begin transaction
88708
+ --------------------------------------------------------------
88709
+ DocumentsController::base actions::edit: test_0001_render form
88710
+ --------------------------------------------------------------
88711
+ Processing by DocumentsController#edit as HTML
88712
+ Parameters: {"id"=>"100"}
88713
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88714
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
88715
+  (0.1ms) rollback transaction
88716
+  (0.0ms) begin transaction
88717
+ -------------------------------------------------------------------------------
88718
+ DocumentsController::base actions::edit: test_0002_raise exception on not found
88719
+ -------------------------------------------------------------------------------
88720
+ Processing by DocumentsController#edit as HTML
88721
+ Parameters: {"id"=>"1"}
88722
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88723
+ Completed 404 Not Found in 1ms
88724
+  (0.1ms) rollback transaction
88725
+  (0.0ms) begin transaction
88726
+ ---------------------------------------------------------------
88727
+ DocumentsController::base actions::index: test_0001_render list
88728
+ ---------------------------------------------------------------
88729
+ Processing by DocumentsController#index as HTML
88730
+  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
88731
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
88732
+ Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)
88733
+  (0.1ms) rollback transaction
88734
+  (0.0ms) begin transaction
88735
+ -------------------------------------------------------------
88736
+ DocumentsController::base actions::new: test_0001_render form
88737
+ -------------------------------------------------------------
88738
+ Processing by DocumentsController#new as HTML
88739
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
88740
+  (0.1ms) rollback transaction
88741
+  (0.1ms) begin transaction
88742
+ --------------------------------------------------------------
88743
+ DocumentsController::base actions::show: test_0001_render view
88744
+ --------------------------------------------------------------
88745
+ Processing by DocumentsController#show as HTML
88746
+ Parameters: {"id"=>"100"}
88747
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88748
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
88749
+  (0.1ms) rollback transaction
88750
+  (0.0ms) begin transaction
88751
+ -------------------------------------------------------------------------------
88752
+ DocumentsController::base actions::show: test_0002_raise exception on not found
88753
+ -------------------------------------------------------------------------------
88754
+ Processing by DocumentsController#show as HTML
88755
+ Parameters: {"id"=>"1"}
88756
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88757
+ Completed 404 Not Found in 1ms
88758
+  (0.1ms) rollback transaction
88759
+  (0.0ms) begin transaction
88760
+ --------------------------------------------------------------
88761
+ DocumentsController::base actions::update: test_0001_redirects
88762
+ --------------------------------------------------------------
88763
+ Processing by DocumentsController#update as HTML
88764
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
88765
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88766
+  (0.1ms) SAVEPOINT active_record_1
88767
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:44:10 UTC +00:00]]
88768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88769
+ Redirected to http://test.host/documents
88770
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88771
+  (0.4ms) rollback transaction
88772
+  (0.0ms) begin transaction
88773
+ -------------------------------------------------------------------
88774
+ DocumentsController::base actions::update: test_0002_display errors
88775
+ -------------------------------------------------------------------
88776
+ Processing by DocumentsController#update as HTML
88777
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88778
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88779
+  (0.1ms) SAVEPOINT active_record_1
88780
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88781
+ Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
88782
+  (0.1ms) rollback transaction
88783
+  (0.0ms) begin transaction
88784
+ ---------------------------------------------------------------------------------
88785
+ DocumentsController::base actions::update: test_0003_raise exception on not found
88786
+ ---------------------------------------------------------------------------------
88787
+ Processing by DocumentsController#update as HTML
88788
+ Parameters: {"id"=>"1"}
88789
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88790
+ Completed 404 Not Found in 1ms
88791
+  (0.1ms) rollback transaction
88792
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
88793
+  (0.1ms) begin transaction
88794
+ Fixture Delete (0.2ms) DELETE FROM "documents"
88795
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-08-06 17:45:52', '2013-08-06 17:45:52')
88796
+  (1.0ms) commit transaction
88797
+  (0.1ms) begin transaction
88798
+ ---------------------------------------------------------------
88799
+ AlternatesController::base actions::create: test_0001_redirects
88800
+ ---------------------------------------------------------------
88801
+ Processing by AlternatesController#create as HTML
88802
+ Parameters: {"document"=>{"name"=>"New document"}}
88803
+  (0.1ms) SAVEPOINT active_record_1
88804
+ SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00]]
88805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88806
+ Redirected to http://test.host/documents
88807
+ Completed 302 Found in 51ms (ActiveRecord: 1.3ms)
88808
+  (0.5ms) rollback transaction
88809
+  (0.1ms) begin transaction
88810
+ --------------------------------------------------------------------
88811
+ AlternatesController::base actions::create: test_0002_display errors
88812
+ --------------------------------------------------------------------
88813
+ Processing by AlternatesController#create as HTML
88814
+ Parameters: {"document"=>{"name"=>""}}
88815
+  (0.0ms) SAVEPOINT active_record_1
88816
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88817
+ Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)
88818
+  (0.1ms) rollback transaction
88819
+  (0.0ms) begin transaction
88820
+ ----------------------------------------------------------------
88821
+ AlternatesController::base actions::destroy: test_0001_redirects
88822
+ ----------------------------------------------------------------
88823
+ Processing by AlternatesController#destroy as HTML
88824
+ Parameters: {"id"=>"100"}
88825
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88826
+  (0.1ms) SAVEPOINT active_record_1
88827
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
88828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88829
+  (0.0ms) SAVEPOINT active_record_1
88830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88831
+ Redirected to http://test.host/documents
88832
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
88833
+  (0.5ms) rollback transaction
88834
+  (0.0ms) begin transaction
88835
+ -----------------------------------------------------------------------------------
88836
+ AlternatesController::base actions::destroy: test_0002_raise exception on not found
88837
+ -----------------------------------------------------------------------------------
88838
+ Processing by AlternatesController#destroy as HTML
88839
+ Parameters: {"id"=>"1"}
88840
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88841
+ Completed 404 Not Found in 1ms
88842
+  (0.1ms) rollback transaction
88843
+  (0.0ms) begin transaction
88844
+ ---------------------------------------------------------------
88845
+ AlternatesController::base actions::edit: test_0001_render form
88846
+ ---------------------------------------------------------------
88847
+ Processing by AlternatesController#edit as HTML
88848
+ Parameters: {"id"=>"100"}
88849
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88850
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
88851
+  (0.1ms) rollback transaction
88852
+  (0.0ms) begin transaction
88853
+ --------------------------------------------------------------------------------
88854
+ AlternatesController::base actions::edit: test_0002_raise exception on not found
88855
+ --------------------------------------------------------------------------------
88856
+ Processing by AlternatesController#edit as HTML
88857
+ Parameters: {"id"=>"1"}
88858
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88859
+ Completed 404 Not Found in 1ms
88860
+  (0.1ms) rollback transaction
88861
+  (0.0ms) begin transaction
88862
+ ----------------------------------------------------------------
88863
+ AlternatesController::base actions::index: test_0001_render list
88864
+ ----------------------------------------------------------------
88865
+ Processing by AlternatesController#index as HTML
88866
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
88867
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
88868
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
88869
+  (0.1ms) rollback transaction
88870
+  (0.0ms) begin transaction
88871
+ --------------------------------------------------------------
88872
+ AlternatesController::base actions::new: test_0001_render form
88873
+ --------------------------------------------------------------
88874
+ Processing by AlternatesController#new as HTML
88875
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
88876
+  (0.1ms) rollback transaction
88877
+  (0.0ms) begin transaction
88878
+ ---------------------------------------------------------------
88879
+ AlternatesController::base actions::show: test_0001_render view
88880
+ ---------------------------------------------------------------
88881
+ Processing by AlternatesController#show as HTML
88882
+ Parameters: {"id"=>"100"}
88883
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88884
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
88885
+  (0.1ms) rollback transaction
88886
+  (0.0ms) begin transaction
88887
+ --------------------------------------------------------------------------------
88888
+ AlternatesController::base actions::show: test_0002_raise exception on not found
88889
+ --------------------------------------------------------------------------------
88890
+ Processing by AlternatesController#show as HTML
88891
+ Parameters: {"id"=>"1"}
88892
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88893
+ Completed 404 Not Found in 1ms
88894
+  (0.1ms) rollback transaction
88895
+  (0.0ms) begin transaction
88896
+ ---------------------------------------------------------------
88897
+ AlternatesController::base actions::update: test_0001_redirects
88898
+ ---------------------------------------------------------------
88899
+ Processing by AlternatesController#update as HTML
88900
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
88901
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88902
+  (0.1ms) SAVEPOINT active_record_1
88903
+ SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00]]
88904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88905
+ Redirected to http://test.host/documents
88906
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
88907
+  (0.4ms) rollback transaction
88908
+  (0.1ms) begin transaction
88909
+ --------------------------------------------------------------------
88910
+ AlternatesController::base actions::update: test_0002_display errors
88911
+ --------------------------------------------------------------------
88912
+ Processing by AlternatesController#update as HTML
88913
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88914
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88915
+  (0.1ms) SAVEPOINT active_record_1
88916
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88917
+ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)
88918
+  (0.1ms) rollback transaction
88919
+  (0.1ms) begin transaction
88920
+ ----------------------------------------------------------------------------------
88921
+ AlternatesController::base actions::update: test_0003_raise exception on not found
88922
+ ----------------------------------------------------------------------------------
88923
+ Processing by AlternatesController#update as HTML
88924
+ Parameters: {"id"=>"1"}
88925
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
88926
+ Completed 404 Not Found in 1ms
88927
+  (0.1ms) rollback transaction
88928
+  (0.0ms) begin transaction
88929
+ --------------------------------------------------
88930
+ BlocksController: test_0001_has one response block
88931
+ --------------------------------------------------
88932
+ Processing by BlocksController#create as HTML
88933
+ Parameters: {"document"=>{"name"=>"Sample"}}
88934
+  (0.1ms) SAVEPOINT active_record_1
88935
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00]]
88936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88937
+ Redirected to http://test.host/
88938
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88939
+  (0.4ms) rollback transaction
88940
+  (0.0ms) begin transaction
88941
+ ----------------------------------------------------------------
88942
+ BlocksController: test_0002_has two response blocks with success
88943
+ ----------------------------------------------------------------
88944
+ Processing by BlocksController#update as HTML
88945
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
88946
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88947
+  (0.1ms) SAVEPOINT active_record_1
88948
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00]]
88949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88950
+ Redirected to http://test.host/
88951
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88952
+  (0.5ms) rollback transaction
88953
+  (0.1ms) begin transaction
88954
+ ----------------------------------------------------------------
88955
+ BlocksController: test_0003_has two response blocks with failire
88956
+ ----------------------------------------------------------------
88957
+ Processing by BlocksController#update as HTML
88958
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
88959
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88960
+  (0.1ms) SAVEPOINT active_record_1
88961
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88962
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)
88963
+  (0.1ms) rollback transaction
88964
+  (0.0ms) begin transaction
88965
+ ---------------------------------------------------------------
88966
+ CustomNoticesController::flash messages: test_0001_has a notice
88967
+ ---------------------------------------------------------------
88968
+ Processing by CustomNoticesController#create as HTML
88969
+ Parameters: {"document"=>{"name"=>"Sample"}}
88970
+  (0.1ms) SAVEPOINT active_record_1
88971
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00]]
88972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88973
+ Redirected to http://test.host/
88974
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88975
+  (0.5ms) rollback transaction
88976
+  (0.0ms) begin transaction
88977
+ ---------------------------------------------------------------
88978
+ CustomNoticesController::flash messages: test_0002_has an alert
88979
+ ---------------------------------------------------------------
88980
+ Processing by CustomNoticesController#update as HTML
88981
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
88982
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
88983
+  (0.1ms) SAVEPOINT active_record_1
88984
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00]]
88985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88986
+ Redirected to http://test.host/
88987
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
88988
+  (0.5ms) rollback transaction
88989
+  (0.1ms) begin transaction
88990
+ --------------------------------------------------------------
88991
+ DocumentsController::base actions::create: test_0001_redirects
88992
+ --------------------------------------------------------------
88993
+ Processing by DocumentsController#create as HTML
88994
+ Parameters: {"document"=>{"name"=>"New document"}}
88995
+  (0.1ms) SAVEPOINT active_record_1
88996
+ SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:45:52 UTC +00:00]]
88997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88998
+ Redirected to http://test.host/documents
88999
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
89000
+  (0.4ms) rollback transaction
89001
+  (0.1ms) begin transaction
89002
+ -------------------------------------------------------------------
89003
+ DocumentsController::base actions::create: test_0002_display errors
89004
+ -------------------------------------------------------------------
89005
+ Processing by DocumentsController#create as HTML
89006
+ Parameters: {"document"=>{"name"=>""}}
89007
+  (0.1ms) SAVEPOINT active_record_1
89008
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89009
+ Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)
89010
+  (0.0ms) rollback transaction
89011
+  (0.0ms) begin transaction
89012
+ ---------------------------------------------------------------
89013
+ DocumentsController::base actions::destroy: test_0001_redirects
89014
+ ---------------------------------------------------------------
89015
+ Processing by DocumentsController#destroy as HTML
89016
+ Parameters: {"id"=>"100"}
89017
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89018
+  (0.1ms) SAVEPOINT active_record_1
89019
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
89020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89021
+ Redirected to http://test.host/documents
89022
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
89023
+  (0.4ms) rollback transaction
89024
+  (0.1ms) begin transaction
89025
+ ----------------------------------------------------------------------------------
89026
+ DocumentsController::base actions::destroy: test_0002_raise exception on not found
89027
+ ----------------------------------------------------------------------------------
89028
+ Processing by DocumentsController#destroy as HTML
89029
+ Parameters: {"id"=>"1"}
89030
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89031
+ Completed 404 Not Found in 1ms
89032
+  (0.1ms) rollback transaction
89033
+  (0.0ms) begin transaction
89034
+ --------------------------------------------------------------
89035
+ DocumentsController::base actions::edit: test_0001_render form
89036
+ --------------------------------------------------------------
89037
+ Processing by DocumentsController#edit as HTML
89038
+ Parameters: {"id"=>"100"}
89039
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89040
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
89041
+  (0.1ms) rollback transaction
89042
+  (0.0ms) begin transaction
89043
+ -------------------------------------------------------------------------------
89044
+ DocumentsController::base actions::edit: test_0002_raise exception on not found
89045
+ -------------------------------------------------------------------------------
89046
+ Processing by DocumentsController#edit as HTML
89047
+ Parameters: {"id"=>"1"}
89048
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89049
+ Completed 404 Not Found in 1ms
89050
+  (0.1ms) rollback transaction
89051
+  (0.0ms) begin transaction
89052
+ ---------------------------------------------------------------
89053
+ DocumentsController::base actions::index: test_0001_render list
89054
+ ---------------------------------------------------------------
89055
+ Processing by DocumentsController#index as HTML
89056
+  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
89057
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
89058
+ Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)
89059
+  (0.1ms) rollback transaction
89060
+  (0.1ms) begin transaction
89061
+ -------------------------------------------------------------
89062
+ DocumentsController::base actions::new: test_0001_render form
89063
+ -------------------------------------------------------------
89064
+ Processing by DocumentsController#new as HTML
89065
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
89066
+  (0.1ms) rollback transaction
89067
+  (0.0ms) begin transaction
89068
+ --------------------------------------------------------------
89069
+ DocumentsController::base actions::show: test_0001_render view
89070
+ --------------------------------------------------------------
89071
+ Processing by DocumentsController#show as HTML
89072
+ Parameters: {"id"=>"100"}
89073
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89074
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
89075
+  (0.1ms) rollback transaction
89076
+  (0.1ms) begin transaction
89077
+ -------------------------------------------------------------------------------
89078
+ DocumentsController::base actions::show: test_0002_raise exception on not found
89079
+ -------------------------------------------------------------------------------
89080
+ Processing by DocumentsController#show as HTML
89081
+ Parameters: {"id"=>"1"}
89082
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89083
+ Completed 404 Not Found in 1ms
89084
+  (0.1ms) rollback transaction
89085
+  (0.1ms) begin transaction
89086
+ --------------------------------------------------------------
89087
+ DocumentsController::base actions::update: test_0001_redirects
89088
+ --------------------------------------------------------------
89089
+ Processing by DocumentsController#update as HTML
89090
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
89091
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89092
+  (0.1ms) SAVEPOINT active_record_1
89093
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:45:53 UTC +00:00]]
89094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89095
+ Redirected to http://test.host/documents
89096
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
89097
+  (0.4ms) rollback transaction
89098
+  (0.0ms) begin transaction
89099
+ -------------------------------------------------------------------
89100
+ DocumentsController::base actions::update: test_0002_display errors
89101
+ -------------------------------------------------------------------
89102
+ Processing by DocumentsController#update as HTML
89103
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
89104
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89105
+  (0.0ms) SAVEPOINT active_record_1
89106
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89107
+ Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)
89108
+  (0.1ms) rollback transaction
89109
+  (0.0ms) begin transaction
89110
+ ---------------------------------------------------------------------------------
89111
+ DocumentsController::base actions::update: test_0003_raise exception on not found
89112
+ ---------------------------------------------------------------------------------
89113
+ Processing by DocumentsController#update as HTML
89114
+ Parameters: {"id"=>"1"}
89115
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89116
+ Completed 404 Not Found in 1ms
89117
+  (0.1ms) rollback transaction
89118
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
89119
+  (0.1ms) begin transaction
89120
+ Fixture Delete (0.2ms) DELETE FROM "documents"
89121
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-08-06 17:46:13', '2013-08-06 17:46:13')
89122
+  (1.0ms) commit transaction
89123
+  (0.0ms) begin transaction
89124
+ ---------------------------------------------------------------
89125
+ AlternatesController::base actions::create: test_0001_redirects
89126
+ ---------------------------------------------------------------
89127
+ Processing by AlternatesController#create as HTML
89128
+ Parameters: {"document"=>{"name"=>"New document"}}
89129
+  (0.1ms) SAVEPOINT active_record_1
89130
+ SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89132
+ Redirected to http://test.host/documents
89133
+ Completed 302 Found in 51ms (ActiveRecord: 1.2ms)
89134
+  (0.4ms) rollback transaction
89135
+  (0.1ms) begin transaction
89136
+ --------------------------------------------------------------------
89137
+ AlternatesController::base actions::create: test_0002_display errors
89138
+ --------------------------------------------------------------------
89139
+ Processing by AlternatesController#create as HTML
89140
+ Parameters: {"document"=>{"name"=>""}}
89141
+  (0.1ms) SAVEPOINT active_record_1
89142
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89143
+ Completed 200 OK in 18ms (Views: 12.5ms | ActiveRecord: 0.1ms)
89144
+  (0.1ms) rollback transaction
89145
+  (0.0ms) begin transaction
89146
+ ----------------------------------------------------------------
89147
+ AlternatesController::base actions::destroy: test_0001_redirects
89148
+ ----------------------------------------------------------------
89149
+ Processing by AlternatesController#destroy as HTML
89150
+ Parameters: {"id"=>"100"}
89151
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89152
+  (0.1ms) SAVEPOINT active_record_1
89153
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
89154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89155
+  (0.0ms) SAVEPOINT active_record_1
89156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89157
+ Redirected to http://test.host/documents
89158
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
89159
+  (0.5ms) rollback transaction
89160
+  (0.0ms) begin transaction
89161
+ -----------------------------------------------------------------------------------
89162
+ AlternatesController::base actions::destroy: test_0002_raise exception on not found
89163
+ -----------------------------------------------------------------------------------
89164
+ Processing by AlternatesController#destroy as HTML
89165
+ Parameters: {"id"=>"1"}
89166
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89167
+ Completed 404 Not Found in 1ms
89168
+  (0.1ms) rollback transaction
89169
+  (0.1ms) begin transaction
89170
+ ---------------------------------------------------------------
89171
+ AlternatesController::base actions::edit: test_0001_render form
89172
+ ---------------------------------------------------------------
89173
+ Processing by AlternatesController#edit as HTML
89174
+ Parameters: {"id"=>"100"}
89175
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89176
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
89177
+  (0.1ms) rollback transaction
89178
+  (0.1ms) begin transaction
89179
+ --------------------------------------------------------------------------------
89180
+ AlternatesController::base actions::edit: test_0002_raise exception on not found
89181
+ --------------------------------------------------------------------------------
89182
+ Processing by AlternatesController#edit as HTML
89183
+ Parameters: {"id"=>"1"}
89184
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89185
+ Completed 404 Not Found in 1ms
89186
+  (0.1ms) rollback transaction
89187
+  (0.0ms) begin transaction
89188
+ ----------------------------------------------------------------
89189
+ AlternatesController::base actions::index: test_0001_render list
89190
+ ----------------------------------------------------------------
89191
+ Processing by AlternatesController#index as HTML
89192
+  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
89193
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
89194
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
89195
+  (0.1ms) rollback transaction
89196
+  (0.0ms) begin transaction
89197
+ --------------------------------------------------------------
89198
+ AlternatesController::base actions::new: test_0001_render form
89199
+ --------------------------------------------------------------
89200
+ Processing by AlternatesController#new as HTML
89201
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
89202
+  (0.1ms) rollback transaction
89203
+  (0.0ms) begin transaction
89204
+ ---------------------------------------------------------------
89205
+ AlternatesController::base actions::show: test_0001_render view
89206
+ ---------------------------------------------------------------
89207
+ Processing by AlternatesController#show as HTML
89208
+ Parameters: {"id"=>"100"}
89209
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89210
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
89211
+  (0.1ms) rollback transaction
89212
+  (0.0ms) begin transaction
89213
+ --------------------------------------------------------------------------------
89214
+ AlternatesController::base actions::show: test_0002_raise exception on not found
89215
+ --------------------------------------------------------------------------------
89216
+ Processing by AlternatesController#show as HTML
89217
+ Parameters: {"id"=>"1"}
89218
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89219
+ Completed 404 Not Found in 1ms
89220
+  (0.1ms) rollback transaction
89221
+  (0.0ms) begin transaction
89222
+ ---------------------------------------------------------------
89223
+ AlternatesController::base actions::update: test_0001_redirects
89224
+ ---------------------------------------------------------------
89225
+ Processing by AlternatesController#update as HTML
89226
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
89227
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89228
+  (0.1ms) SAVEPOINT active_record_1
89229
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89231
+ Redirected to http://test.host/documents
89232
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
89233
+  (0.5ms) rollback transaction
89234
+  (0.0ms) begin transaction
89235
+ --------------------------------------------------------------------
89236
+ AlternatesController::base actions::update: test_0002_display errors
89237
+ --------------------------------------------------------------------
89238
+ Processing by AlternatesController#update as HTML
89239
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
89240
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89241
+  (0.0ms) SAVEPOINT active_record_1
89242
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89243
+ Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)
89244
+  (0.1ms) rollback transaction
89245
+  (0.0ms) begin transaction
89246
+ ----------------------------------------------------------------------------------
89247
+ AlternatesController::base actions::update: test_0003_raise exception on not found
89248
+ ----------------------------------------------------------------------------------
89249
+ Processing by AlternatesController#update as HTML
89250
+ Parameters: {"id"=>"1"}
89251
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89252
+ Completed 404 Not Found in 1ms
89253
+  (0.1ms) rollback transaction
89254
+  (0.0ms) begin transaction
89255
+ --------------------------------------------------
89256
+ BlocksController: test_0001_has one response block
89257
+ --------------------------------------------------
89258
+ Processing by BlocksController#create as HTML
89259
+ Parameters: {"document"=>{"name"=>"Sample"}}
89260
+  (0.1ms) SAVEPOINT active_record_1
89261
+ SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89263
+ Redirected to http://test.host/
89264
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
89265
+  (0.4ms) rollback transaction
89266
+  (0.1ms) begin transaction
89267
+ ----------------------------------------------------------------
89268
+ BlocksController: test_0002_has two response blocks with success
89269
+ ----------------------------------------------------------------
89270
+ Processing by BlocksController#update as HTML
89271
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
89272
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89273
+  (0.0ms) SAVEPOINT active_record_1
89274
+ SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89276
+ Redirected to http://test.host/
89277
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
89278
+  (0.3ms) rollback transaction
89279
+  (0.0ms) begin transaction
89280
+ ----------------------------------------------------------------
89281
+ BlocksController: test_0003_has two response blocks with failire
89282
+ ----------------------------------------------------------------
89283
+ Processing by BlocksController#update as HTML
89284
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
89285
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89286
+  (0.1ms) SAVEPOINT active_record_1
89287
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89288
+ Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
89289
+  (0.1ms) rollback transaction
89290
+  (0.0ms) begin transaction
89291
+ ---------------------------------------------------------------
89292
+ CustomNoticesController::flash messages: test_0001_has a notice
89293
+ ---------------------------------------------------------------
89294
+ Processing by CustomNoticesController#create as HTML
89295
+ Parameters: {"document"=>{"name"=>"Sample"}}
89296
+  (0.1ms) SAVEPOINT active_record_1
89297
+ SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89299
+ Redirected to http://test.host/
89300
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
89301
+  (0.6ms) rollback transaction
89302
+  (0.0ms) begin transaction
89303
+ ---------------------------------------------------------------
89304
+ CustomNoticesController::flash messages: test_0002_has an alert
89305
+ ---------------------------------------------------------------
89306
+ Processing by CustomNoticesController#update as HTML
89307
+ Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
89308
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89309
+  (0.1ms) SAVEPOINT active_record_1
89310
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89312
+ Redirected to http://test.host/
89313
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
89314
+  (0.3ms) rollback transaction
89315
+  (0.1ms) begin transaction
89316
+ --------------------------------------------------------------
89317
+ DocumentsController::base actions::create: test_0001_redirects
89318
+ --------------------------------------------------------------
89319
+ Processing by DocumentsController#create as HTML
89320
+ Parameters: {"document"=>{"name"=>"New document"}}
89321
+  (0.1ms) SAVEPOINT active_record_1
89322
+ SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89324
+ Redirected to http://test.host/documents
89325
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
89326
+  (0.6ms) rollback transaction
89327
+  (0.0ms) begin transaction
89328
+ -------------------------------------------------------------------
89329
+ DocumentsController::base actions::create: test_0002_display errors
89330
+ -------------------------------------------------------------------
89331
+ Processing by DocumentsController#create as HTML
89332
+ Parameters: {"document"=>{"name"=>""}}
89333
+  (0.1ms) SAVEPOINT active_record_1
89334
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89335
+ Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)
89336
+  (0.1ms) rollback transaction
89337
+  (0.0ms) begin transaction
89338
+ ---------------------------------------------------------------
89339
+ DocumentsController::base actions::destroy: test_0001_redirects
89340
+ ---------------------------------------------------------------
89341
+ Processing by DocumentsController#destroy as HTML
89342
+ Parameters: {"id"=>"100"}
89343
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89344
+  (0.0ms) SAVEPOINT active_record_1
89345
+ SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
89346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89347
+ Redirected to http://test.host/documents
89348
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
89349
+  (0.5ms) rollback transaction
89350
+  (0.0ms) begin transaction
89351
+ ----------------------------------------------------------------------------------
89352
+ DocumentsController::base actions::destroy: test_0002_raise exception on not found
89353
+ ----------------------------------------------------------------------------------
89354
+ Processing by DocumentsController#destroy as HTML
89355
+ Parameters: {"id"=>"1"}
89356
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89357
+ Completed 404 Not Found in 1ms
89358
+  (0.1ms) rollback transaction
89359
+  (0.0ms) begin transaction
89360
+ --------------------------------------------------------------
89361
+ DocumentsController::base actions::edit: test_0001_render form
89362
+ --------------------------------------------------------------
89363
+ Processing by DocumentsController#edit as HTML
89364
+ Parameters: {"id"=>"100"}
89365
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89366
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
89367
+  (0.1ms) rollback transaction
89368
+  (0.0ms) begin transaction
89369
+ -------------------------------------------------------------------------------
89370
+ DocumentsController::base actions::edit: test_0002_raise exception on not found
89371
+ -------------------------------------------------------------------------------
89372
+ Processing by DocumentsController#edit as HTML
89373
+ Parameters: {"id"=>"1"}
89374
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89375
+ Completed 404 Not Found in 1ms
89376
+  (0.1ms) rollback transaction
89377
+  (0.0ms) begin transaction
89378
+ ---------------------------------------------------------------
89379
+ DocumentsController::base actions::index: test_0001_render list
89380
+ ---------------------------------------------------------------
89381
+ Processing by DocumentsController#index as HTML
89382
+  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
89383
+ Document Load (0.1ms) SELECT "documents".* FROM "documents"
89384
+ Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)
89385
+  (0.1ms) rollback transaction
89386
+  (0.0ms) begin transaction
89387
+ -------------------------------------------------------------
89388
+ DocumentsController::base actions::new: test_0001_render form
89389
+ -------------------------------------------------------------
89390
+ Processing by DocumentsController#new as HTML
89391
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
89392
+  (0.1ms) rollback transaction
89393
+  (0.0ms) begin transaction
89394
+ --------------------------------------------------------------
89395
+ DocumentsController::base actions::show: test_0001_render view
89396
+ --------------------------------------------------------------
89397
+ Processing by DocumentsController#show as HTML
89398
+ Parameters: {"id"=>"100"}
89399
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89400
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
89401
+  (0.1ms) rollback transaction
89402
+  (0.1ms) begin transaction
89403
+ -------------------------------------------------------------------------------
89404
+ DocumentsController::base actions::show: test_0002_raise exception on not found
89405
+ -------------------------------------------------------------------------------
89406
+ Processing by DocumentsController#show as HTML
89407
+ Parameters: {"id"=>"1"}
89408
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
89409
+ Completed 404 Not Found in 1ms
89410
+  (0.1ms) rollback transaction
89411
+  (0.0ms) begin transaction
89412
+ --------------------------------------------------------------
89413
+ DocumentsController::base actions::update: test_0001_redirects
89414
+ --------------------------------------------------------------
89415
+ Processing by DocumentsController#update as HTML
89416
+ Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
89417
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89418
+  (0.0ms) SAVEPOINT active_record_1
89419
+ SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 06 Aug 2013 17:46:13 UTC +00:00]]
89420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89421
+ Redirected to http://test.host/documents
89422
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
89423
+  (0.3ms) rollback transaction
89424
+  (0.1ms) begin transaction
89425
+ -------------------------------------------------------------------
89426
+ DocumentsController::base actions::update: test_0002_display errors
89427
+ -------------------------------------------------------------------
89428
+ Processing by DocumentsController#update as HTML
89429
+ Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
89430
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
89431
+  (0.1ms) SAVEPOINT active_record_1
89432
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89433
+ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)
89434
+  (0.1ms) rollback transaction
89435
+  (0.0ms) begin transaction
89436
+ ---------------------------------------------------------------------------------
89437
+ DocumentsController::base actions::update: test_0003_raise exception on not found
89438
+ ---------------------------------------------------------------------------------
87483
89439
  Processing by DocumentsController#update as HTML
87484
89440
  Parameters: {"id"=>"1"}
87485
89441
  Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]