static_docs 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8877,3 +8877,2472 @@ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
8877
8877
   (0.1ms) rollback transaction
8878
8878
   (0.1ms) begin transaction
8879
8879
   (0.1ms) rollback transaction
8880
+ Connecting to database specified by database.yml
8881
+  (7.3ms) begin transaction
8882
+ Started GET "/" for 127.0.0.1 at 2013-05-04 17:55:21 +0300
8883
+ Processing by StaticDocs::PagesController#show as HTML
8884
+ Parameters: {"page_path"=>"home"}
8885
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'home' LIMIT 1
8886
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (2.7ms)
8887
+ Completed 200 OK in 102ms (Views: 37.5ms | ActiveRecord: 2.3ms)
8888
+ Started GET "/page" for 127.0.0.1 at 2013-05-04 17:55:21 +0300
8889
+ Processing by StaticDocs::PagesController#show as HTML
8890
+ Parameters: {"page_path"=>"page"}
8891
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
8892
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
8893
+ Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.1ms)
8894
+ Started GET "/namespace/page" for 127.0.0.1 at 2013-05-04 17:55:21 +0300
8895
+ Processing by StaticDocs::PagesController#show as HTML
8896
+ Parameters: {"page_path"=>"namespace/page"}
8897
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
8898
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
8899
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
8900
+ Started GET "/markdown" for 127.0.0.1 at 2013-05-04 17:55:21 +0300
8901
+ Processing by StaticDocs::PagesController#show as HTML
8902
+ Parameters: {"page_path"=>"markdown"}
8903
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
8904
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
8905
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
8906
+ Started GET "/wrong" for 127.0.0.1 at 2013-05-04 17:55:21 +0300
8907
+ Processing by StaticDocs::PagesController#show as HTML
8908
+ Parameters: {"page_path"=>"wrong"}
8909
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
8910
+ Completed 404 Not Found in 1ms
8911
+
8912
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
8913
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
8914
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
8915
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
8916
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
8917
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
8918
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
8919
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__855411421259422333__process_action__643368483295099921__callbacks'
8920
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
8921
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
8922
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
8923
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
8924
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
8925
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
8926
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
8927
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
8928
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
8929
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
8930
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
8931
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
8932
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
8933
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
8934
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
8935
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
8936
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
8937
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
8938
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
8939
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
8940
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
8941
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
8942
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
8943
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
8944
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
8945
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
8946
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
8947
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
8948
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
8949
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
8950
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
8951
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
8952
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
8953
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
8954
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
8955
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
8956
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
8957
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
8958
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
8959
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
8960
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
8961
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
8962
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__1777213862301372470__call__2392543473119398643__callbacks'
8963
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
8964
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
8965
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
8966
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
8967
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
8968
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
8969
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
8970
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
8971
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
8972
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
8973
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
8974
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
8975
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
8976
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
8977
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
8978
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
8979
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
8980
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
8981
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
8982
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
8983
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
8984
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
8985
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
8986
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
8987
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
8988
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:25:in `block in <class:NavigationTest>'
8989
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
8990
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
8991
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
8992
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__338831534099960989__setup__2392543473119398643__callbacks'
8993
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
8994
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
8995
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
8996
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
8997
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
8998
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
8999
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
9000
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
9001
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
9002
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
9003
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
9004
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
9005
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
9006
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
9007
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
9008
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
9009
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
9010
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
9011
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
9012
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
9013
+
9014
+
9015
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
9016
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
9017
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.9ms)
9018
+  (0.1ms) rollback transaction
9019
+  (0.1ms) begin transaction
9020
+ Fixture Delete (0.6ms) DELETE FROM "static_docs_pages"
9021
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'home', '<h3>This is home page</h3>', 'html', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 892078063)
9022
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 750201913)
9023
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 573322620)
9024
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 292621806)
9025
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 931033267)
9026
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 11618465)
9027
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 644684649)
9028
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-04 14:55:21', '2013-05-04 14:55:21', 326420501)
9029
+  (0.7ms) commit transaction
9030
+  (0.1ms) begin transaction
9031
+ StaticDocs::Page Load (5.8ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','home'))
9032
+  (0.0ms) SAVEPOINT active_record_1
9033
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9035
+  (0.0ms) SAVEPOINT active_record_1
9036
+ SQL (1.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9038
+  (0.0ms) SAVEPOINT active_record_1
9039
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9041
+  (0.0ms) SAVEPOINT active_record_1
9042
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9044
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9045
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9046
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9047
+  (0.4ms) rollback transaction
9048
+  (0.0ms) begin transaction
9049
+  (0.0ms) rollback transaction
9050
+  (0.0ms) begin transaction
9051
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','home'))
9052
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'home' LIMIT 1
9053
+  (0.1ms) SAVEPOINT active_record_1
9054
+ SQL (3.3ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Hello from namespace!</p>\n"], ["created_at", Sat, 04 May 2013 14:55:21 UTC +00:00], ["extension", "html"], ["namespace", "namespace"], ["path", "home"], ["title", "Namespace Main Page"], ["updated_at", Sat, 04 May 2013 14:55:21 UTC +00:00]]
9055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9056
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9057
+  (0.1ms) SAVEPOINT active_record_1
9058
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
9059
+ ', "updated_at" = '2013-05-04 14:55:21.565431' WHERE "static_docs_pages"."id" = 292621806
9060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9061
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'home' LIMIT 1
9062
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9063
+  (0.4ms) rollback transaction
9064
+  (0.1ms) begin transaction
9065
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','home'))
9066
+  (0.1ms) SAVEPOINT active_record_1
9067
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9069
+  (0.1ms) SAVEPOINT active_record_1
9070
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9072
+  (0.0ms) SAVEPOINT active_record_1
9073
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9075
+  (0.1ms) SAVEPOINT active_record_1
9076
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9078
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'home' LIMIT 1
9079
+  (0.0ms) SAVEPOINT active_record_1
9080
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
9081
+ ', "updated_at" = '2013-05-04 14:55:21.578880' WHERE "static_docs_pages"."id" = 892078063
9082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9083
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9084
+  (0.1ms) SAVEPOINT active_record_1
9085
+ SQL (0.3ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 04 May 2013 14:55:21 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 04 May 2013 14:55:21 UTC +00:00]]
9086
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9087
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9088
+  (0.1ms) SAVEPOINT active_record_1
9089
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
9090
+ ', "updated_at" = '2013-05-04 14:55:21.584127' WHERE "static_docs_pages"."id" = 750201913
9091
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9092
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'home' LIMIT 1
9093
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9094
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9095
+  (0.4ms) rollback transaction
9096
+  (0.1ms) begin transaction
9097
+  (0.0ms) rollback transaction
9098
+  (0.1ms) begin transaction
9099
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
9100
+  (0.1ms) rollback transaction
9101
+  (0.0ms) begin transaction
9102
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
9103
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9104
+  (0.1ms) rollback transaction
9105
+  (0.0ms) begin transaction
9106
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9107
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9108
+  (0.0ms) rollback transaction
9109
+  (0.0ms) begin transaction
9110
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
9111
+  (0.0ms) rollback transaction
9112
+  (0.1ms) begin transaction
9113
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9114
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
9115
+  (0.1ms) rollback transaction
9116
+  (0.1ms) begin transaction
9117
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
9118
+  (0.1ms) rollback transaction
9119
+  (0.1ms) begin transaction
9120
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
9121
+  (0.1ms) rollback transaction
9122
+  (0.1ms) begin transaction
9123
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9124
+  (0.1ms) rollback transaction
9125
+  (0.1ms) begin transaction
9126
+  (0.0ms) rollback transaction
9127
+  (0.0ms) begin transaction
9128
+  (0.0ms) rollback transaction
9129
+ Connecting to database specified by database.yml
9130
+  (7.2ms) begin transaction
9131
+ Started GET "/" for 127.0.0.1 at 2013-05-11 15:55:36 +0300
9132
+ Processing by StaticDocs::PagesController#show as HTML
9133
+ Parameters: {"page_path"=>"home"}
9134
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'home' LIMIT 1
9135
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (2.6ms)
9136
+ Completed 200 OK in 104ms (Views: 37.6ms | ActiveRecord: 2.2ms)
9137
+ Started GET "/page" for 127.0.0.1 at 2013-05-11 15:55:36 +0300
9138
+ Processing by StaticDocs::PagesController#show as HTML
9139
+ Parameters: {"page_path"=>"page"}
9140
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9141
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9142
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
9143
+ Started GET "/namespace/page" for 127.0.0.1 at 2013-05-11 15:55:37 +0300
9144
+ Processing by StaticDocs::PagesController#show as HTML
9145
+ Parameters: {"page_path"=>"namespace/page"}
9146
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9147
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9148
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
9149
+ Started GET "/markdown" for 127.0.0.1 at 2013-05-11 15:55:37 +0300
9150
+ Processing by StaticDocs::PagesController#show as HTML
9151
+ Parameters: {"page_path"=>"markdown"}
9152
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
9153
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9154
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)
9155
+ Started GET "/wrong" for 127.0.0.1 at 2013-05-11 15:55:37 +0300
9156
+ Processing by StaticDocs::PagesController#show as HTML
9157
+ Parameters: {"page_path"=>"wrong"}
9158
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
9159
+ Completed 404 Not Found in 1ms
9160
+
9161
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
9162
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
9163
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
9164
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
9165
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
9166
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
9167
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
9168
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__1724778810500597862__process_action__868372387653847555__callbacks'
9169
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9170
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
9171
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9172
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
9173
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
9174
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
9175
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
9176
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
9177
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
9178
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
9179
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
9180
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
9181
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
9182
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
9183
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
9184
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
9185
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
9186
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
9187
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
9188
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
9189
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9190
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9191
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9192
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9193
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9194
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
9195
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9196
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9197
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9198
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9199
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
9200
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
9201
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
9202
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
9203
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
9204
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
9205
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
9206
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
9207
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
9208
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
9209
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
9210
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
9211
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__113121953739319978__call__1796105195059955313__callbacks'
9212
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9213
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
9214
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9215
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
9216
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
9217
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
9218
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9219
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
9220
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
9221
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
9222
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
9223
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9224
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
9225
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
9226
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9227
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
9228
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
9229
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9230
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
9231
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
9232
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
9233
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
9234
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
9235
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
9236
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
9237
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:25:in `block in <class:NavigationTest>'
9238
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
9239
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
9240
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
9241
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__733919398425111160__setup__1796105195059955313__callbacks'
9242
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9243
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
9244
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9245
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
9246
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
9247
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
9248
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
9249
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
9250
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
9251
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
9252
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
9253
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
9254
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
9255
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
9256
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
9257
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
9258
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
9259
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
9260
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
9261
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
9262
+
9263
+
9264
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
9265
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
9266
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.6ms)
9267
+  (0.1ms) rollback transaction
9268
+  (0.1ms) begin transaction
9269
+ Fixture Delete (0.8ms) DELETE FROM "static_docs_pages"
9270
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'home', '<h3>This is home page</h3>', 'html', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 892078063)
9271
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 750201913)
9272
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 573322620)
9273
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 292621806)
9274
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 931033267)
9275
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 11618465)
9276
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 644684649)
9277
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 12:55:37', '2013-05-11 12:55:37', 326420501)
9278
+  (0.9ms) commit transaction
9279
+  (0.0ms) begin transaction
9280
+ StaticDocs::Page Load (11.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','home'))
9281
+  (0.0ms) SAVEPOINT active_record_1
9282
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9284
+  (0.0ms) SAVEPOINT active_record_1
9285
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9287
+  (0.0ms) SAVEPOINT active_record_1
9288
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9290
+  (0.0ms) SAVEPOINT active_record_1
9291
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9293
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9294
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9295
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9296
+  (0.4ms) rollback transaction
9297
+  (0.0ms) begin transaction
9298
+  (0.0ms) rollback transaction
9299
+  (0.1ms) begin transaction
9300
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','home'))
9301
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'home' LIMIT 1
9302
+  (0.1ms) SAVEPOINT active_record_1
9303
+ SQL (3.8ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Hello from namespace!</p>\n"], ["created_at", Sat, 11 May 2013 12:55:37 UTC +00:00], ["extension", "html"], ["namespace", "namespace"], ["path", "home"], ["title", "Namespace Main Page"], ["updated_at", Sat, 11 May 2013 12:55:37 UTC +00:00]]
9304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9305
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9306
+  (0.1ms) SAVEPOINT active_record_1
9307
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
9308
+ ', "updated_at" = '2013-05-11 12:55:37.091239' WHERE "static_docs_pages"."id" = 292621806
9309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9310
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'home' LIMIT 1
9311
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9312
+  (0.9ms) rollback transaction
9313
+  (0.1ms) begin transaction
9314
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','home'))
9315
+  (0.0ms) SAVEPOINT active_record_1
9316
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9318
+  (0.0ms) SAVEPOINT active_record_1
9319
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9321
+  (0.0ms) SAVEPOINT active_record_1
9322
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9324
+  (0.1ms) SAVEPOINT active_record_1
9325
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9327
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'home' LIMIT 1
9328
+  (0.0ms) SAVEPOINT active_record_1
9329
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
9330
+ ', "updated_at" = '2013-05-11 12:55:37.102263' WHERE "static_docs_pages"."id" = 892078063
9331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9332
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9333
+  (0.1ms) SAVEPOINT active_record_1
9334
+ SQL (0.5ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 12:55:37 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 12:55:37 UTC +00:00]]
9335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9336
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9337
+  (0.1ms) SAVEPOINT active_record_1
9338
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
9339
+ ', "updated_at" = '2013-05-11 12:55:37.108996' WHERE "static_docs_pages"."id" = 750201913
9340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9341
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'home' LIMIT 1
9342
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9343
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9344
+  (0.7ms) rollback transaction
9345
+  (0.0ms) begin transaction
9346
+  (0.0ms) rollback transaction
9347
+  (0.1ms) begin transaction
9348
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
9349
+  (0.0ms) rollback transaction
9350
+  (0.1ms) begin transaction
9351
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
9352
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9353
+  (0.0ms) rollback transaction
9354
+  (0.0ms) begin transaction
9355
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9356
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9357
+  (0.1ms) rollback transaction
9358
+  (0.1ms) begin transaction
9359
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
9360
+  (0.0ms) rollback transaction
9361
+  (0.1ms) begin transaction
9362
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9363
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
9364
+  (0.1ms) rollback transaction
9365
+  (0.0ms) begin transaction
9366
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
9367
+  (0.1ms) rollback transaction
9368
+  (0.1ms) begin transaction
9369
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
9370
+  (0.1ms) rollback transaction
9371
+  (0.1ms) begin transaction
9372
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9373
+  (0.1ms) rollback transaction
9374
+  (0.1ms) begin transaction
9375
+  (0.0ms) rollback transaction
9376
+  (0.0ms) begin transaction
9377
+  (0.0ms) rollback transaction
9378
+ Connecting to database specified by database.yml
9379
+  (0.4ms) begin transaction
9380
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:02:26 +0300
9381
+ Processing by StaticDocs::PagesController#show as HTML
9382
+ Parameters: {"page_path"=>""}
9383
+ Completed 404 Not Found in 0ms
9384
+
9385
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
9386
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
9387
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
9388
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
9389
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
9390
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
9391
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
9392
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__1030557536017092332__process_action__4250010764600969729__callbacks'
9393
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9394
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
9395
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9396
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
9397
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
9398
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
9399
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
9400
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
9401
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
9402
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
9403
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
9404
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
9405
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
9406
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
9407
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
9408
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
9409
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
9410
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
9411
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
9412
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
9413
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9414
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9415
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9416
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9417
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9418
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
9419
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9420
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9421
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9422
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9423
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
9424
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
9425
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
9426
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
9427
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
9428
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
9429
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
9430
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
9431
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
9432
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
9433
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
9434
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
9435
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__545914047570362700__call__77578993395970164__callbacks'
9436
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9437
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
9438
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9439
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
9440
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
9441
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
9442
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9443
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
9444
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
9445
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
9446
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
9447
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9448
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
9449
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
9450
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9451
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
9452
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
9453
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9454
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
9455
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
9456
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
9457
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
9458
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
9459
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
9460
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
9461
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:7:in `block in <class:NavigationTest>'
9462
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
9463
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
9464
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
9465
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__2589975781290577863__setup__77578993395970164__callbacks'
9466
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9467
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
9468
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9469
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
9470
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
9471
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
9472
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
9473
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
9474
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
9475
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
9476
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
9477
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
9478
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
9479
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
9480
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
9481
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
9482
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
9483
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
9484
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
9485
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
9486
+
9487
+
9488
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
9489
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
9490
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.9ms)
9491
+  (0.1ms) rollback transaction
9492
+  (0.1ms) begin transaction
9493
+ Fixture Delete (0.3ms) DELETE FROM "static_docs_pages"
9494
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 892078063)
9495
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 750201913)
9496
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 573322620)
9497
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 292621806)
9498
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 931033267)
9499
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 11618465)
9500
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 644684649)
9501
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:02:26', '2013-05-11 13:02:26', 326420501)
9502
+  (1.8ms) commit transaction
9503
+  (0.1ms) begin transaction
9504
+ StaticDocs::Page Load (1.4ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
9505
+  (0.1ms) SAVEPOINT active_record_1
9506
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9508
+  (0.0ms) SAVEPOINT active_record_1
9509
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9511
+  (0.0ms) SAVEPOINT active_record_1
9512
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9514
+  (0.0ms) SAVEPOINT active_record_1
9515
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9517
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9518
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9519
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9520
+  (0.5ms) rollback transaction
9521
+  (0.0ms) begin transaction
9522
+  (0.0ms) rollback transaction
9523
+  (0.0ms) begin transaction
9524
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
9525
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
9526
+  (0.0ms) SAVEPOINT active_record_1
9527
+ SQL (2.4ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Hello from namespace!</p>\n"], ["created_at", Sat, 11 May 2013 13:02:26 UTC +00:00], ["extension", "html"], ["namespace", "namespace"], ["path", "index"], ["title", "Namespace Main Page"], ["updated_at", Sat, 11 May 2013 13:02:26 UTC +00:00]]
9528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9529
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9530
+  (0.0ms) SAVEPOINT active_record_1
9531
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
9532
+ ', "updated_at" = '2013-05-11 13:02:26.625788' WHERE "static_docs_pages"."id" = 292621806
9533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9534
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
9535
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9536
+  (0.4ms) rollback transaction
9537
+  (0.1ms) begin transaction
9538
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
9539
+  (0.0ms) SAVEPOINT active_record_1
9540
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9542
+  (0.0ms) SAVEPOINT active_record_1
9543
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9545
+  (0.0ms) SAVEPOINT active_record_1
9546
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9548
+  (0.0ms) SAVEPOINT active_record_1
9549
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9551
+ StaticDocs::Page Load (0.6ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
9552
+  (0.1ms) SAVEPOINT active_record_1
9553
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
9554
+ ', "updated_at" = '2013-05-11 13:02:26.635430' WHERE "static_docs_pages"."id" = 892078063
9555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9556
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9557
+  (0.1ms) SAVEPOINT active_record_1
9558
+ SQL (0.3ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:02:26 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:02:26 UTC +00:00]]
9559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9560
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9561
+  (0.1ms) SAVEPOINT active_record_1
9562
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
9563
+ ', "updated_at" = '2013-05-11 13:02:26.641731' WHERE "static_docs_pages"."id" = 750201913
9564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9565
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
9566
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9567
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9568
+  (0.4ms) rollback transaction
9569
+  (0.1ms) begin transaction
9570
+  (0.1ms) rollback transaction
9571
+  (0.1ms) begin transaction
9572
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
9573
+  (0.1ms) rollback transaction
9574
+  (0.1ms) begin transaction
9575
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
9576
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9577
+  (0.1ms) rollback transaction
9578
+  (0.1ms) begin transaction
9579
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9580
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9581
+  (0.1ms) rollback transaction
9582
+  (0.1ms) begin transaction
9583
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
9584
+  (0.1ms) rollback transaction
9585
+  (0.1ms) begin transaction
9586
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9587
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
9588
+  (0.1ms) rollback transaction
9589
+  (0.1ms) begin transaction
9590
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
9591
+  (0.1ms) rollback transaction
9592
+  (0.1ms) begin transaction
9593
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
9594
+  (0.1ms) rollback transaction
9595
+  (0.1ms) begin transaction
9596
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9597
+  (0.1ms) rollback transaction
9598
+  (0.1ms) begin transaction
9599
+  (0.1ms) rollback transaction
9600
+  (0.1ms) begin transaction
9601
+  (0.1ms) rollback transaction
9602
+ Connecting to database specified by database.yml
9603
+  (0.5ms) begin transaction
9604
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:02:54 +0300
9605
+ Processing by StaticDocs::PagesController#show as HTML
9606
+ Parameters: {"page_path"=>"index"}
9607
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
9608
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (2.7ms)
9609
+ Completed 200 OK in 94ms (Views: 32.3ms | ActiveRecord: 2.2ms)
9610
+ Started GET "/page" for 127.0.0.1 at 2013-05-11 16:02:54 +0300
9611
+ Processing by StaticDocs::PagesController#show as HTML
9612
+ Parameters: {"page_path"=>"page"}
9613
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9614
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9615
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)
9616
+ Started GET "/namespace/page" for 127.0.0.1 at 2013-05-11 16:02:54 +0300
9617
+ Processing by StaticDocs::PagesController#show as HTML
9618
+ Parameters: {"page_path"=>"namespace/page"}
9619
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9620
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9621
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
9622
+ Started GET "/markdown" for 127.0.0.1 at 2013-05-11 16:02:54 +0300
9623
+ Processing by StaticDocs::PagesController#show as HTML
9624
+ Parameters: {"page_path"=>"markdown"}
9625
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
9626
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9627
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
9628
+ Started GET "/wrong" for 127.0.0.1 at 2013-05-11 16:02:54 +0300
9629
+ Processing by StaticDocs::PagesController#show as HTML
9630
+ Parameters: {"page_path"=>"wrong"}
9631
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
9632
+ Completed 404 Not Found in 1ms
9633
+
9634
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
9635
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
9636
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
9637
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
9638
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
9639
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
9640
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
9641
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__3659606732159114680__process_action__393189442586817209__callbacks'
9642
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9643
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
9644
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9645
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
9646
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
9647
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
9648
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
9649
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
9650
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
9651
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
9652
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
9653
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
9654
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
9655
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
9656
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
9657
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
9658
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
9659
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
9660
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
9661
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
9662
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9663
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9664
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9665
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9666
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9667
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
9668
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9669
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9670
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9671
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9672
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
9673
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
9674
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
9675
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
9676
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
9677
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
9678
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
9679
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
9680
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
9681
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
9682
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
9683
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
9684
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__1438777196197207848__call__4061874241906907346__callbacks'
9685
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9686
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
9687
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9688
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
9689
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
9690
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
9691
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9692
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
9693
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
9694
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
9695
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
9696
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9697
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
9698
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
9699
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9700
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
9701
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
9702
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9703
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
9704
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
9705
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
9706
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
9707
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
9708
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
9709
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
9710
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:25:in `block in <class:NavigationTest>'
9711
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
9712
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
9713
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
9714
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__2912292227459832767__setup__4061874241906907346__callbacks'
9715
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9716
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
9717
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9718
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
9719
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
9720
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
9721
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
9722
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
9723
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
9724
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
9725
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
9726
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
9727
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
9728
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
9729
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
9730
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
9731
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
9732
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
9733
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
9734
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
9735
+
9736
+
9737
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
9738
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
9739
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.0ms)
9740
+  (0.1ms) rollback transaction
9741
+  (0.1ms) begin transaction
9742
+ Fixture Delete (0.3ms) DELETE FROM "static_docs_pages"
9743
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 892078063)
9744
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 750201913)
9745
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 573322620)
9746
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 292621806)
9747
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 931033267)
9748
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 11618465)
9749
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 644684649)
9750
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:02:54', '2013-05-11 13:02:54', 326420501)
9751
+  (1.9ms) commit transaction
9752
+  (0.1ms) begin transaction
9753
+ StaticDocs::Page Load (1.6ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
9754
+  (0.1ms) SAVEPOINT active_record_1
9755
+ SQL (0.5ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9757
+  (0.0ms) SAVEPOINT active_record_1
9758
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9760
+  (0.1ms) SAVEPOINT active_record_1
9761
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9763
+  (0.0ms) SAVEPOINT active_record_1
9764
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9766
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9767
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9768
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9769
+  (0.5ms) rollback transaction
9770
+  (0.0ms) begin transaction
9771
+  (0.0ms) rollback transaction
9772
+  (0.0ms) begin transaction
9773
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
9774
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
9775
+  (0.0ms) SAVEPOINT active_record_1
9776
+ SQL (2.2ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Hello from namespace!</p>\n"], ["created_at", Sat, 11 May 2013 13:02:54 UTC +00:00], ["extension", "html"], ["namespace", "namespace"], ["path", "index"], ["title", "Namespace Main Page"], ["updated_at", Sat, 11 May 2013 13:02:54 UTC +00:00]]
9777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9778
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9779
+  (0.0ms) SAVEPOINT active_record_1
9780
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
9781
+ ', "updated_at" = '2013-05-11 13:02:54.229796' WHERE "static_docs_pages"."id" = 292621806
9782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9783
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
9784
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9785
+  (0.5ms) rollback transaction
9786
+  (0.1ms) begin transaction
9787
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
9788
+  (0.0ms) SAVEPOINT active_record_1
9789
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
9790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9791
+  (0.1ms) SAVEPOINT active_record_1
9792
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
9793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9794
+  (0.1ms) SAVEPOINT active_record_1
9795
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
9796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9797
+  (0.1ms) SAVEPOINT active_record_1
9798
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
9799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9800
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
9801
+  (0.1ms) SAVEPOINT active_record_1
9802
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
9803
+ ', "updated_at" = '2013-05-11 13:02:54.242493' WHERE "static_docs_pages"."id" = 892078063
9804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9805
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9806
+  (0.1ms) SAVEPOINT active_record_1
9807
+ SQL (0.4ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:02:54 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:02:54 UTC +00:00]]
9808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9809
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9810
+  (0.1ms) SAVEPOINT active_record_1
9811
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
9812
+ ', "updated_at" = '2013-05-11 13:02:54.248187' WHERE "static_docs_pages"."id" = 750201913
9813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9814
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
9815
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9816
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
9817
+  (0.4ms) rollback transaction
9818
+  (0.1ms) begin transaction
9819
+  (0.1ms) rollback transaction
9820
+  (0.1ms) begin transaction
9821
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
9822
+  (0.1ms) rollback transaction
9823
+  (0.1ms) begin transaction
9824
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
9825
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
9826
+  (0.1ms) rollback transaction
9827
+  (0.1ms) begin transaction
9828
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9829
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
9830
+  (0.1ms) rollback transaction
9831
+  (0.1ms) begin transaction
9832
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
9833
+  (0.1ms) rollback transaction
9834
+  (0.1ms) begin transaction
9835
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9836
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
9837
+  (0.1ms) rollback transaction
9838
+  (0.1ms) begin transaction
9839
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
9840
+  (0.1ms) rollback transaction
9841
+  (0.1ms) begin transaction
9842
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
9843
+  (0.1ms) rollback transaction
9844
+  (0.1ms) begin transaction
9845
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9846
+  (0.1ms) rollback transaction
9847
+  (0.1ms) begin transaction
9848
+  (0.1ms) rollback transaction
9849
+  (0.1ms) begin transaction
9850
+  (0.1ms) rollback transaction
9851
+ Connecting to database specified by database.yml
9852
+  (0.4ms) begin transaction
9853
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:06:20 +0300
9854
+ Processing by StaticDocs::PagesController#show as HTML
9855
+ Parameters: {"page_path"=>"index"}
9856
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
9857
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (2.1ms)
9858
+ Completed 200 OK in 88ms (Views: 31.5ms | ActiveRecord: 1.7ms)
9859
+ Started GET "/page" for 127.0.0.1 at 2013-05-11 16:06:20 +0300
9860
+ Processing by StaticDocs::PagesController#show as HTML
9861
+ Parameters: {"page_path"=>"page"}
9862
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
9863
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9864
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
9865
+ Started GET "/namespace/page" for 127.0.0.1 at 2013-05-11 16:06:20 +0300
9866
+ Processing by StaticDocs::PagesController#show as HTML
9867
+ Parameters: {"page_path"=>"namespace/page"}
9868
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
9869
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9870
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms)
9871
+ Started GET "/markdown" for 127.0.0.1 at 2013-05-11 16:06:20 +0300
9872
+ Processing by StaticDocs::PagesController#show as HTML
9873
+ Parameters: {"page_path"=>"markdown"}
9874
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
9875
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
9876
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
9877
+ Started GET "/wrong" for 127.0.0.1 at 2013-05-11 16:06:20 +0300
9878
+ Processing by StaticDocs::PagesController#show as HTML
9879
+ Parameters: {"page_path"=>"wrong"}
9880
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
9881
+ Completed 404 Not Found in 1ms
9882
+
9883
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
9884
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
9885
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
9886
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
9887
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
9888
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
9889
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
9890
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__1431912365828297457__process_action__1586937023051825650__callbacks'
9891
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9892
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
9893
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9894
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
9895
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
9896
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
9897
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
9898
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
9899
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
9900
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
9901
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
9902
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
9903
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
9904
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
9905
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
9906
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
9907
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
9908
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
9909
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
9910
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
9911
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9912
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9913
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9914
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9915
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9916
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
9917
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
9918
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
9919
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
9920
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
9921
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
9922
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
9923
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
9924
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
9925
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
9926
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
9927
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
9928
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
9929
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
9930
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
9931
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
9932
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
9933
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__2713834218515228300__call__609694186735251450__callbacks'
9934
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9935
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
9936
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9937
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
9938
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
9939
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
9940
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9941
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
9942
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
9943
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
9944
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
9945
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
9946
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
9947
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
9948
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
9949
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
9950
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
9951
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
9952
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
9953
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
9954
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
9955
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
9956
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
9957
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
9958
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
9959
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:25:in `block in <class:NavigationTest>'
9960
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
9961
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
9962
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
9963
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__682669893319979682__setup__609694186735251450__callbacks'
9964
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
9965
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
9966
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
9967
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
9968
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
9969
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
9970
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
9971
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
9972
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
9973
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
9974
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
9975
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
9976
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
9977
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
9978
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
9979
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
9980
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
9981
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
9982
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
9983
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
9984
+
9985
+
9986
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
9987
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
9988
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.2ms)
9989
+  (0.1ms) rollback transaction
9990
+  (0.1ms) begin transaction
9991
+ Fixture Delete (0.2ms) DELETE FROM "static_docs_pages"
9992
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 892078063)
9993
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 750201913)
9994
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 573322620)
9995
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Index Page', 'index', 'namespace', '<h3>This is namespaced index page</h3>', 'html', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 149473849)
9996
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 292621806)
9997
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 931033267)
9998
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 11618465)
9999
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 644684649)
10000
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:06:20', '2013-05-11 13:06:20', 326420501)
10001
+  (2.7ms) commit transaction
10002
+  (0.1ms) begin transaction
10003
+ StaticDocs::Page Load (2.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10004
+  (0.1ms) SAVEPOINT active_record_1
10005
+ SQL (0.5ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10007
+  (0.0ms) SAVEPOINT active_record_1
10008
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10010
+  (0.1ms) SAVEPOINT active_record_1
10011
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10013
+  (0.1ms) SAVEPOINT active_record_1
10014
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10016
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10017
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10018
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10019
+  (0.4ms) rollback transaction
10020
+  (0.0ms) begin transaction
10021
+  (0.0ms) rollback transaction
10022
+  (0.0ms) begin transaction
10023
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
10024
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10025
+  (0.0ms) SAVEPOINT active_record_1
10026
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'Namespace Main Page', "body" = '<p>Hello from namespace!</p>
10027
+ ', "updated_at" = '2013-05-11 13:06:20.391258' WHERE "static_docs_pages"."id" = 149473849
10028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10029
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10030
+  (0.1ms) SAVEPOINT active_record_1
10031
+  (0.5ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
10032
+ ', "updated_at" = '2013-05-11 13:06:20.397933' WHERE "static_docs_pages"."id" = 292621806
10033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10034
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10035
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10036
+  (0.3ms) rollback transaction
10037
+  (0.1ms) begin transaction
10038
+ StaticDocs::Page Load (0.4ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10039
+  (0.0ms) SAVEPOINT active_record_1
10040
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10042
+  (0.0ms) SAVEPOINT active_record_1
10043
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10045
+  (0.0ms) SAVEPOINT active_record_1
10046
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10048
+  (0.1ms) SAVEPOINT active_record_1
10049
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10051
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10052
+  (0.1ms) SAVEPOINT active_record_1
10053
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
10054
+ ', "updated_at" = '2013-05-11 13:06:20.408675' WHERE "static_docs_pages"."id" = 892078063
10055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10056
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10057
+  (0.1ms) SAVEPOINT active_record_1
10058
+ SQL (0.4ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:06:20 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:06:20 UTC +00:00]]
10059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10060
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10061
+  (0.0ms) SAVEPOINT active_record_1
10062
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
10063
+ ', "updated_at" = '2013-05-11 13:06:20.414820' WHERE "static_docs_pages"."id" = 750201913
10064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10065
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10066
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10067
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10068
+  (0.5ms) rollback transaction
10069
+  (0.1ms) begin transaction
10070
+  (0.1ms) rollback transaction
10071
+  (0.1ms) begin transaction
10072
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
10073
+  (0.1ms) rollback transaction
10074
+  (0.1ms) begin transaction
10075
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
10076
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10077
+  (0.1ms) rollback transaction
10078
+  (0.1ms) begin transaction
10079
+ StaticDocs::Page Load (0.4ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10080
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10081
+  (0.1ms) rollback transaction
10082
+  (0.1ms) begin transaction
10083
+  (0.1ms) rollback transaction
10084
+  (0.1ms) begin transaction
10085
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
10086
+  (0.1ms) rollback transaction
10087
+  (0.1ms) begin transaction
10088
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'namespace' LIMIT 1
10089
+  (0.1ms) rollback transaction
10090
+  (0.1ms) begin transaction
10091
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10092
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
10093
+  (0.1ms) rollback transaction
10094
+  (0.1ms) begin transaction
10095
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
10096
+  (0.1ms) rollback transaction
10097
+  (0.1ms) begin transaction
10098
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
10099
+  (0.1ms) rollback transaction
10100
+  (0.1ms) begin transaction
10101
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10102
+  (0.1ms) rollback transaction
10103
+  (0.1ms) begin transaction
10104
+  (0.1ms) rollback transaction
10105
+  (0.1ms) begin transaction
10106
+  (0.1ms) rollback transaction
10107
+ Connecting to database specified by database.yml
10108
+  (0.5ms) begin transaction
10109
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:09:27 +0300
10110
+ Processing by StaticDocs::PagesController#show as HTML
10111
+ Parameters: {"page_path"=>"index"}
10112
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10113
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (3.3ms)
10114
+ Completed 200 OK in 96ms (Views: 36.5ms | ActiveRecord: 1.9ms)
10115
+ Started GET "/page" for 127.0.0.1 at 2013-05-11 16:09:27 +0300
10116
+ Processing by StaticDocs::PagesController#show as HTML
10117
+ Parameters: {"page_path"=>"page"}
10118
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10119
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
10120
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms)
10121
+ Started GET "/namespace/page" for 127.0.0.1 at 2013-05-11 16:09:27 +0300
10122
+ Processing by StaticDocs::PagesController#show as HTML
10123
+ Parameters: {"page_path"=>"namespace/page"}
10124
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10125
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
10126
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
10127
+ Started GET "/markdown" for 127.0.0.1 at 2013-05-11 16:09:27 +0300
10128
+ Processing by StaticDocs::PagesController#show as HTML
10129
+ Parameters: {"page_path"=>"markdown"}
10130
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
10131
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
10132
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
10133
+ Started GET "/wrong" for 127.0.0.1 at 2013-05-11 16:09:27 +0300
10134
+ Processing by StaticDocs::PagesController#show as HTML
10135
+ Parameters: {"page_path"=>"wrong"}
10136
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
10137
+ Completed 404 Not Found in 1ms
10138
+
10139
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
10140
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
10141
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
10142
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
10143
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
10144
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
10145
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
10146
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__2914341385445559583__process_action__763496877018119784__callbacks'
10147
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10148
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
10149
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10150
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
10151
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
10152
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
10153
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
10154
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
10155
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
10156
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
10157
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
10158
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
10159
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
10160
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
10161
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
10162
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
10163
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
10164
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
10165
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
10166
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
10167
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10168
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10169
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10170
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10171
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10172
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
10173
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10174
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10175
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10176
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10177
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
10178
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
10179
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
10180
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
10181
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
10182
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
10183
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
10184
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
10185
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
10186
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
10187
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
10188
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
10189
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__693767677829070334__call__1213480274576914566__callbacks'
10190
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10191
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
10192
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10193
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
10194
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
10195
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
10196
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
10197
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
10198
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
10199
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
10200
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
10201
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
10202
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
10203
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
10204
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
10205
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
10206
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
10207
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10208
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
10209
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
10210
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
10211
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
10212
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
10213
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
10214
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
10215
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:25:in `block in <class:NavigationTest>'
10216
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
10217
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
10218
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
10219
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__4542481052205177187__setup__1213480274576914566__callbacks'
10220
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10221
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
10222
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10223
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
10224
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
10225
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
10226
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
10227
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
10228
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
10229
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
10230
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
10231
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
10232
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
10233
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
10234
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
10235
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
10236
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
10237
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
10238
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
10239
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
10240
+
10241
+
10242
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
10243
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
10244
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.1ms)
10245
+  (0.1ms) rollback transaction
10246
+  (0.1ms) begin transaction
10247
+ Fixture Delete (0.5ms) DELETE FROM "static_docs_pages"
10248
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 892078063)
10249
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 750201913)
10250
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 573322620)
10251
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Index Page', 'index', 'namespace', '<h3>This is namespaced index page</h3>', 'html', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 149473849)
10252
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 292621806)
10253
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 931033267)
10254
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 11618465)
10255
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 644684649)
10256
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:09:27', '2013-05-11 13:09:27', 326420501)
10257
+  (1.1ms) commit transaction
10258
+  (0.0ms) begin transaction
10259
+ StaticDocs::Page Load (1.7ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10260
+  (0.1ms) SAVEPOINT active_record_1
10261
+ SQL (0.6ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10262
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10263
+  (0.1ms) SAVEPOINT active_record_1
10264
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10266
+  (0.1ms) SAVEPOINT active_record_1
10267
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10269
+  (0.1ms) SAVEPOINT active_record_1
10270
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10272
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10273
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10274
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10275
+  (0.4ms) rollback transaction
10276
+  (0.1ms) begin transaction
10277
+  (0.0ms) rollback transaction
10278
+  (0.0ms) begin transaction
10279
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
10280
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10281
+  (0.1ms) SAVEPOINT active_record_1
10282
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'Namespace Main Page', "body" = '<p>Hello from namespace!</p>
10283
+ ', "updated_at" = '2013-05-11 13:09:27.243795' WHERE "static_docs_pages"."id" = 149473849
10284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10285
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10286
+  (0.1ms) SAVEPOINT active_record_1
10287
+  (0.6ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
10288
+ ', "updated_at" = '2013-05-11 13:09:27.250194' WHERE "static_docs_pages"."id" = 292621806
10289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10290
+ StaticDocs::Page Load (0.5ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10291
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10292
+  (0.4ms) rollback transaction
10293
+  (0.1ms) begin transaction
10294
+ StaticDocs::Page Load (0.4ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10295
+  (0.1ms) SAVEPOINT active_record_1
10296
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10298
+  (0.1ms) SAVEPOINT active_record_1
10299
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10301
+  (0.1ms) SAVEPOINT active_record_1
10302
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10304
+  (0.1ms) SAVEPOINT active_record_1
10305
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10307
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10308
+  (0.1ms) SAVEPOINT active_record_1
10309
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
10310
+ ', "updated_at" = '2013-05-11 13:09:27.265326' WHERE "static_docs_pages"."id" = 892078063
10311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10312
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10313
+  (0.1ms) SAVEPOINT active_record_1
10314
+ SQL (0.7ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:09:27 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:09:27 UTC +00:00]]
10315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10316
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10317
+  (0.1ms) SAVEPOINT active_record_1
10318
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
10319
+ ', "updated_at" = '2013-05-11 13:09:27.273671' WHERE "static_docs_pages"."id" = 750201913
10320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10321
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10322
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10323
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10324
+  (0.4ms) rollback transaction
10325
+  (0.1ms) begin transaction
10326
+  (0.1ms) rollback transaction
10327
+  (0.1ms) begin transaction
10328
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
10329
+  (0.1ms) rollback transaction
10330
+  (0.0ms) begin transaction
10331
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
10332
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10333
+  (0.1ms) rollback transaction
10334
+  (0.1ms) begin transaction
10335
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10336
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10337
+  (0.1ms) rollback transaction
10338
+  (0.1ms) begin transaction
10339
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10340
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 892078063]]
10341
+  (0.1ms) rollback transaction
10342
+  (0.1ms) begin transaction
10343
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
10344
+  (0.1ms) rollback transaction
10345
+  (0.1ms) begin transaction
10346
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10347
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 149473849]]
10348
+  (0.1ms) rollback transaction
10349
+  (0.1ms) begin transaction
10350
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10351
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
10352
+  (0.1ms) rollback transaction
10353
+  (0.0ms) begin transaction
10354
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
10355
+  (0.1ms) rollback transaction
10356
+  (0.1ms) begin transaction
10357
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
10358
+  (0.1ms) rollback transaction
10359
+  (0.1ms) begin transaction
10360
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10361
+  (0.1ms) rollback transaction
10362
+  (0.1ms) begin transaction
10363
+  (0.1ms) rollback transaction
10364
+  (0.1ms) begin transaction
10365
+  (0.1ms) rollback transaction
10366
+ Connecting to database specified by database.yml
10367
+  (0.5ms) begin transaction
10368
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:09:58 +0300
10369
+ Processing by StaticDocs::PagesController#show as HTML
10370
+ Parameters: {"page_path"=>""}
10371
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10372
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (2.0ms)
10373
+ Completed 200 OK in 87ms (Views: 32.1ms | ActiveRecord: 1.9ms)
10374
+ Started GET "/page" for 127.0.0.1 at 2013-05-11 16:09:58 +0300
10375
+ Processing by StaticDocs::PagesController#show as HTML
10376
+ Parameters: {"page_path"=>"page"}
10377
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10378
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
10379
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
10380
+ Started GET "/namespace/page" for 127.0.0.1 at 2013-05-11 16:09:58 +0300
10381
+ Processing by StaticDocs::PagesController#show as HTML
10382
+ Parameters: {"page_path"=>"namespace/page"}
10383
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10384
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
10385
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
10386
+ Started GET "/markdown" for 127.0.0.1 at 2013-05-11 16:09:58 +0300
10387
+ Processing by StaticDocs::PagesController#show as HTML
10388
+ Parameters: {"page_path"=>"markdown"}
10389
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
10390
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
10391
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
10392
+ Started GET "/wrong" for 127.0.0.1 at 2013-05-11 16:09:58 +0300
10393
+ Processing by StaticDocs::PagesController#show as HTML
10394
+ Parameters: {"page_path"=>"wrong"}
10395
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
10396
+ Completed 404 Not Found in 1ms
10397
+
10398
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
10399
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
10400
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
10401
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
10402
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
10403
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
10404
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
10405
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__578008877823757867__process_action__3588226566923515769__callbacks'
10406
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10407
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
10408
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10409
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
10410
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
10411
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
10412
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
10413
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
10414
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
10415
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
10416
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
10417
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
10418
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
10419
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
10420
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
10421
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
10422
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
10423
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
10424
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
10425
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
10426
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10427
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10428
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10429
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10430
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10431
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
10432
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10433
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10434
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10435
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10436
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
10437
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
10438
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
10439
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
10440
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
10441
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
10442
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
10443
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
10444
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
10445
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
10446
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
10447
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
10448
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__4087871204609583542__call__2851369235377440454__callbacks'
10449
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10450
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
10451
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10452
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
10453
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
10454
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
10455
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
10456
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
10457
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
10458
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
10459
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
10460
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
10461
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
10462
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
10463
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
10464
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
10465
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
10466
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10467
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
10468
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
10469
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
10470
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
10471
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
10472
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
10473
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
10474
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:25:in `block in <class:NavigationTest>'
10475
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
10476
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
10477
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
10478
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__9631628443349718__setup__2851369235377440454__callbacks'
10479
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10480
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
10481
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10482
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
10483
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
10484
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
10485
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
10486
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
10487
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
10488
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
10489
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
10490
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
10491
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
10492
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
10493
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
10494
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
10495
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
10496
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
10497
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
10498
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
10499
+
10500
+
10501
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
10502
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
10503
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.9ms)
10504
+  (0.1ms) rollback transaction
10505
+  (0.1ms) begin transaction
10506
+ Fixture Delete (0.3ms) DELETE FROM "static_docs_pages"
10507
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 892078063)
10508
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 750201913)
10509
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 573322620)
10510
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Index Page', 'index', 'namespace', '<h3>This is namespaced index page</h3>', 'html', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 149473849)
10511
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 292621806)
10512
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 931033267)
10513
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 11618465)
10514
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 644684649)
10515
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:09:58', '2013-05-11 13:09:58', 326420501)
10516
+  (2.1ms) commit transaction
10517
+  (0.1ms) begin transaction
10518
+ StaticDocs::Page Load (1.6ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10519
+  (0.1ms) SAVEPOINT active_record_1
10520
+ SQL (0.5ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10522
+  (0.1ms) SAVEPOINT active_record_1
10523
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10525
+  (0.1ms) SAVEPOINT active_record_1
10526
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10528
+  (0.1ms) SAVEPOINT active_record_1
10529
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10531
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10532
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10533
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10534
+  (0.5ms) rollback transaction
10535
+  (0.1ms) begin transaction
10536
+  (0.0ms) rollback transaction
10537
+  (0.1ms) begin transaction
10538
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
10539
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10540
+  (0.0ms) SAVEPOINT active_record_1
10541
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'Namespace Main Page', "body" = '<p>Hello from namespace!</p>
10542
+ ', "updated_at" = '2013-05-11 13:09:58.890903' WHERE "static_docs_pages"."id" = 149473849
10543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10544
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10545
+  (0.1ms) SAVEPOINT active_record_1
10546
+  (0.6ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
10547
+ ', "updated_at" = '2013-05-11 13:09:58.897299' WHERE "static_docs_pages"."id" = 292621806
10548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10549
+ StaticDocs::Page Load (0.5ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10550
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10551
+  (0.5ms) rollback transaction
10552
+  (0.0ms) begin transaction
10553
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10554
+  (0.0ms) SAVEPOINT active_record_1
10555
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10557
+  (0.0ms) SAVEPOINT active_record_1
10558
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10560
+  (0.1ms) SAVEPOINT active_record_1
10561
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10563
+  (0.0ms) SAVEPOINT active_record_1
10564
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10566
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10567
+  (0.1ms) SAVEPOINT active_record_1
10568
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
10569
+ ', "updated_at" = '2013-05-11 13:09:58.908885' WHERE "static_docs_pages"."id" = 892078063
10570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10571
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10572
+  (0.1ms) SAVEPOINT active_record_1
10573
+ SQL (0.6ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:09:58 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:09:58 UTC +00:00]]
10574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10575
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10576
+  (0.1ms) SAVEPOINT active_record_1
10577
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
10578
+ ', "updated_at" = '2013-05-11 13:09:58.916944' WHERE "static_docs_pages"."id" = 750201913
10579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10580
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10581
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10582
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10583
+  (0.5ms) rollback transaction
10584
+  (0.1ms) begin transaction
10585
+  (0.1ms) rollback transaction
10586
+  (0.1ms) begin transaction
10587
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
10588
+  (0.1ms) rollback transaction
10589
+  (0.1ms) begin transaction
10590
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
10591
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10592
+  (0.1ms) rollback transaction
10593
+  (0.1ms) begin transaction
10594
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10595
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10596
+  (0.3ms) rollback transaction
10597
+  (0.1ms) begin transaction
10598
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10599
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 892078063]]
10600
+  (0.1ms) rollback transaction
10601
+  (0.1ms) begin transaction
10602
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
10603
+  (0.1ms) rollback transaction
10604
+  (0.1ms) begin transaction
10605
+ StaticDocs::Page Load (0.4ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10606
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 149473849]]
10607
+  (0.1ms) rollback transaction
10608
+  (0.1ms) begin transaction
10609
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10610
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
10611
+  (0.1ms) rollback transaction
10612
+  (0.1ms) begin transaction
10613
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
10614
+  (0.1ms) rollback transaction
10615
+  (0.1ms) begin transaction
10616
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
10617
+  (0.1ms) rollback transaction
10618
+  (0.0ms) begin transaction
10619
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10620
+  (0.1ms) rollback transaction
10621
+  (0.1ms) begin transaction
10622
+  (0.1ms) rollback transaction
10623
+  (0.1ms) begin transaction
10624
+  (0.0ms) rollback transaction
10625
+ Connecting to database specified by database.yml
10626
+  (0.5ms) begin transaction
10627
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:10:11 +0300
10628
+ Processing by StaticDocs::PagesController#show as HTML
10629
+ Completed 500 Internal Server Error in 0ms
10630
+
10631
+ NoMethodError (undefined method `partition' for nil:NilClass):
10632
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:7:in `matched'
10633
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
10634
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
10635
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
10636
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
10637
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
10638
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__2688494261845018888__process_action__4373201141097635680__callbacks'
10639
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10640
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
10641
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10642
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
10643
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
10644
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
10645
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
10646
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
10647
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
10648
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
10649
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
10650
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
10651
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
10652
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
10653
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
10654
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
10655
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
10656
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
10657
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
10658
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
10659
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10660
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10661
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10662
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10663
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10664
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
10665
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10666
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10667
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10668
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10669
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
10670
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
10671
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
10672
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
10673
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
10674
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
10675
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
10676
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
10677
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
10678
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
10679
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
10680
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
10681
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__3162121990036334940__call__1717872673002651010__callbacks'
10682
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10683
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
10684
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10685
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
10686
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
10687
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
10688
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
10689
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
10690
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
10691
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
10692
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
10693
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
10694
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
10695
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
10696
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
10697
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
10698
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
10699
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10700
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
10701
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
10702
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
10703
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
10704
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
10705
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
10706
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
10707
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:7:in `block in <class:NavigationTest>'
10708
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
10709
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
10710
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
10711
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__2455943221597707255__setup__1717872673002651010__callbacks'
10712
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10713
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
10714
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10715
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
10716
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
10717
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
10718
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
10719
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
10720
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
10721
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
10722
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
10723
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
10724
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
10725
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
10726
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
10727
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
10728
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
10729
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
10730
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
10731
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
10732
+
10733
+
10734
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
10735
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
10736
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.2ms)
10737
+  (0.1ms) rollback transaction
10738
+  (0.1ms) begin transaction
10739
+ Fixture Delete (0.3ms) DELETE FROM "static_docs_pages"
10740
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 892078063)
10741
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 750201913)
10742
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 573322620)
10743
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Index Page', 'index', 'namespace', '<h3>This is namespaced index page</h3>', 'html', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 149473849)
10744
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 292621806)
10745
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 931033267)
10746
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 11618465)
10747
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 644684649)
10748
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:10:12', '2013-05-11 13:10:12', 326420501)
10749
+  (2.1ms) commit transaction
10750
+  (0.1ms) begin transaction
10751
+ StaticDocs::Page Load (1.5ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10752
+  (0.1ms) SAVEPOINT active_record_1
10753
+ SQL (0.5ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10755
+  (0.0ms) SAVEPOINT active_record_1
10756
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10758
+  (0.0ms) SAVEPOINT active_record_1
10759
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10761
+  (0.0ms) SAVEPOINT active_record_1
10762
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10764
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10765
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10766
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10767
+  (0.4ms) rollback transaction
10768
+  (0.1ms) begin transaction
10769
+  (0.0ms) rollback transaction
10770
+  (0.0ms) begin transaction
10771
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
10772
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10773
+  (0.0ms) SAVEPOINT active_record_1
10774
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'Namespace Main Page', "body" = '<p>Hello from namespace!</p>
10775
+ ', "updated_at" = '2013-05-11 13:10:12.123614' WHERE "static_docs_pages"."id" = 149473849
10776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10777
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10778
+  (0.0ms) SAVEPOINT active_record_1
10779
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
10780
+ ', "updated_at" = '2013-05-11 13:10:12.129323' WHERE "static_docs_pages"."id" = 292621806
10781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10782
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10783
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10784
+  (0.3ms) rollback transaction
10785
+  (0.1ms) begin transaction
10786
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10787
+  (0.0ms) SAVEPOINT active_record_1
10788
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10790
+  (0.0ms) SAVEPOINT active_record_1
10791
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10793
+  (0.0ms) SAVEPOINT active_record_1
10794
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10796
+  (0.0ms) SAVEPOINT active_record_1
10797
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10799
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10800
+  (0.0ms) SAVEPOINT active_record_1
10801
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
10802
+ ', "updated_at" = '2013-05-11 13:10:12.136884' WHERE "static_docs_pages"."id" = 892078063
10803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10804
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10805
+  (0.1ms) SAVEPOINT active_record_1
10806
+ SQL (0.6ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:10:12 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:10:12 UTC +00:00]]
10807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10808
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10809
+  (0.0ms) SAVEPOINT active_record_1
10810
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
10811
+ ', "updated_at" = '2013-05-11 13:10:12.143856' WHERE "static_docs_pages"."id" = 750201913
10812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10813
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10814
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10815
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
10816
+  (0.4ms) rollback transaction
10817
+  (0.0ms) begin transaction
10818
+  (0.0ms) rollback transaction
10819
+  (0.1ms) begin transaction
10820
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
10821
+  (0.1ms) rollback transaction
10822
+  (0.1ms) begin transaction
10823
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
10824
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
10825
+  (0.1ms) rollback transaction
10826
+  (0.1ms) begin transaction
10827
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10828
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10829
+  (0.1ms) rollback transaction
10830
+  (0.1ms) begin transaction
10831
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
10832
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 892078063]]
10833
+  (0.1ms) rollback transaction
10834
+  (0.1ms) begin transaction
10835
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
10836
+  (0.1ms) rollback transaction
10837
+  (0.1ms) begin transaction
10838
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
10839
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 149473849]]
10840
+  (0.1ms) rollback transaction
10841
+  (0.1ms) begin transaction
10842
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
10843
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
10844
+  (0.1ms) rollback transaction
10845
+  (0.1ms) begin transaction
10846
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
10847
+  (0.1ms) rollback transaction
10848
+  (0.1ms) begin transaction
10849
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
10850
+  (0.1ms) rollback transaction
10851
+  (0.1ms) begin transaction
10852
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
10853
+  (0.1ms) rollback transaction
10854
+  (0.1ms) begin transaction
10855
+  (0.1ms) rollback transaction
10856
+  (0.1ms) begin transaction
10857
+  (0.1ms) rollback transaction
10858
+ Connecting to database specified by database.yml
10859
+  (0.6ms) begin transaction
10860
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:13:32 +0300
10861
+ Processing by StaticDocs::PagesController#show as HTML
10862
+ Completed 500 Internal Server Error in 1ms
10863
+
10864
+ NoMethodError (undefined method `partition' for nil:NilClass):
10865
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:7:in `matched'
10866
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
10867
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
10868
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
10869
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
10870
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
10871
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__2451919645858105325__process_action__1243706911892004746__callbacks'
10872
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10873
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
10874
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10875
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
10876
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
10877
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
10878
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
10879
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
10880
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
10881
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
10882
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
10883
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
10884
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
10885
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
10886
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
10887
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
10888
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
10889
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
10890
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
10891
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
10892
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10893
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10894
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10895
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10896
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10897
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
10898
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
10899
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
10900
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
10901
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
10902
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
10903
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
10904
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
10905
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
10906
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
10907
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
10908
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
10909
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
10910
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
10911
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
10912
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
10913
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
10914
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__1499635002967753842__call__4174236666210020688__callbacks'
10915
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10916
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
10917
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10918
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
10919
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
10920
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
10921
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
10922
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
10923
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
10924
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
10925
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
10926
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
10927
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
10928
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
10929
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
10930
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
10931
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
10932
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
10933
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
10934
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
10935
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
10936
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
10937
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
10938
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
10939
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
10940
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:7:in `block in <class:NavigationTest>'
10941
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
10942
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
10943
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
10944
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__4307901431103404644__setup__4174236666210020688__callbacks'
10945
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
10946
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
10947
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
10948
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
10949
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
10950
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
10951
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
10952
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
10953
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
10954
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
10955
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
10956
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
10957
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
10958
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
10959
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
10960
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
10961
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
10962
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
10963
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
10964
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
10965
+
10966
+
10967
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
10968
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
10969
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.5ms)
10970
+  (0.1ms) rollback transaction
10971
+  (0.1ms) begin transaction
10972
+ Fixture Delete (0.4ms) DELETE FROM "static_docs_pages"
10973
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 892078063)
10974
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 750201913)
10975
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 573322620)
10976
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Index Page', 'index', 'namespace', '<h3>This is namespaced index page</h3>', 'html', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 149473849)
10977
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 292621806)
10978
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 931033267)
10979
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 11618465)
10980
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 644684649)
10981
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:13:32', '2013-05-11 13:13:32', 326420501)
10982
+  (0.7ms) commit transaction
10983
+  (0.0ms) begin transaction
10984
+ StaticDocs::Page Load (2.5ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
10985
+  (0.1ms) SAVEPOINT active_record_1
10986
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
10987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10988
+  (0.0ms) SAVEPOINT active_record_1
10989
+ SQL (0.3ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
10990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10991
+  (0.0ms) SAVEPOINT active_record_1
10992
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
10993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10994
+  (0.0ms) SAVEPOINT active_record_1
10995
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
10996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10997
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10998
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
10999
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
11000
+  (0.4ms) rollback transaction
11001
+  (0.1ms) begin transaction
11002
+  (0.0ms) rollback transaction
11003
+  (0.0ms) begin transaction
11004
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
11005
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
11006
+  (0.0ms) SAVEPOINT active_record_1
11007
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'Namespace Main Page', "body" = '<p>Hello from namespace!</p>
11008
+ ', "updated_at" = '2013-05-11 13:13:32.242194' WHERE "static_docs_pages"."id" = 149473849
11009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11010
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
11011
+  (0.0ms) SAVEPOINT active_record_1
11012
+  (0.3ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
11013
+ ', "updated_at" = '2013-05-11 13:13:32.247738' WHERE "static_docs_pages"."id" = 292621806
11014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11015
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
11016
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
11017
+  (0.5ms) rollback transaction
11018
+  (0.0ms) begin transaction
11019
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
11020
+  (0.0ms) SAVEPOINT active_record_1
11021
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
11022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11023
+  (0.0ms) SAVEPOINT active_record_1
11024
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
11025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11026
+  (0.0ms) SAVEPOINT active_record_1
11027
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
11028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11029
+  (0.0ms) SAVEPOINT active_record_1
11030
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
11031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11032
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
11033
+  (0.1ms) SAVEPOINT active_record_1
11034
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
11035
+ ', "updated_at" = '2013-05-11 13:13:32.256095' WHERE "static_docs_pages"."id" = 892078063
11036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11037
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
11038
+  (0.1ms) SAVEPOINT active_record_1
11039
+ SQL (0.6ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:13:32 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:13:32 UTC +00:00]]
11040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11041
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11042
+  (0.0ms) SAVEPOINT active_record_1
11043
+  (0.1ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
11044
+ ', "updated_at" = '2013-05-11 13:13:32.263079' WHERE "static_docs_pages"."id" = 750201913
11045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11046
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
11047
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11048
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
11049
+  (0.3ms) rollback transaction
11050
+  (0.0ms) begin transaction
11051
+  (0.0ms) rollback transaction
11052
+  (0.1ms) begin transaction
11053
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
11054
+  (0.1ms) rollback transaction
11055
+  (0.0ms) begin transaction
11056
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
11057
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
11058
+  (0.1ms) rollback transaction
11059
+  (0.0ms) begin transaction
11060
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11061
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
11062
+  (0.1ms) rollback transaction
11063
+  (0.0ms) begin transaction
11064
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
11065
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 892078063]]
11066
+  (0.0ms) rollback transaction
11067
+  (0.0ms) begin transaction
11068
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
11069
+  (0.1ms) rollback transaction
11070
+  (0.1ms) begin transaction
11071
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
11072
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 149473849]]
11073
+  (0.1ms) rollback transaction
11074
+  (0.1ms) begin transaction
11075
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
11076
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
11077
+  (0.0ms) rollback transaction
11078
+  (0.0ms) begin transaction
11079
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
11080
+  (0.1ms) rollback transaction
11081
+  (0.1ms) begin transaction
11082
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
11083
+  (0.0ms) rollback transaction
11084
+  (0.0ms) begin transaction
11085
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11086
+  (0.1ms) rollback transaction
11087
+  (0.1ms) begin transaction
11088
+  (0.1ms) rollback transaction
11089
+  (0.1ms) begin transaction
11090
+  (0.1ms) rollback transaction
11091
+ Connecting to database specified by database.yml
11092
+  (0.5ms) begin transaction
11093
+ Started GET "/" for 127.0.0.1 at 2013-05-11 16:13:58 +0300
11094
+ Processing by StaticDocs::PagesController#show as HTML
11095
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
11096
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (2.1ms)
11097
+ Completed 200 OK in 98ms (Views: 35.2ms | ActiveRecord: 1.7ms)
11098
+ Started GET "/page" for 127.0.0.1 at 2013-05-11 16:13:59 +0300
11099
+ Processing by StaticDocs::PagesController#show as HTML
11100
+ Parameters: {"page_path"=>"page"}
11101
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11102
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
11103
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
11104
+ Started GET "/namespace/page" for 127.0.0.1 at 2013-05-11 16:13:59 +0300
11105
+ Processing by StaticDocs::PagesController#show as HTML
11106
+ Parameters: {"page_path"=>"namespace/page"}
11107
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
11108
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
11109
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
11110
+ Started GET "/markdown" for 127.0.0.1 at 2013-05-11 16:13:59 +0300
11111
+ Processing by StaticDocs::PagesController#show as HTML
11112
+ Parameters: {"page_path"=>"markdown"}
11113
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
11114
+ Rendered /Users/mikdiet/projects/opensource/static_docs/app/views/static_docs/pages/show.html.erb within layouts/application (0.1ms)
11115
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
11116
+ Started GET "/wrong" for 127.0.0.1 at 2013-05-11 16:13:59 +0300
11117
+ Processing by StaticDocs::PagesController#show as HTML
11118
+ Parameters: {"page_path"=>"wrong"}
11119
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
11120
+ Completed 404 Not Found in 1ms
11121
+
11122
+ ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
11123
+ /Users/mikdiet/projects/opensource/static_docs/app/models/static_docs/page.rb:8:in `matched'
11124
+ /Users/mikdiet/projects/opensource/static_docs/app/controllers/static_docs/pages_controller.rb:6:in `show'
11125
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
11126
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
11127
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
11128
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
11129
+ activesupport (3.2.13) lib/active_support/callbacks.rb:414:in `_run__802096319218551438__process_action__3360363290998529114__callbacks'
11130
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
11131
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
11132
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
11133
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
11134
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
11135
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
11136
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
11137
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
11138
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
11139
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
11140
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
11141
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
11142
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
11143
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
11144
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
11145
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
11146
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
11147
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
11148
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
11149
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
11150
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
11151
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
11152
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
11153
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
11154
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
11155
+ railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
11156
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
11157
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
11158
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
11159
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
11160
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
11161
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
11162
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
11163
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
11164
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
11165
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
11166
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
11167
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
11168
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
11169
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
11170
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
11171
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
11172
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__2897513748457042342__call__2575300510438794658__callbacks'
11173
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
11174
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
11175
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
11176
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
11177
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
11178
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
11179
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
11180
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
11181
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
11182
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
11183
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
11184
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
11185
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
11186
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
11187
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
11188
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
11189
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
11190
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
11191
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
11192
+ rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
11193
+ rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
11194
+ rack-test (0.6.2) lib/rack/test.rb:123:in `request'
11195
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:299:in `process'
11196
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:33:in `get'
11197
+ actionpack (3.2.13) lib/action_dispatch/testing/integration.rb:333:in `block (2 levels) in <module:Runner>'
11198
+ /Users/mikdiet/projects/opensource/static_docs/test/integration/navigation_test.rb:25:in `block in <class:NavigationTest>'
11199
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
11200
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
11201
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
11202
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__2627406916410929379__setup__2575300510438794658__callbacks'
11203
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
11204
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
11205
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
11206
+ activesupport (3.2.13) lib/active_support/testing/setup_and_teardown.rb:35:in `run'
11207
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
11208
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
11209
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
11210
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
11211
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `each'
11212
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
11213
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
11214
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
11215
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
11216
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
11217
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
11218
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
11219
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:21:in `run'
11220
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
11221
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
11222
+ /Users/mikdiet/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
11223
+
11224
+
11225
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
11226
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
11227
+ Rendered /Users/mikdiet/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.5ms)
11228
+  (0.1ms) rollback transaction
11229
+  (0.1ms) begin transaction
11230
+ Fixture Delete (0.2ms) DELETE FROM "static_docs_pages"
11231
+ Fixture Insert (0.2ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Main page', 'index', '<h3>This is home page</h3>', 'html', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 892078063)
11232
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'page', '<h3>This is first level page</h3>', 'html', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 750201913)
11233
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('First Level Page', 'path/to/page', '<h3>This is third level page</h3>', 'html', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 573322620)
11234
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Index Page', 'index', 'namespace', '<h3>This is namespaced index page</h3>', 'html', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 149473849)
11235
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'page', 'namespace', '<h3>This is namespaced page</h3>', 'html', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 292621806)
11236
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Namespaced Page', 'namespace/page', '<h3>This is not namespaced page</h3>', 'html', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 931033267)
11237
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "namespace", "body", "extension", "created_at", "updated_at", "id") VALUES ('Wrong Namespaced Page', 'page', 'wrong', '<h3>This is wrong namespaced page</h3>', 'html', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 11618465)
11238
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Markdown Page', 'markdown', '### This is markdown page', 'md', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 644684649)
11239
+ Fixture Insert (0.1ms) INSERT INTO "static_docs_pages" ("title", "path", "body", "extension", "created_at", "updated_at", "id") VALUES ('Text Page', 'text', 'some text', 'txt', '2013-05-11 13:13:59', '2013-05-11 13:13:59', 326420501)
11240
+  (2.2ms) commit transaction
11241
+  (0.1ms) begin transaction
11242
+ StaticDocs::Page Load (1.7ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
11243
+  (0.1ms) SAVEPOINT active_record_1
11244
+ SQL (0.5ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
11245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11246
+  (0.1ms) SAVEPOINT active_record_1
11247
+ SQL (0.4ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
11248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11249
+  (0.0ms) SAVEPOINT active_record_1
11250
+ SQL (0.1ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
11251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11252
+  (0.0ms) SAVEPOINT active_record_1
11253
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
11254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11255
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
11256
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
11257
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
11258
+  (0.4ms) rollback transaction
11259
+  (0.1ms) begin transaction
11260
+  (0.0ms) rollback transaction
11261
+  (0.0ms) begin transaction
11262
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND (path not in ('page','index'))
11263
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
11264
+  (0.0ms) SAVEPOINT active_record_1
11265
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'Namespace Main Page', "body" = '<p>Hello from namespace!</p>
11266
+ ', "updated_at" = '2013-05-11 13:13:59.080270' WHERE "static_docs_pages"."id" = 149473849
11267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11268
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
11269
+  (0.1ms) SAVEPOINT active_record_1
11270
+  (0.4ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Namespaced Page', "body" = '<p>Hello, Namespace!</p>
11271
+ ', "updated_at" = '2013-05-11 13:13:59.086198' WHERE "static_docs_pages"."id" = 292621806
11272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11273
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
11274
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
11275
+  (0.4ms) rollback transaction
11276
+  (0.0ms) begin transaction
11277
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND (path not in ('getting-started','page','index'))
11278
+  (0.0ms) SAVEPOINT active_record_1
11279
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 326420501]]
11280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11281
+  (0.0ms) SAVEPOINT active_record_1
11282
+ SQL (0.2ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 573322620]]
11283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11284
+  (0.0ms) SAVEPOINT active_record_1
11285
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 644684649]]
11286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11287
+  (0.0ms) SAVEPOINT active_record_1
11288
+ SQL (0.0ms) DELETE FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? [["id", 931033267]]
11289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11290
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
11291
+  (0.1ms) SAVEPOINT active_record_1
11292
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'Main Page', "body" = '<p>Hello from homepage!</p>
11293
+ ', "updated_at" = '2013-05-11 13:13:59.095154' WHERE "static_docs_pages"."id" = 892078063
11294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11295
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
11296
+  (0.1ms) SAVEPOINT active_record_1
11297
+ SQL (0.4ms) INSERT INTO "static_docs_pages" ("body", "created_at", "extension", "namespace", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["body", "<p>Welcome, Newbie!</p>\n"], ["created_at", Sat, 11 May 2013 13:13:59 UTC +00:00], ["extension", "html"], ["namespace", nil], ["path", "getting-started"], ["title", "Getting Started"], ["updated_at", Sat, 11 May 2013 13:13:59 UTC +00:00]]
11298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11299
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11300
+  (0.0ms) SAVEPOINT active_record_1
11301
+  (0.2ms) UPDATE "static_docs_pages" SET "title" = 'This is Just Page', "body" = '<p>Hello, World!</p>
11302
+ ', "updated_at" = '2013-05-11 13:13:59.101409' WHERE "static_docs_pages"."id" = 750201913
11303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11304
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
11305
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11306
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'getting-started' LIMIT 1
11307
+  (0.5ms) rollback transaction
11308
+  (0.1ms) begin transaction
11309
+  (0.0ms) rollback transaction
11310
+  (0.1ms) begin transaction
11311
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'markdown' LIMIT 1
11312
+  (0.1ms) rollback transaction
11313
+  (0.1ms) begin transaction
11314
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'path/to/page' LIMIT 1
11315
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 573322620]]
11316
+  (0.1ms) rollback transaction
11317
+  (0.0ms) begin transaction
11318
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11319
+ StaticDocs::Page Load (0.0ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 750201913]]
11320
+  (0.1ms) rollback transaction
11321
+  (0.1ms) begin transaction
11322
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'index' LIMIT 1
11323
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 892078063]]
11324
+  (0.1ms) rollback transaction
11325
+  (0.1ms) begin transaction
11326
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'text' LIMIT 1
11327
+  (0.1ms) rollback transaction
11328
+  (0.1ms) begin transaction
11329
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'index' LIMIT 1
11330
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 149473849]]
11331
+  (0.1ms) rollback transaction
11332
+  (0.1ms) begin transaction
11333
+ StaticDocs::Page Load (0.3ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" = 'namespace' AND "static_docs_pages"."path" = 'page' LIMIT 1
11334
+ StaticDocs::Page Load (0.1ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."id" = ? LIMIT 1 [["id", 292621806]]
11335
+  (0.1ms) rollback transaction
11336
+  (0.1ms) begin transaction
11337
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong/page' LIMIT 1
11338
+  (0.1ms) rollback transaction
11339
+  (0.1ms) begin transaction
11340
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'wrong' LIMIT 1
11341
+  (0.0ms) rollback transaction
11342
+  (0.1ms) begin transaction
11343
+ StaticDocs::Page Load (0.2ms) SELECT "static_docs_pages".* FROM "static_docs_pages" WHERE "static_docs_pages"."namespace" IS NULL AND "static_docs_pages"."path" = 'page' LIMIT 1
11344
+  (0.0ms) rollback transaction
11345
+  (0.2ms) begin transaction
11346
+  (0.1ms) rollback transaction
11347
+  (0.1ms) begin transaction
11348
+  (0.1ms) rollback transaction