(0.2ms) begin transaction --------------------------- ResourcefulTest: test_truth ---------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------- ResourcefulTest: test_truth ---------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------- ResourcefulTest: test_truth ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DocumentsController::index: test_0001_render list -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DocumentsController::index: test_0001_render list -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DocumentsController::index: test_0001_render list -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DocumentsController::index: test_0001_render list -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DocumentsController::index: test_0001_render list -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DocumentsController::index: test_0001_render list -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DocumentsController::index: test_0001_render list -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 31ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Rendered documents/index.html.erb within layouts/application (8.8ms) Completed 500 Internal Server Error in 39ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Rendered documents/index.html.erb within layouts/application (2.5ms) Completed 500 Internal Server Error in 33ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Rendered documents/index.html.erb within layouts/application (2.5ms) Completed 500 Internal Server Error in 34ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Rendered documents/index.html.erb within layouts/application (3.2ms) Completed 500 Internal Server Error in 34ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" SQLite3::SQLException: no such table: documents: SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (3.5ms) Completed 500 Internal Server Error in 35ms  (0.1ms) rollback transaction  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateDocuments (20130703024719)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "documents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130703024719"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.5ms) Completed 200 OK in 43ms (Views: 41.1ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------------- DocumentsController::actions::index: test_0001_render list ---------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 41ms (Views: 38.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 39ms (Views: 37.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 39ms (Views: 37.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form -------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 40ms (Views: 37.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form -------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 40ms (Views: 38.1ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 40ms (Views: 38.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.5ms) Completed 200 OK in 40ms (Views: 38.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 40ms (Views: 38.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 41ms (Views: 38.9ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML ERROR: compiling _app_views_documents_new_html_erb__886729869185917415_70251803936060 RAISED /Users/marioch/Development/proyectos/edge/resourceful/test/dummy/app/views/documents/new.html.erb:3: syntax error, unexpected '<', expecting ')' <% end );@output_buffer.safe_append=' ^ /Users/marioch/Development/proyectos/edge/resourceful/test/dummy/app/views/documents/new.html.erb:5: syntax error, unexpected keyword_ensure, expecting keyword_end /Users/marioch/Development/proyectos/edge/resourceful/test/dummy/app/views/documents/new.html.erb:7: syntax error, unexpected end-of-input, expecting keyword_end Function body: def _app_views_documents_new_html_erb__886729869185917415_70251803936060(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "documents/new";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.append= form_for resource do |f| @output_buffer.safe_append=' ';@output_buffer.append=( f.text_field :name <% end );@output_buffer.safe_append=' ';@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/template.rb:299:in `module_eval' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/template.rb:299:in `compile' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/template.rb:248:in `block in compile!' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/template.rb:236:in `synchronize' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/template.rb:236:in `compile!' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/template.rb:142:in `block in render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `block in instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/template.rb:141:in `render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `block in instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/template_renderer.rb:48:in `block in render_template' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/template_renderer.rb:47:in `render_template' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/template_renderer.rb:17:in `render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/renderer.rb:42:in `render_template' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_view/renderer/renderer.rb:23:in `render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/rendering.rb:127:in `_render_template' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/streaming.rb:219:in `_render_template' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/rendering.rb:120:in `render_to_body' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/rendering.rb:33:in `render_to_body' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/renderers.rb:26:in `render_to_body' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/rendering.rb:97:in `render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/rendering.rb:16:in `render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/core_ext/benchmark.rb:12:in `ms' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/instrumentation.rb:41:in `block in render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/responder.rb:233:in `default_render' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/responder.rb:161:in `to_html' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/responder.rb:154:in `respond' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/responder.rb:147:in `call' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/mime_responds.rb:330:in `respond_with' /Users/marioch/Development/proyectos/edge/resourceful/lib/resourceful/actions.rb:8:in `new' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/base.rb:189:in `process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:383:in `_run__2081504975399524945__process_action__callbacks' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `block in instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `instrument' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/metal/params_wrapper.rb:245:in `process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/base.rb:136:in `process' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/abstract_controller/rendering.rb:44:in `process' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/test_case.rb:569:in `process' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/test_case.rb:64:in `process' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_controller/test_case.rb:469:in `get' /Users/marioch/Development/proyectos/edge/resourceful/test/resourceful_test.rb:23:in `block (4 levels) in ' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1258:in `run' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:933:in `block in _run_suite' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `map' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `_run_suite' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `block in _run_suites' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `map' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `_run_suites' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:877:in `_run_anything' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1085:in `run_tests' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1072:in `block in _run' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `each' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `_run' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run' /Users/marioch/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun' Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 41ms (Views: 38.8ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.4ms) Completed 200 OK in 40ms (Views: 38.1ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Rendered documents/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 40ms (Views: 37.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 16ms (Views: 13.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:09:50 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:09:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 17ms  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:10:43 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:10:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 18ms  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:11:29 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:11:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 3.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:12:24 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:12:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 3.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 10.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:13:55 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:13:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 2.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 10.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:14:44 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:14:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 2.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:15:15 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:15:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 2.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:16:42 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:16:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 3.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:17:46', '2013-07-03 04:17:46')  (1.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:17:46 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:17:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:19:02', '2013-07-03 04:19:02')  (1.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:19:02 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:19:02 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:20:16', '2013-07-03 04:20:16')  (1.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:20:16 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:20:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:23:19', '2013-07-03 04:23:19')  (1.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:23:19 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:23:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 10.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:24:15', '2013-07-03 04:24:15')  (1.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:24:15 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:24:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:24:56', '2013-07-03 04:24:56')  (1.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:24:56 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:24:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:26:03', '2013-07-03 04:26:03')  (1.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:26:03 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:26:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:26:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents/100 Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:26:46', '2013-07-03 04:26:46')  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:26:46 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:26:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:26:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:43:20', '2013-07-03 04:43:20')  (0.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:43:20 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:43:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:43:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:43:50', '2013-07-03 04:43:50')  (1.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:43:50 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:43:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:43:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 04:46:43', '2013-07-03 04:46:43')  (1.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 04:46:43 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:46:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 04:46:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:22:40', '2013-07-03 16:22:40')  (6.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:22:40 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:22:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 13.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:22:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:24:08', '2013-07-03 16:24:08')  (1.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:24:08 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:24:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 18ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:24:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:28:23', '2013-07-03 16:28:23')  (1.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:28:24 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:28:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 13.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:28:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:29:53', '2013-07-03 16:29:53')  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:29:53 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:29:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:29:54 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:29:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 35ms (Views: 33.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:29:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:29:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:39:45', '2013-07-03 16:39:45')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:39:45 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:39:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:39:45 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:39:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:39:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:39:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:40:23', '2013-07-03 16:40:23')  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:40:23 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:40:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:40:23 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:40:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 31ms (Views: 30.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:40:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:40:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:41:39', '2013-07-03 16:41:39')  (0.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:41:39 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:41:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 12.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:41:39 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:41:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:41:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:41:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 16:45:03', '2013-07-03 16:45:03')  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:45:03 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:45:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.6ms)  (4.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 12.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 16:45:03 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:45:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:45:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 16:45:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "documents" Fixture Insert (0.4ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:02:22', '2013-07-03 22:02:22')  (0.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:02:22 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:02:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 24ms (ActiveRecord: 1.9ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 26ms (Views: 16.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:02:22 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:02:22 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:02:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:09:15', '2013-07-03 22:09:15')  (0.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:09:15 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:09:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:09:15 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:09:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:09:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:10:10', '2013-07-03 22:10:10')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:10:10 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:10:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:10:10 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:11:09', '2013-07-03 22:11:09')  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:11:09 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:11:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 23ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:11:09 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:11:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:11:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:12:04', '2013-07-03 22:12:04')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:12:04 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:12:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:12:04 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:12:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:12:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:12:57', '2013-07-03 22:12:57')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:12:57 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:12:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:12:57 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:13:47', '2013-07-03 22:13:47')  (4.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:13:47 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:13:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:13:47 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:13:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 31.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:14:29', '2013-07-03 22:14:29')  (0.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:14:29 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:14:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:14:29 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 31.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:14:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:15:02', '2013-07-03 22:15:02')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:15:02 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:15:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"x"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:15:02 UTC +00:00], ["name", "x"], ["updated_at", Wed, 03 Jul 2013 22:15:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 31.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:15:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:15:57', '2013-07-03 22:15:57')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:15:57 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:15:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:15:57 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:15:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 35ms (Views: 34.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:15:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:17:20', '2013-07-03 22:17:20')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:17:20 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:17:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:17:20 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:17:50', '2013-07-03 22:17:50')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:17:50 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:17:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 1.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:17:50 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:17:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 33ms (Views: 33.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:17:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:18:14', '2013-07-03 22:18:14')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:18:14 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:18:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:18:14 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:18:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 31.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:18:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:18:52', '2013-07-03 22:18:52')  (0.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:18:52 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:18:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 11.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:18:52 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:18:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 34ms (Views: 33.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:18:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.3ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:20:09', '2013-07-03 22:20:09')  (0.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:20:09 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:20:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 12.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:20:09 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 33ms (Views: 32.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:20:39', '2013-07-03 22:20:39')  (0.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:20:39 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:20:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:20:39 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:20:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 33ms (Views: 32.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:20:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:21:24', '2013-07-03 22:21:24')  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:21:24 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:21:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:21:24 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 31ms (Views: 30.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:22:03', '2013-07-03 22:22:03')  (0.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:22:03 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:22:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:22:03 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:22:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:22:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:22:12', '2013-07-03 22:22:12')  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:22:12 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:22:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:22:12 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:24:39', '2013-07-03 22:24:39')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:24:39 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:24:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:24:39 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:24:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:24:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:24:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:25:07', '2013-07-03 22:25:07')  (0.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:25:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:25:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors -------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:25:49', '2013-07-03 22:25:49')  (1.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:25:49 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:25:49 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 31ms (Views: 30.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:29:32', '2013-07-03 22:29:32')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found -----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found --------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found --------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:29:32 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:29:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 38.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:29:32 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:29:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:29:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:29:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:30:02', '2013-07-03 22:30:02')  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 17.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:30:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:41:15', '2013-07-03 22:41:15')  (0.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:41:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:45:57', '2013-07-03 22:45:57')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (28.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:46:40', '2013-07-03 22:46:40')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 500 Internal Server Error in 31ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:46:55', '2013-07-03 22:46:55')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 2.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:46:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:47:45', '2013-07-03 22:47:45')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 18ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:47:45 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:47:45 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:47:59', '2013-07-03 22:47:59')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:47:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:48:31', '2013-07-03 22:48:31')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:48:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:49:07', '2013-07-03 22:49:07')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (30.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:49:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:50:48', '2013-07-03 22:50:48')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:50:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:51:23', '2013-07-03 22:51:23')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:51:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-03 22:56:07', '2013-07-03 22:56:07')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (27.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 03 Jul 2013 22:56:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:23:57', '2013-07-04 00:23:57')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 17ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (3.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:23:58 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:23:58 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:23:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:23:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:25:48', '2013-07-04 00:25:48')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 16ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 32ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:25:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:25:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:25:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:25:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:25:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:25:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:26:02', '2013-07-04 00:26:02')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 15ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 39ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:26:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:26:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:26:18', '2013-07-04 00:26:18')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 16ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 39ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:26:18 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:26:18 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:27:12', '2013-07-04 00:27:12')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 17ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:27:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:27:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:27:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:27:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:27:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:27:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:27:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:28:01', '2013-07-04 00:28:01')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 17ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:28:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:28:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:28:22', '2013-07-04 00:28:22')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 16ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:28:23 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:28:23 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:28:59', '2013-07-04 00:28:59')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 17ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 39ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:28:59 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:28:59 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:29:25', '2013-07-04 00:29:25')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 16ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:29:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:29:26 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:29:26 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:29:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:30:33', '2013-07-04 00:30:33')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 16ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:30:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 41ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:30:33 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:30:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:30:33 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:30:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:30:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:30:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:31:29', '2013-07-04 00:31:29')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Redirected to http://test.host/documents Completed 302 Found in 16ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Redirected to http://test.host/documents Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 39ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:31:29 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:31:29 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:31:49', '2013-07-04 00:31:49')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:31:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:44:42', '2013-07-04 00:44:42')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:44:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:45:00', '2013-07-04 00:45:00')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:45:19', '2013-07-04 00:45:19')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:45:19 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:45:20 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:45:20 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:45:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 00:46:08', '2013-07-04 00:46:08')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 00:46:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:07:26', '2013-07-04 01:07:26')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:07:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:08:04', '2013-07-04 01:08:04')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:08:04 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:08:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:08:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 34ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:08:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:08:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:08:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:08:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:08:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:08:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:09:05', '2013-07-04 01:09:05')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:09:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:09:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:09:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:09:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:09:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:09:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:10:35', '2013-07-04 01:10:35')  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:10:55', '2013-07-04 01:10:55')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 26ms (ActiveRecord: 1.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 28ms (Views: 18.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:10:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 2ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:20:08', '2013-07-04 01:20:08')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 1.9ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.6ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:20:54', '2013-07-04 01:20:54')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 29ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:20:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:21:05', '2013-07-04 01:21:05')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 29ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:21:38', '2013-07-04 01:21:38')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:21:55', '2013-07-04 01:21:55')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:55 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:55 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:21:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:56 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:21:56 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:21:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:37:42', '2013-07-04 01:37:42')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 01:38:06', '2013-07-04 01:38:06')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 01:38:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:08:55', '2013-07-04 02:08:55')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:08:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:09:08', '2013-07-04 02:09:08')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:09:17', '2013-07-04 02:09:17')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:09:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:16:07', '2013-07-04 02:16:07')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.6ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:16:56', '2013-07-04 02:16:56')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:16:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:17:40', '2013-07-04 02:17:40')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:17:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:18:01', '2013-07-04 02:18:01')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:18:17', '2013-07-04 02:18:17')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:19:13', '2013-07-04 02:19:13')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:19:49', '2013-07-04 02:19:49')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:19:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:21:00', '2013-07-04 02:21:00')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:21:23', '2013-07-04 02:21:23')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:23 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:21:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:24:48', '2013-07-04 02:24:48')  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 29ms  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:24:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:25:03', '2013-07-04 02:25:03')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:25:39', '2013-07-04 02:25:39')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:25:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:26:10', '2013-07-04 02:26:10')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 10.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:26:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:26:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:26:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:27:32', '2013-07-04 02:27:32')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:27:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:31:42', '2013-07-04 02:31:42')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:31:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 35ms  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:32:17', '2013-07-04 02:32:17')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:32:35', '2013-07-04 02:32:35')  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:32:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 02:49:35', '2013-07-04 02:49:35')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 02:49:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:18:22', '2013-07-04 17:18:22')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:20:07', '2013-07-04 17:20:07')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:07 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block --------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:07 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:20:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:20:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:08 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:20:39', '2013-07-04 17:20:39')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 12.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:20:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:21:49', '2013-07-04 17:21:49')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:22:37', '2013-07-04 17:22:37')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:22:37 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:22:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:23:29', '2013-07-04 17:23:29')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 30ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:23:47', '2013-07-04 17:23:47')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:23:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:26:30', '2013-07-04 17:26:30')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:26:52', '2013-07-04 17:26:52')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:26:53 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:26:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:27:18', '2013-07-04 17:27:18')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- BlocksController: test_0002_has two response blocks ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:28:58', '2013-07-04 17:28:58')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 15.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:28:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:29:31', '2013-07-04 17:29:31')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:29:40', '2013-07-04 17:29:40')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:31:25', '2013-07-04 17:31:25')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 1.7ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:31:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:32:13', '2013-07-04 17:32:13')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:32:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:32:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:32:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:32:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:32:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:32:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:32:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:33:50', '2013-07-04 17:33:50')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:33:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:33:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:33:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:36:42', '2013-07-04 17:36:42')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:36:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:36:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:36:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:42:01', '2013-07-04 17:42:01')  (10.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:42:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:43:11', '2013-07-04 17:43:11')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:43:42', '2013-07-04 17:43:42')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:44:04', '2013-07-04 17:44:04')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:44:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:45:46', '2013-07-04 17:45:46')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:45:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:46:16', '2013-07-04 17:46:16')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:46:30', '2013-07-04 17:46:30')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:30 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:46:46', '2013-07-04 17:46:46')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:46:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:51:14', '2013-07-04 17:51:14')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:51:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:52:01', '2013-07-04 17:52:01')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:52:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:56:04', '2013-07-04 17:56:04')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:56:04 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:56:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:59:06', '2013-07-04 17:59:06')  (1.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:59:21', '2013-07-04 17:59:21')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 17:59:53', '2013-07-04 17:59:53')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:53 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 10.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 17:59:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 18:01:05', '2013-07-04 18:01:05')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 18:01:40', '2013-07-04 18:01:40')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 18:01:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 20:50:46', '2013-07-04 20:50:46')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 42.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (33.9ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:50:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 20:56:16', '2013-07-04 20:56:16')  (10.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 38.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 20:56:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:51:05', '2013-07-04 22:51:05')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 38.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 35.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:51:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:54:52', '2013-07-04 22:54:52')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:54:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:56:35', '2013-07-04 22:56:35')  (14.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 38.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:56:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:57:14', '2013-07-04 22:57:14')  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:57:48', '2013-07-04 22:57:48')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 40ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:57:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:58:43', '2013-07-04 22:58:43')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:58:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:58:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:59:28', '2013-07-04 22:59:28')  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 41ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 22:59:36', '2013-07-04 22:59:36')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 22:59:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:10:12', '2013-07-04 23:10:12')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:10:45', '2013-07-04 23:10:45')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:45 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 2.1ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:10:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:12:57', '2013-07-04 23:12:57')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:12:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:13:42', '2013-07-04 23:13:42')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 1.8ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:16:45', '2013-07-04 23:16:45')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 39.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:16:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:17:27', '2013-07-04 23:17:27')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:17:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:17:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:17:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:20:02', '2013-07-04 23:20:02')  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 39.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-04 23:20:33', '2013-07-04 23:20:33')  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 37ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 04 Jul 2013 23:20:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "documents" Fixture Insert (0.5ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:23:59', '2013-07-08 17:23:59')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 24ms (ActiveRecord: 2.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 54ms (Views: 46.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:23:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:32:41', '2013-07-08 17:32:41')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:32:41 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:32:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:32:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:33:20', '2013-07-08 17:33:20')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:34:22', '2013-07-08 17:34:22')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 42.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:36:21', '2013-07-08 17:36:21')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:21 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 39.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:36:57', '2013-07-08 17:36:57')  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:36:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:38:12', '2013-07-08 17:38:12')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.7ms)  (2.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 39.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.9ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:38:54', '2013-07-08 17:38:54')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 47ms (Views: 40.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:38:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:39:05', '2013-07-08 17:39:05')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:06 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:39:40', '2013-07-08 17:39:40')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:40 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 42.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:39:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:41:42', '2013-07-08 17:41:42')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:41:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:49:46', '2013-07-08 17:49:46')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 42.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:49:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:50:25', '2013-07-08 17:50:25')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:50:25 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:50:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:50:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:50:25 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:50:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:50:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:50:26 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:50:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:50:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:50:26 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:50:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:50:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:51:52', '2013-07-08 17:51:52')  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 38.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:52:07', '2013-07-08 17:52:07')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:52:28', '2013-07-08 17:52:28')  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 38.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:52:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:53:15', '2013-07-08 17:53:15')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:53:48', '2013-07-08 17:53:48')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:53:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:55:01', '2013-07-08 17:55:01')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 38.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:55:45', '2013-07-08 17:55:45')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 38.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:55:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 17:59:11', '2013-07-08 17:59:11')  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 38.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 17:59:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:00:25', '2013-07-08 18:00:25')  (4.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:00:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:04:15', '2013-07-08 18:04:15')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 39.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:04:31', '2013-07-08 18:04:31')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 49ms (Views: 42.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:04:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:05:08', '2013-07-08 18:05:08')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 47ms (Views: 40.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:05:42', '2013-07-08 18:05:42')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:05:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:07:24', '2013-07-08 18:07:24')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 41.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:07:41', '2013-07-08 18:07:41')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 41.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:07:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:09:28', '2013-07-08 18:09:28')  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:10:08', '2013-07-08 18:10:08')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:10:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:11:12', '2013-07-08 18:11:12')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:11:12 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:11:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:11:13 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:16:10', '2013-07-08 18:16:10')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 49ms (Views: 41.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:16:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:19:59', '2013-07-08 18:19:59')  (5.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:19:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:20:29', '2013-07-08 18:20:29')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:20:29 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 40.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:22:15', '2013-07-08 18:22:15')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 39.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:22:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:55:24', '2013-07-08 18:55:24')  (0.5ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:55:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:58:46', '2013-07-08 18:58:46')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:58:46 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:58:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 18:59:34', '2013-07-08 18:59:34')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 43ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 18:59:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:00:28', '2013-07-08 19:00:28')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:00:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:01:06', '2013-07-08 19:01:06')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:01:33', '2013-07-08 19:01:33')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 26ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 12.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:01:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:03:15', '2013-07-08 19:03:15')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:15 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:03:36', '2013-07-08 19:03:36')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:03:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:04:29', '2013-07-08 19:04:29')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:04:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:05:02', '2013-07-08 19:05:02')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:05:46', '2013-07-08 19:05:46')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 22ms (ActiveRecord: 1.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:05:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 19:07:50', '2013-07-08 19:07:50')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 19:07:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "documents" Fixture Insert (0.5ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 22:44:12', '2013-07-08 22:44:12')  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 24ms (ActiveRecord: 2.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 52ms (Views: 18.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 22:44:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 22:44:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-08 23:06:02', '2013-07-08 23:06:02')  (0.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 47ms (Views: 13.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.2ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00], ["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00], ["name", "New document"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Mon, 08 Jul 2013 23:06:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 05:40:57', '2013-07-09 05:40:57')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 23ms (ActiveRecord: 1.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 49ms (Views: 13.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:40:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:40:58 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:40:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:40:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 05:45:17', '2013-07-09 05:45:17')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 12.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 05:45:28', '2013-07-09 05:45:28')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 05:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "documents" Fixture Insert (0.6ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 16:05:35', '2013-07-09 16:05:35')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 24ms (ActiveRecord: 2.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 52ms (Views: 17.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 16:05:57', '2013-07-09 16:05:57')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 12.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 16:14:45', '2013-07-09 16:14:45')  (0.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:14:45 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:14:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 16:15:19', '2013-07-09 16:15:19')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:15:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 16:16:13', '2013-07-09 16:16:13')  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:16:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:16:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-09 16:17:56', '2013-07-09 16:17:56')  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 12.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00], ["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00], ["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Tue, 09 Jul 2013 16:17:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:20:21', '2013-07-17 03:20:21')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:20:21 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:20:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 24ms (ActiveRecord: 1.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 22ms (Views: 14.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:24:12', '2013-07-17 03:24:12')  (1.0ms) commit transaction  (0.3ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:24:12 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:24:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:24:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:27:09', '2013-07-17 03:27:09')  (5.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:27:09 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:27:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:27:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.3ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:28:23', '2013-07-17 03:28:23')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:28:23 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:28:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:28:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:30:38', '2013-07-17 03:30:38')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:30:38 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:30:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:30:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:31:14', '2013-07-17 03:31:14')  (0.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:31:14 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:31:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:34:38', '2013-07-17 03:34:38')  (1.5ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:34:38 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:34:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:35:41', '2013-07-17 03:35:41')  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:35:41 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:35:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:35:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:36:52', '2013-07-17 03:36:52')  (1.3ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:36:52 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:36:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:36:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:38:31', '2013-07-17 03:38:31')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:38:31 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:38:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:38:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:39:27', '2013-07-17 03:39:27')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:39:27 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:39:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:55:32', '2013-07-17 03:55:32')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:56:40', '2013-07-17 03:56:40')  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:56:40 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:56:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:56:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:58:07', '2013-07-17 03:58:07')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:58:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:58:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:58:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:59:03', '2013-07-17 03:59:03')  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:59:03 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:59:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:59:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 03:59:30', '2013-07-17 03:59:30')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 03:59:30 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:59:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 03:59:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:00:19', '2013-07-17 04:00:19')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:00:19 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:00:40', '2013-07-17 04:00:40')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:00:40 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:00:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:00:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:01:08', '2013-07-17 04:01:08')  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:01:08 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:01:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:01:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:03:56', '2013-07-17 04:03:56')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:03:56 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:03:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:03:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 31ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:04:14', '2013-07-17 04:04:14')  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:04:14 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:04:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:04:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 33ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:04:34', '2013-07-17 04:04:34')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:04:34 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:04:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:04:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:07:08', '2013-07-17 04:07:08')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:07:08 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:07:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:07:48', '2013-07-17 04:07:48')  (0.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:07:48 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:07:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 21ms (ActiveRecord: 1.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:07:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:08:49', '2013-07-17 04:08:49')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:08:49 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:08:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:08:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:09:37', '2013-07-17 04:09:37')  (2.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:09:37 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:09:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.7ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 32ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 31ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:10:07', '2013-07-17 04:10:07')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:10:07 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:10:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:10:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 33ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 31ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:10:45', '2013-07-17 04:10:45')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:10:45 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:10:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:10:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 32ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 32ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:11:13', '2013-07-17 04:11:13')  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:11:13 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:11:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 31ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:11:37', '2013-07-17 04:11:37')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:11:37 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:11:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:11:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:11:37 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:11:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:11:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 34ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 32ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:13:05', '2013-07-17 04:13:05')  (1.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:13:05 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:13:05 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:13:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:13:25', '2013-07-17 04:13:25')  (1.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:13:25 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:13:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:13:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:13:26 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:13:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:13:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:13:38', '2013-07-17 04:13:38')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:13:38 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:13:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.5ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:13:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:14:19', '2013-07-17 04:14:19')  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:14:19 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:14:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:14:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:14:46', '2013-07-17 04:14:46')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:14:46 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:14:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:14:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:15:11', '2013-07-17 04:15:11')  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:15:11 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:15:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:15:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:20:05', '2013-07-17 04:20:05')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 12.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:20:17', '2013-07-17 04:20:17')  (1.1ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:20:29', '2013-07-17 04:20:29')  (1.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "documents" Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-07-17 04:20:50', '2013-07-17 04:20:50')  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::create: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::create: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::destroy: test_0001_redirects ---------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- AlternatesController::base actions::destroy: test_0002_raise exception on not found ----------------------------------------------------------------------------------- Processing by AlternatesController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::edit: test_0001_render form --------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::edit: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- AlternatesController::base actions::index: test_0001_render list ---------------------------------------------------------------- Processing by AlternatesController#index as HTML  (0.2ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- AlternatesController::base actions::new: test_0001_render form -------------------------------------------------------------- Processing by AlternatesController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::show: test_0001_render view --------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- AlternatesController::base actions::show: test_0002_raise exception on not found -------------------------------------------------------------------------------- Processing by AlternatesController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- AlternatesController::base actions::update: test_0001_redirects --------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- AlternatesController::base actions::update: test_0002_display errors -------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- AlternatesController::base actions::update: test_0003_raise exception on not found ---------------------------------------------------------------------------------- Processing by AlternatesController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlocksController: test_0001_has one response block -------------------------------------------------- Processing by BlocksController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0002_has two response blocks with success ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- BlocksController: test_0003_has two response blocks with failire ---------------------------------------------------------------- Processing by BlocksController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0001_has a notice --------------------------------------------------------------- Processing by CustomNoticesController#create as HTML Parameters: {"document"=>{"name"=>"Sample"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00], ["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- CustomNoticesController::flash messages: test_0002_has an alert --------------------------------------------------------------- Processing by CustomNoticesController#update as HTML Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::create: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>"New document"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00], ["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::create: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#create as HTML Parameters: {"document"=>{"name"=>""}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::destroy: test_0001_redirects --------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- DocumentsController::base actions::destroy: test_0002_raise exception on not found ---------------------------------------------------------------------------------- Processing by DocumentsController#destroy as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::edit: test_0001_render form -------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::edit: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#edit as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- DocumentsController::base actions::index: test_0001_render list --------------------------------------------------------------- Processing by DocumentsController#index as HTML  (0.1ms) SELECT MAX("documents"."updated_at") AS max_id FROM "documents" Document Load (0.1ms) SELECT "documents".* FROM "documents" Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- DocumentsController::base actions::new: test_0001_render form ------------------------------------------------------------- Processing by DocumentsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::show: test_0001_render view -------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- DocumentsController::base actions::show: test_0002_raise exception on not found ------------------------------------------------------------------------------- Processing by DocumentsController#show as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- DocumentsController::base actions::update: test_0001_redirects -------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Wed, 17 Jul 2013 04:20:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/documents Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DocumentsController::base actions::update: test_0002_display errors ------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"document"=>{"name"=>""}, "id"=>"100"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- DocumentsController::base actions::update: test_0003_raise exception on not found --------------------------------------------------------------------------------- Processing by DocumentsController#update as HTML Parameters: {"id"=>"1"} Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction