guts 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/app/assets/javascripts/guts/application.js.erb +2 -0
  4. data/app/assets/stylesheets/guts/application.scss +2 -0
  5. data/lib/guts/version.rb +1 -1
  6. data/test/dummy/db/test.sqlite3 +0 -0
  7. data/test/dummy/log/development.log +1037 -0
  8. data/test/dummy/log/test.log +3434 -0
  9. data/test/dummy/public/system/guts/media/166/075/618/compact/spongebob.png +0 -0
  10. data/test/dummy/public/system/guts/media/166/075/618/grande/spongebob.png +0 -0
  11. data/test/dummy/public/system/guts/media/166/075/618/large/spongebob.png +0 -0
  12. data/test/dummy/public/system/guts/media/166/075/618/medium/spongebob.png +0 -0
  13. data/test/dummy/public/system/guts/media/166/075/618/small/spongebob.png +0 -0
  14. data/test/dummy/public/system/guts/media/166/075/618/supreme/spongebob.png +0 -0
  15. data/test/dummy/public/system/guts/media/166/075/618/thumb/spongebob.png +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-8/-8pGGzMGytoHAqvyxqaQiKnhzox6ajvz-NoJA7xqf34.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/09/099qH9C2t9SxDmbjUOfIggX9zquKWX5x3clAAQTLolw.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0R/0RVr_vjG8k5-V2ELl1G5ZXJNJKxkQe9r8r__xvFzuwE.cache +2 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/17/17PuZfqH1UgU63gcYUSIbtfiYDzq9yRPLAhVcDLlocg.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1_/1_imIFGnUz8IGkftDJbBK1yaTF12UDnJUUxmktSm7OM.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3E/3E0rNP85dUFjTYnTzs8wVXNvaAOFt45i5FS6bqgiQHc.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/45/45hsVNj6U1894ziY_nm6rBqmLPSiHwpqGWiabCHyYOQ.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4k/4k3YSVbeTjnvkh52re7ubw5OEHapD8IPhRmdVSS9A5g.cache +1 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4o/4olrVUlPJEgCHfaS-zpoaqcL8jhkI-E80XqNEX5gqAI.cache +1 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8f/8fPSd5VODr5zafhFtmDNsGG16g-K-9l-vu1VF-FO_3c.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9E/9EISAQGFyzUMqClLUKzkDjGw1TlJSqbLgEf9B5a5JLY.cache +7 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BV/BVYsptjq26AvToiDXoLBWBnsF3G7f32cs4OgPpKE3vk.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bi/BindLwCJAceTBD7rXrLhJ9I97TviD22NA1KTqLIEcds.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cp/CpJhc84ikUAajbHDeka-q2pBQC-7xLoAcyGKQhLjC2A.cache +1 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/D9/D9X2za6MGjJgQxahu7vgsc8nd8_yTjb1tYEtOOUIfdI.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DH/DH_h7-_wtGtSJcOK4q2XwGb3_wiGFshadUXE1DUZ1Dw.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWyHiaLwMUiI__cdOFwTXdU8SD6Lr_9mrzKG56Uglgs.cache +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/E1/E19xh5BAVvZMe7Ny2F0WCT39ef1Q60sl-FFWsAQzvWQ.cache +1 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/FB/FBHhDgrc3BqIzE-gmYDkbsbui8GAvRJzTqIVyPqsiEA.cache +1 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ft/fTYeJrrLPkCrubgRF-vuaVt8XRDjtyq3rIUTw-9O-Vw.cache +1 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fu/FuWKcmBc2VSsDPDXW-IFHlzxsdwPjxb6hgjiDpac4nI.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fu/fUDpTguuIjHB1CZIS7VWrC2uQA6PDoaYUxsgsiWN1og.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/O6/O6eUoiV8uRYJT2OIoNcooaL1nmgGjEXwEWPS5hsHrvo.cache +1 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ou/OuYld_eZw6NMMbWqX_ac1o1Ty_5WV6f4QurfUCn2Uw8.cache +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ox/oxeVu1PsgrOqY06NU3x7LXcKmDmo8SrAdbUC0sImRog.cache +1 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ps/psNLm4SHkOazJDlN9j0nk9F9UKValtRW4ED2czUh1bk.cache +1 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rq/rQp2EQP7stU5brUF-3lfhGJx6Iso1Lmtt_PGghRaDVs.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/T2/T2UROv9oqEEO2x9_kGzu6__vn50vfO_kKq6AD2-HvTQ.cache +0 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TJ/TJc9SkhRPWeqJTjdgMkXa0ObY-nFFYPFfA6FY93g1BQ.cache +0 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TR/TRhSO8Tg2cljJHorDYCVj2GOYMNtC_9AnMpNO91B0tw.cache +0 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tf/Tfx8xmax8P2whou7ruPzLBvLcUv0PFiSX-1Z4AEWVt0.cache +1 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v3.0/U2/u2UMmMz1hKca3z5vuJPyAPZZKEBRtinEGv3EHebn520.cache +0 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UB/UBKnit5-fiVhYE7RlM5mBjstQphGH1G-acGJRvBt-Zs.cache +1 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ui/uidZtywoiBwu3PWGLbWWP4nnG5raMShRdfAS_gc3u2Q.cache +0 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/VH/VH6aTrqr5H4zeU2pwfaznFUjlrQ9gYubXTM1keHdFf0.cache +0 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/W2/W2AL36yJ8-cA-ZH0NzW8r15o1jfSapNUwFljdPmPllI.cache +0 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/XU/XUeP5tam7KywBQqT7bd_0QGM9w8ifIsOZwM_XdmnxkA.cache +0 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ye/yelm9jGQ_im-vmZ4CQWI_Ntk3sHT0wA0tnbwq-6gmOk.cache +0 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yt/YtDfYqSdzlKTO1FZxT818-KM7SLLpeUFYNDXKTKF30g.cache +0 -0
  55. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZH/ZHAMOrkXYILcn2fnwsesWKutDMMCZ4Anux7f4utYLuU.cache +1 -0
  56. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZX/ZXuUrEZvruy8oSDuPcnkPkgUqqCzxzGmf7wIKOgl5zQ.cache +0 -0
  57. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_G/_gPFwN3Mpe8vsl1e9WsNg_hCLvXUZ8ZZeF_8_X9J2lc.cache +0 -0
  58. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JngYZDewKo2tNA0dc5t8C_EA3KMg0qIivImvssv43M.cache +1 -0
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ap/APl89FO7l_m_Snd35oE39XNMlz4V_8nI8daLbX_ZmYY.cache +0 -0
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bw/bw3rEYP5OyZUYJ6U0vRPJr_bfgQk_k29yN80k3FS7gQ.cache +1 -0
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cJ/cJkLWbWNBfZXoU7OMhFC8sbDaKADc_FDBShAAC1Abv8.cache +0 -0
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cu/cuQo7ohpXnKJ1Xrd34ygunKennPEcZgnTUFhOFrhtc4.cache +0 -0
  63. data/test/dummy/tmp/cache/assets/sprockets/v3.0/da/daehZQfQ7KBlb_rL4FIwWz4BPqi52FtaCsW-RmXt-dk.cache +1 -0
  64. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dq/Dqz7meh_VfnoCDIXG510A8vnzxJ7t8EJhOW-dgiQzyE.cache +0 -0
  65. data/test/dummy/tmp/cache/assets/sprockets/v3.0/du/dUJB8glMGLZOehHVIPflJZU9LeV2BwfY76ktRpLa3w8.cache +1 -0
  66. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eJ/eJ-XLo5jaw_2cPYUeS9HG3EPu_-lfM-2QqSdxe9aGps.cache +0 -0
  67. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gg/GGXopbVGcPvY1M_r-q5gULQyMgnAQqalf0S1pvsl9Co.cache +1 -0
  68. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gg/ggDqUNNflpQrw0jW7f-NZ6hHAJQY1AEh3698yTN5Sfk.cache +0 -0
  69. data/test/dummy/tmp/cache/assets/sprockets/v3.0/h-/h--JkR6hCpd2RJWhAjr2fY4GczcwSBcnO62nx5TL97E.cache +0 -0
  70. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hk/hkGbM-pCwbdCSrGYhSfJBB5CdnC3DNK7NuRR-aXZ-xY.cache +0 -0
  71. data/test/dummy/tmp/cache/assets/sprockets/v3.0/iD/iDPUIheh0Op8vm7zXX5bLTjFqTq0TYdvLD5HZIp1zGQ.cache +1 -0
  72. data/test/dummy/tmp/cache/assets/sprockets/v3.0/if/IfE6WOk1agCMYF_oYosGhVJgUH897nQfaw8VPWKG9yQ.cache +1 -0
  73. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kI/KiHBp2QJ-HjwQczi-puoLOKrTkaHb2J1Q2_lGB0aTBA.cache +1 -0
  74. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kQ/kq-Ccqxlq6aHD27_K4qA9NZc1rxLRa5Llxx9BO-sr08.cache +0 -0
  75. data/test/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4KNE0Mlncn6Sf7qmNKshhD-9GdOkPcsH0UXDMV4EjI.cache +1 -0
  76. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mS/mS7EZilwa-PdpRW9Xzcp0YhqtLNeVMCbKxyOxR9c2jU.cache +0 -0
  77. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mW/mWwpo2Dmm96lQmbICHqb6w-SDZGufaHmTNLAiRfQKzI.cache +0 -0
  78. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mu/MUoWG4zqxLuQ0-xVgifFTHJc_dMIT39u3qoiHFOqR08.cache +1 -0
  79. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nQ/NQCpbP3a6WJ71sYMIZvejr6a85_VpV0-wZIGUO1OQRI.cache +0 -0
  80. data/test/dummy/tmp/cache/assets/sprockets/v3.0/oa/oauMjL1YMJWi7PIGBna6m0ekA04c2V6PFoZAaKjYqHA.cache +2 -0
  81. data/test/dummy/tmp/cache/assets/sprockets/v3.0/op/opZcC326kiA5-YIpLGMfN63_TeTLWknWP_i_vlu1pD8.cache +0 -0
  82. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pt/ptSYbUClG0UfORL3ufh4meJlL_-iL5iXIZDmtzcHVTU.cache +1 -0
  83. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qy/qyHYLy8xV3s0nfi47dT6GsMTdcJsM8cxjh50nyMBbFo.cache +1 -0
  84. data/test/dummy/tmp/cache/assets/sprockets/v3.0/r1/r1zmkSw6B3_a443RRl9d2noRfiNg_jQFBJOcYQl_16I.cache +0 -0
  85. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sc/scdvn07Yu5BZY2Q-WZjF4w8OeRYBzN4ZoGedLvvlG4I.cache +2 -0
  86. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tQ/tQ4XnBYh51t6yC0wT-4i52Wg9GKtT3P2WPUa5aIDEag.cache +1 -0
  87. data/test/dummy/tmp/cache/assets/sprockets/v3.0/w_/w_53Ba2fflac01qqKq0S-5CskkBaggUqX7COPhjWsy4.cache +0 -0
  88. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xG/xGmxbkw__dleUjUlPqnH8BHAIrIJQP1c7xuKxUpWY-c.cache +1 -0
  89. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yz/yzJuajdKHlRwvOGDWUAWvk6yA_49WPWjeu1u2bb0x1c.cache +1 -0
  90. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zI/zISFNKtf8OmLcM9yfg4eQhwYojSOQNcQSoGekzaAb2g.cache +0 -0
  91. metadata +152 -2
@@ -679452,3 +679452,3437 @@ Processing by Guts::UsersController#index as HTML
679452
679452
  Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679453
679453
  Completed 200 OK in 47ms (Views: 44.3ms | ActiveRecord: 0.6ms)
679454
679454
   (0.1ms) rollback transaction
679455
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
679456
+  (0.2ms) begin transaction
679457
+ Fixture Delete (1.4ms) DELETE FROM "guts_categories"
679458
+ Fixture Insert (0.5ms) INSERT INTO "guts_categories" ("title", "slug", "created_at", "updated_at", "id") VALUES ('Super Category!', 'super-category', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 321852057)
679459
+ Fixture Delete (0.3ms) DELETE FROM "guts_categorizations"
679460
+ Fixture Insert (0.1ms) INSERT INTO "guts_categorizations" ("created_at", "updated_at", "id", "category_id", "content_id") VALUES ('2016-04-28 03:45:23', '2016-04-28 03:45:23', 824976873, 321852057, 292789487)
679461
+ Fixture Delete (0.8ms) DELETE FROM "guts_contents"
679462
+ Fixture Insert (0.1ms) INSERT INTO "guts_contents" ("title", "slug", "tags", "content", "visible", "created_at", "updated_at", "id", "type_id", "user_id") VALUES ('Test Page', 'test-page', 'one,two,three', 'Test page content', 1, '2016-04-28 03:45:23', '2016-04-28 03:45:23', 292789487, 186272755, 764040363)
679463
+ Fixture Insert (0.1ms) INSERT INTO "guts_contents" ("title", "slug", "tags", "content", "visible", "created_at", "updated_at", "id", "type_id") VALUES ('Test Page 2', 'test-page-2', NULL, 'Test page content 2', 1, '2016-04-28 03:45:23', '2016-04-28 03:45:23', 343024605, 186272755)
679464
+ Fixture Delete (0.7ms) DELETE FROM "guts_groups"
679465
+ Fixture Insert (0.1ms) INSERT INTO "guts_groups" ("title", "slug", "created_at", "updated_at", "id") VALUES ('Admins', 'admins', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 639558351)
679466
+ Fixture Delete (1.1ms) DELETE FROM "guts_media"
679467
+ Fixture Insert (0.2ms) INSERT INTO "guts_media" ("title", "position", "tags", "caption", "file_file_name", "file_content_type", "file_file_size", "created_at", "updated_at", "id", "filable_type", "filable_id") VALUES ('Pepper', 0, NULL, 'My dog', 'Pepper.jpg', 'image/jpg', 129314, '2016-04-28 03:45:23', '2016-04-28 03:45:23', 166075617, 'Guts::Content', 292789487)
679468
+ Fixture Delete (1.0ms) DELETE FROM "guts_metafields"
679469
+ Fixture Insert (0.1ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield', 'Test Value', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 434488443, 'Guts::Content', 292789487)
679470
+ Fixture Insert (0.1ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield 2', 'Test Value 2', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 474667608, 'Guts::Type', 186272755)
679471
+ Fixture Insert (0.1ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield 3', 'Test Value 3', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 487021368, 'Guts::User', 764040363)
679472
+ Fixture Insert (0.1ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield 4', 'Test Value 4', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 447581302, 'Guts::Group', 639558351)
679473
+ Fixture Insert (0.1ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield 5', 'Test Value 5', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 935320442, 'Guts::Category', 321852057)
679474
+ Fixture Insert (0.1ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield 6', 'Test Value 6', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 248487536, 'Guts::Navigation', 839480070)
679475
+ Fixture Insert (0.4ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield 7', 'Test Value 7', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 105934342, 'Guts::NavigationItem', 374718506)
679476
+ Fixture Insert (0.1ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at", "id", "fieldable_type", "fieldable_id") VALUES ('Test Metafield 8', 'Test Value 8', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 970425500, 'Guts::Site', 749875938)
679477
+ Fixture Delete (0.9ms) DELETE FROM "guts_navigation_items"
679478
+ Fixture Insert (0.1ms) INSERT INTO "guts_navigation_items" ("title", "custom", "position", "created_at", "updated_at", "id", "navigation_id", "navigatable_type", "navigatable_id") VALUES ('Test Nav Item', NULL, 0, '2016-04-28 03:45:23', '2016-04-28 03:45:23', 374718506, 839480070, 'Guts::Content', 292789487)
679479
+ Fixture Insert (0.1ms) INSERT INTO "guts_navigation_items" ("title", "custom", "position", "created_at", "updated_at", "id", "navigation_id") VALUES ('Test Nav Item', 'http://google.ca/', 0, '2016-04-28 03:45:23', '2016-04-28 03:45:23', 368097465, 839480070)
679480
+ Fixture Delete (0.7ms) DELETE FROM "guts_navigations"
679481
+ Fixture Insert (0.1ms) INSERT INTO "guts_navigations" ("title", "slug", "created_at", "updated_at", "id") VALUES ('Test Nav', 'test-nav', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 839480070)
679482
+ Fixture Delete (0.6ms) DELETE FROM "guts_options"
679483
+ Fixture Insert (0.1ms) INSERT INTO "guts_options" ("key", "value", "created_at", "updated_at", "id") VALUES ('test_key', '123', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 202528441)
679484
+ Fixture Delete (0.3ms) DELETE FROM "guts_sites"
679485
+ Fixture Insert (0.1ms) INSERT INTO "guts_sites" ("name", "domain", "default", "created_at", "updated_at", "id") VALUES ('Test Site', 'testsite.com', 't', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 749875938)
679486
+ Fixture Insert (0.1ms) INSERT INTO "guts_sites" ("name", "domain", "created_at", "updated_at", "id") VALUES ('Fr Test Site', 'fr.testsite.com', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 27609037)
679487
+ Fixture Delete (0.9ms) DELETE FROM "guts_trackers"
679488
+ Fixture Insert (0.1ms) INSERT INTO "guts_trackers" ("action", "params", "created_at", "updated_at", "id", "object_type", "object_id") VALUES ('update', '{"title": ["X", "Y"]}
679489
+ ', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 980190962, 'Guts::Content', 292789487)
679490
+ Fixture Insert (0.1ms) INSERT INTO "guts_trackers" ("action", "created_at", "updated_at", "id", "object_type", "object_id") VALUES ('create', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 298486374, 'Guts::Content', 292789487)
679491
+ Fixture Delete (0.9ms) DELETE FROM "guts_types"
679492
+ Fixture Insert (0.1ms) INSERT INTO "guts_types" ("title", "slug", "created_at", "updated_at", "id") VALUES ('Page', 'page', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 186272755)
679493
+ Fixture Delete (0.1ms) DELETE FROM "guts_user_groups"
679494
+ Fixture Insert (0.1ms) INSERT INTO "guts_user_groups" ("created_at", "updated_at", "id", "user_id", "group_id") VALUES ('2016-04-28 03:45:23', '2016-04-28 03:45:23', 259900609, 764040363, 639558351)
679495
+ Fixture Delete (0.4ms) DELETE FROM "guts_users"
679496
+ Fixture Insert (0.1ms) INSERT INTO "guts_users" ("name", "email", "password_digest", "password_token", "created_at", "updated_at", "id") VALUES ('Test Admin', 'test@domain.com', '$2a$10$qP12pM/8UmdPDcswlLQPO.xXQFlXBFu2kMLh.KNs3GcUXF0/8zwTS', '123456', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 764040363)
679497
+ Fixture Insert (0.1ms) INSERT INTO "guts_users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('Test Regular', 'test_regular@domain.com', '$2a$10$3ks/ZEG.H4V5UuAyf/zsEO0JXrX99UgDYBNYjs1TJ/E4JB726Pogq', '2016-04-28 03:45:23', '2016-04-28 03:45:23', 567506384)
679498
+  (1.4ms) commit transaction
679499
+  (0.1ms) begin transaction
679500
+ ----------------------------------------------------
679501
+ Guts::UsersHelperTest: test_returns_a_gravatar_image
679502
+ ----------------------------------------------------
679503
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679504
+  (0.1ms) rollback transaction
679505
+  (0.0ms) begin transaction
679506
+ -------------------------------------------------------------
679507
+ Guts::MetafieldsControllerTest: test_should_destroy_metafield
679508
+ -------------------------------------------------------------
679509
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679510
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679511
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679512
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL
679513
+ Processing by Guts::MetafieldsController#destroy as HTML
679514
+ Parameters: {"id"=>"434488443", "content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679515
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679516
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679517
+ Guts::Group Load (0.2ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679518
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679519
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679520
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679521
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679522
+  (0.0ms) SAVEPOINT active_record_1
679523
+ SQL (0.2ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 434488443]]
679524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
679525
+ Redirected to http://test.host/guts/contents/test-page/metafields
679526
+ Completed 302 Found in 40ms (ActiveRecord: 1.1ms)
679527
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL
679528
+  (0.4ms) rollback transaction
679529
+  (0.1ms) begin transaction
679530
+ -------------------------------------------------------------------------------------
679531
+ Guts::MetafieldsControllerTest: test_should_not_create_metafield_and_send_back_to_new
679532
+ -------------------------------------------------------------------------------------
679533
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679534
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679535
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679536
+ Processing by Guts::MetafieldsController#create as HTML
679537
+ Parameters: {"metafield"=>{"key"=>"", "value"=>""}, "content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679538
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679539
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679540
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679541
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679542
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679543
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679544
+  (0.0ms) SAVEPOINT active_record_1
679545
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
679546
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/_form.html.erb (20.3ms)
679547
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/new.html.erb within layouts/guts/application (27.5ms)
679548
+ Rendered guts/application/_layout_hook.html.erb (0.4ms)
679549
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679550
+ Completed 200 OK in 1095ms (Views: 1075.6ms | ActiveRecord: 0.5ms)
679551
+  (0.1ms) rollback transaction
679552
+  (0.1ms) begin transaction
679553
+ ----------------------------------------------------------
679554
+ Guts::MetafieldsControllerTest: test_should_show_metafield
679555
+ ----------------------------------------------------------
679556
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679557
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679558
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679559
+ Processing by Guts::MetafieldsController#show as HTML
679560
+ Parameters: {"id"=>"434488443", "content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679561
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679562
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679563
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679564
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679565
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679566
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679567
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679568
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/show.html.erb within layouts/guts/application (4.4ms)
679569
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679570
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679571
+ Completed 200 OK in 52ms (Views: 45.5ms | ActiveRecord: 0.4ms)
679572
+  (0.1ms) rollback transaction
679573
+  (0.1ms) begin transaction
679574
+ ----------------------------------------------------
679575
+ Guts::MetafieldsControllerTest: test_should_get_edit
679576
+ ----------------------------------------------------
679577
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679578
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679579
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679580
+ Processing by Guts::MetafieldsController#edit as HTML
679581
+ Parameters: {"id"=>"434488443", "content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679582
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679583
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679584
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679585
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679586
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679587
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679588
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679589
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/_form.html.erb (12.0ms)
679590
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/edit.html.erb within layouts/guts/application (13.5ms)
679591
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679592
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679593
+ Completed 200 OK in 58ms (Views: 50.4ms | ActiveRecord: 0.5ms)
679594
+  (0.1ms) rollback transaction
679595
+  (0.1ms) begin transaction
679596
+ -----------------------------------------------------
679597
+ Guts::MetafieldsControllerTest: test_should_get_index
679598
+ -----------------------------------------------------
679599
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679600
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679601
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679602
+ Processing by Guts::MetafieldsController#index as HTML
679603
+ Parameters: {"content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679604
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679605
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679606
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679607
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679608
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679609
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679610
+  (0.2ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 292789487], ["fieldable_type", "Guts::Content"]]
679611
+ Guts::Metafield Load (0.2ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 292789487], ["fieldable_type", "Guts::Content"]]
679612
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/index.html.erb within layouts/guts/application (23.2ms)
679613
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679614
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679615
+ Completed 200 OK in 69ms (Views: 61.4ms | ActiveRecord: 0.8ms)
679616
+  (0.1ms) rollback transaction
679617
+  (0.1ms) begin transaction
679618
+ ------------------------------------------------------------
679619
+ Guts::MetafieldsControllerTest: test_should_update_metafield
679620
+ ------------------------------------------------------------
679621
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679622
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679623
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679624
+ Processing by Guts::MetafieldsController#update as HTML
679625
+ Parameters: {"metafield"=>{"key"=>"Demo Me"}, "id"=>"434488443", "content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679626
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679627
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679628
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679629
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679630
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679631
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679632
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679633
+  (0.1ms) SAVEPOINT active_record_1
679634
+ SQL (0.4ms) UPDATE "guts_metafields" SET "key" = ?, "updated_at" = ? WHERE "guts_metafields"."id" = ? [["key", "Demo Me"], ["updated_at", "2016-04-28 03:45:24.915659"], ["id", 434488443]]
679635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
679636
+ Redirected to http://test.host/guts/contents/test-page/metafields
679637
+ Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
679638
+  (0.4ms) rollback transaction
679639
+  (0.1ms) begin transaction
679640
+ ----------------------------------------------------------------------
679641
+ Guts::MetafieldsControllerTest: test_should_get_index_for_non_friendly
679642
+ ----------------------------------------------------------------------
679643
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679644
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679645
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679646
+ Processing by Guts::MetafieldsController#index as HTML
679647
+ Parameters: {"user_id"=>"764040363", "fieldable_type"=>"Guts::User"}
679648
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679649
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679650
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679651
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679652
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 764040363], ["fieldable_type", "Guts::User"]]
679653
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 764040363], ["fieldable_type", "Guts::User"]]
679654
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/index.html.erb within layouts/guts/application (15.9ms)
679655
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679656
+ Guts::Type Load (0.6ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679657
+ Completed 200 OK in 58ms (Views: 52.5ms | ActiveRecord: 0.9ms)
679658
+  (0.1ms) rollback transaction
679659
+  (0.1ms) begin transaction
679660
+ ---------------------------------------------------
679661
+ Guts::MetafieldsControllerTest: test_should_get_new
679662
+ ---------------------------------------------------
679663
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679664
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679665
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679666
+ Processing by Guts::MetafieldsController#new as HTML
679667
+ Parameters: {"content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679668
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679669
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679670
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679671
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679672
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679673
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679674
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/_form.html.erb (19.6ms)
679675
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/new.html.erb within layouts/guts/application (20.2ms)
679676
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679677
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679678
+ Completed 200 OK in 61ms (Views: 54.7ms | ActiveRecord: 0.5ms)
679679
+  (0.1ms) rollback transaction
679680
+  (0.1ms) begin transaction
679681
+ ----------------------------------------------------------------------------------------
679682
+ Guts::MetafieldsControllerTest: test_should_fail_to_edit_metafield_and_send_back_to_edit
679683
+ ----------------------------------------------------------------------------------------
679684
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679685
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679686
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679687
+ Processing by Guts::MetafieldsController#update as HTML
679688
+ Parameters: {"metafield"=>{"key"=>""}, "id"=>"434488443", "content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679689
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679690
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679691
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679692
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679693
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679694
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679695
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679696
+  (0.1ms) SAVEPOINT active_record_1
679697
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
679698
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/_form.html.erb (8.0ms)
679699
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/metafields/edit.html.erb within layouts/guts/application (8.6ms)
679700
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679701
+ Guts::Type Load (0.4ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679702
+ Completed 200 OK in 54ms (Views: 45.6ms | ActiveRecord: 1.0ms)
679703
+  (0.1ms) rollback transaction
679704
+  (0.1ms) begin transaction
679705
+ ------------------------------------------------------------
679706
+ Guts::MetafieldsControllerTest: test_should_create_metafield
679707
+ ------------------------------------------------------------
679708
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679709
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
679710
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679711
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL
679712
+ Processing by Guts::MetafieldsController#create as HTML
679713
+ Parameters: {"metafield"=>{"key"=>"Test", "value"=>"Test"}, "content_id"=>"292789487", "fieldable_type"=>"Guts::Content"}
679714
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679715
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679716
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679717
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679718
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
679719
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679720
+  (0.1ms) SAVEPOINT active_record_1
679721
+ SQL (0.3ms) INSERT INTO "guts_metafields" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "Test"], ["value", "Test"], ["created_at", "2016-04-28 03:45:25.133238"], ["updated_at", "2016-04-28 03:45:25.133238"]]
679722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
679723
+ Redirected to http://test.host/guts/contents/test-page/metafields
679724
+ Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
679725
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL
679726
+  (1.0ms) rollback transaction
679727
+  (0.1ms) begin transaction
679728
+ ----------------------------------------
679729
+ Guts::SiteTest: test_should_be_trackable
679730
+ ----------------------------------------
679731
+  (0.1ms) rollback transaction
679732
+  (0.1ms) begin transaction
679733
+ -------------------------------------------------------------
679734
+ Guts::SiteTest: test_should_not_create_without_name_or_domain
679735
+ -------------------------------------------------------------
679736
+  (0.0ms) SAVEPOINT active_record_1
679737
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
679738
+  (0.0ms) rollback transaction
679739
+  (0.1ms) begin transaction
679740
+ ------------------------------------------------------
679741
+ Guts::SiteTest: test_should_return_metafields_for_site
679742
+ ------------------------------------------------------
679743
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
679744
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 749875938], ["fieldable_type", "Guts::Site"]]
679745
+  (0.3ms) rollback transaction
679746
+  (0.1ms) begin transaction
679747
+ -----------------------------------------------------------------------
679748
+ Guts::NavigationItemsControllerTest: test_should_create_navigation_item
679749
+ -----------------------------------------------------------------------
679750
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679751
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679752
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679753
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
679754
+ Processing by Guts::NavigationItemsController#create as HTML
679755
+ Parameters: {"navigation_item"=>{"title"=>"Nav Item Test", "custom"=>"http://YesIAm.com/", "position"=>"0", "navigatable_id"=>nil, "navigatable_type"=>nil, "navigation_id"=>"test-nav"}, "navigation_id"=>"test-nav"}
679756
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679757
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679758
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679759
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "test-nav"]]
679760
+  (0.1ms) SAVEPOINT active_record_1
679761
+ SQL (0.3ms) INSERT INTO "guts_navigation_items" ("title", "custom", "navigation_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Nav Item Test"], ["custom", "http://YesIAm.com/"], ["navigation_id", 0], ["created_at", "2016-04-28 03:45:25.196645"], ["updated_at", "2016-04-28 03:45:25.196645"]]
679762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
679763
+ Redirected to http://test.host/guts/navigations/test-nav/items
679764
+ Completed 302 Found in 20ms (ActiveRecord: 0.9ms)
679765
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
679766
+ Guts::Navigation Load (0.2ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679767
+  (0.6ms) rollback transaction
679768
+  (0.1ms) begin transaction
679769
+ -----------------------------------------------------------------------
679770
+ Guts::NavigationItemsControllerTest: test_should_update_navigation_item
679771
+ -----------------------------------------------------------------------
679772
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679773
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679774
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679775
+ Processing by Guts::NavigationItemsController#update as HTML
679776
+ Parameters: {"navigation_item"=>{"title"=>"Test Nav Item"}, "id"=>"374718506"}
679777
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679778
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679779
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679780
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679781
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679782
+  (0.1ms) SAVEPOINT active_record_1
679783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
679784
+ Redirected to http://test.host/guts/navigations/test-nav/items
679785
+ Completed 302 Found in 14ms (ActiveRecord: 0.5ms)
679786
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679787
+  (0.1ms) rollback transaction
679788
+  (0.1ms) begin transaction
679789
+ ------------------------------------------------------------------------
679790
+ Guts::NavigationItemsControllerTest: test_should_get_navigatable_objects
679791
+ ------------------------------------------------------------------------
679792
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679793
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679794
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679795
+ Processing by Guts::NavigationItemsController#navigatable_objects as HTML
679796
+ Parameters: {"model"=>"Guts::Content"}
679797
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679798
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679799
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679800
+ Guts::Content Load (0.2ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL
679801
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
679802
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
679803
+ Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 0.4ms)
679804
+  (0.1ms) rollback transaction
679805
+  (0.1ms) begin transaction
679806
+ --------------------------------------------------------
679807
+ Guts::NavigationItemsControllerTest: test_should_get_new
679808
+ --------------------------------------------------------
679809
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679810
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679811
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679812
+ Processing by Guts::NavigationItemsController#new as HTML
679813
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679814
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679815
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679816
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
679817
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/_form.html.erb (26.4ms)
679818
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/new.html.erb within layouts/guts/application (29.9ms)
679819
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679820
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679821
+ Completed 200 OK in 85ms (Views: 77.0ms | ActiveRecord: 0.4ms)
679822
+  (0.1ms) rollback transaction
679823
+  (0.1ms) begin transaction
679824
+ ----------------------------------------------------------------------------------------------------
679825
+ Guts::NavigationItemsControllerTest: test_should_fail_to_create_navigation_item_and_send_back_to_new
679826
+ ----------------------------------------------------------------------------------------------------
679827
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679828
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679829
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679830
+ Processing by Guts::NavigationItemsController#create as HTML
679831
+ Parameters: {"navigation_item"=>{"title"=>""}, "navigation_id"=>"test-nav"}
679832
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679833
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679834
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679835
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "test-nav"]]
679836
+  (0.1ms) SAVEPOINT active_record_1
679837
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
679838
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/_form.html.erb (13.0ms)
679839
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/new.html.erb within layouts/guts/application (13.8ms)
679840
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679841
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679842
+ Completed 200 OK in 63ms (Views: 51.1ms | ActiveRecord: 0.5ms)
679843
+  (0.1ms) rollback transaction
679844
+  (0.1ms) begin transaction
679845
+ ---------------------------------------------------------
679846
+ Guts::NavigationItemsControllerTest: test_should_get_edit
679847
+ ---------------------------------------------------------
679848
+ Guts::User Load (0.3ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679849
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679850
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679851
+ Processing by Guts::NavigationItemsController#edit as HTML
679852
+ Parameters: {"id"=>"374718506"}
679853
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679854
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679855
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679856
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679857
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679858
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 374718506], ["fieldable_type", "Guts::NavigationItem"]]
679859
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 374718506], ["filable_type", "Guts::NavigationItem"]]
679860
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/_form.html.erb (20.9ms)
679861
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/edit.html.erb within layouts/guts/application (21.8ms)
679862
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679863
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679864
+ Completed 200 OK in 76ms (Views: 66.1ms | ActiveRecord: 0.7ms)
679865
+  (0.1ms) rollback transaction
679866
+  (0.1ms) begin transaction
679867
+ -----------------------------------------------------------------------------------------------------
679868
+ Guts::NavigationItemsControllerTest: test_should_fail_to_update_navigation_item_and_send_back_to_edit
679869
+ -----------------------------------------------------------------------------------------------------
679870
+ Guts::User Load (0.7ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679871
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679872
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679873
+ Processing by Guts::NavigationItemsController#update as HTML
679874
+ Parameters: {"navigation_item"=>{"title"=>""}, "id"=>"374718506"}
679875
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679876
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679877
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679878
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679879
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679880
+  (0.1ms) SAVEPOINT active_record_1
679881
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
679882
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 374718506], ["fieldable_type", "Guts::NavigationItem"]]
679883
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 374718506], ["filable_type", "Guts::NavigationItem"]]
679884
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/_form.html.erb (22.7ms)
679885
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/edit.html.erb within layouts/guts/application (23.0ms)
679886
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679887
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679888
+ Completed 200 OK in 75ms (Views: 61.6ms | ActiveRecord: 0.8ms)
679889
+  (0.1ms) rollback transaction
679890
+  (0.1ms) begin transaction
679891
+ ----------------------------------------------------------------
679892
+ Guts::NavigationItemsControllerTest: test_should_show_navigation
679893
+ ----------------------------------------------------------------
679894
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679895
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679896
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679897
+ Processing by Guts::NavigationItemsController#show as HTML
679898
+ Parameters: {"id"=>"374718506"}
679899
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679900
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679901
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679902
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679903
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679904
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/show.html.erb within layouts/guts/application (4.2ms)
679905
+ Rendered guts/application/_layout_hook.html.erb (0.5ms)
679906
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679907
+ Completed 200 OK in 56ms (Views: 45.8ms | ActiveRecord: 0.3ms)
679908
+  (0.1ms) rollback transaction
679909
+  (0.1ms) begin transaction
679910
+ ------------------------------------------------------------------------
679911
+ Guts::NavigationItemsControllerTest: test_should_destroy_navigation_item
679912
+ ------------------------------------------------------------------------
679913
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679914
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679915
+ Guts::NavigationItem Load (0.0ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679916
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
679917
+ Processing by Guts::NavigationItemsController#destroy as HTML
679918
+ Parameters: {"id"=>"374718506"}
679919
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679920
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679921
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679922
+ Guts::NavigationItem Load (0.2ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679923
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679924
+  (0.1ms) SAVEPOINT active_record_1
679925
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 374718506], ["filable_type", "Guts::NavigationItem"]]
679926
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 374718506], ["fieldable_type", "Guts::NavigationItem"]]
679927
+ SQL (0.2ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 105934342]]
679928
+ SQL (0.1ms) DELETE FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? [["id", 374718506]]
679929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
679930
+ Redirected to http://test.host/guts/navigations/test-nav/items
679931
+ Completed 302 Found in 16ms (ActiveRecord: 0.9ms)
679932
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
679933
+  (0.7ms) rollback transaction
679934
+  (0.1ms) begin transaction
679935
+ ----------------------------------------------------------
679936
+ Guts::NavigationItemsControllerTest: test_should_get_index
679937
+ ----------------------------------------------------------
679938
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679939
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679940
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
679941
+ Processing by Guts::NavigationItemsController#index as HTML
679942
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
679943
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
679944
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
679945
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
679946
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
679947
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679948
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
679949
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
679950
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
679951
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/index.html.erb within layouts/guts/application (22.3ms)
679952
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
679953
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
679954
+ Completed 200 OK in 61ms (Views: 54.3ms | ActiveRecord: 0.7ms)
679955
+  (0.1ms) rollback transaction
679956
+  (0.1ms) begin transaction
679957
+ --------------------------------------------------------
679958
+ Guts::CategoryTest: test_should_not_create_without_title
679959
+ --------------------------------------------------------
679960
+  (0.1ms) SAVEPOINT active_record_1
679961
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
679962
+  (0.0ms) rollback transaction
679963
+  (0.1ms) begin transaction
679964
+ --------------------------------------------------------------------------------
679965
+ Guts::CategoryTest: test_should_not_create_with_title_less_than_three_characters
679966
+ --------------------------------------------------------------------------------
679967
+  (0.0ms) SAVEPOINT active_record_1
679968
+ Guts::Category Exists (0.2ms) SELECT 1 AS one FROM "guts_categories" WHERE ("guts_categories"."id" IS NOT NULL) AND "guts_categories"."slug" = ? LIMIT 1 [["slug", "12"]]
679969
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
679970
+  (0.0ms) rollback transaction
679971
+  (0.1ms) begin transaction
679972
+ ----------------------------------------------------------------
679973
+ Guts::CategoryTest: test_category_should_be_multisite_compatible
679974
+ ----------------------------------------------------------------
679975
+  (0.0ms) rollback transaction
679976
+  (0.1ms) begin transaction
679977
+ ---------------------------------------------------------
679978
+ Guts::CategoryTest: test_should_return_navigatable_format
679979
+ ---------------------------------------------------------
679980
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
679981
+  (0.1ms) rollback transaction
679982
+  (0.1ms) begin transaction
679983
+ ------------------------------------------------------------
679984
+ Guts::CategoryTest: test_should_return_contents_for_category
679985
+ ------------------------------------------------------------
679986
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
679987
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" INNER JOIN "guts_categorizations" ON "guts_contents"."id" = "guts_categorizations"."content_id" WHERE "guts_contents"."site_id" IS NULL AND "guts_categorizations"."category_id" = ? [["category_id", 321852057]]
679988
+  (0.0ms) rollback transaction
679989
+  (0.1ms) begin transaction
679990
+ -----------------------------------------------------
679991
+ Guts::CategoryTest: test_should_create_slug_for_title
679992
+ -----------------------------------------------------
679993
+  (0.0ms) SAVEPOINT active_record_1
679994
+ Guts::Category Exists (0.1ms) SELECT 1 AS one FROM "guts_categories" WHERE ("guts_categories"."id" IS NOT NULL) AND "guts_categories"."slug" = ? LIMIT 1 [["slug", "super-duper-category"]]
679995
+ SQL (0.2ms) INSERT INTO "guts_categories" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Super Duper Category!"], ["slug", "super-duper-category"], ["created_at", "2016-04-28 03:45:25.861777"], ["updated_at", "2016-04-28 03:45:25.861777"]]
679996
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 321852058], ["object_type", "Guts::Category"], ["params", "{}"], ["created_at", "2016-04-28 03:45:25.867490"], ["updated_at", "2016-04-28 03:45:25.867490"]]
679997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
679998
+  (0.4ms) rollback transaction
679999
+  (0.1ms) begin transaction
680000
+ --------------------------------------------------------------
680001
+ Guts::CategoryTest: test_should_return_metafields_for_category
680002
+ --------------------------------------------------------------
680003
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680004
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 321852057], ["fieldable_type", "Guts::Category"]]
680005
+  (0.1ms) rollback transaction
680006
+  (0.1ms) begin transaction
680007
+ --------------------------------------------
680008
+ Guts::CategoryTest: test_should_be_trackable
680009
+ --------------------------------------------
680010
+  (0.0ms) rollback transaction
680011
+  (0.0ms) begin transaction
680012
+ -------------------------------------------------
680013
+ Guts::TypeTest: test_should_create_slug_for_title
680014
+ -------------------------------------------------
680015
+  (0.0ms) SAVEPOINT active_record_1
680016
+ Guts::Type Exists (0.1ms) SELECT 1 AS one FROM "guts_types" WHERE ("guts_types"."id" IS NOT NULL) AND "guts_types"."slug" = ? LIMIT 1 [["slug", "i-am-a-type-good-sir"]]
680017
+ SQL (0.3ms) INSERT INTO "guts_types" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "i am a type good sir"], ["slug", "i-am-a-type-good-sir"], ["created_at", "2016-04-28 03:45:25.878053"], ["updated_at", "2016-04-28 03:45:25.878053"]]
680018
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 186272756], ["object_type", "Guts::Type"], ["params", "{}"], ["created_at", "2016-04-28 03:45:25.880094"], ["updated_at", "2016-04-28 03:45:25.880094"]]
680019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680020
+  (0.5ms) rollback transaction
680021
+  (0.1ms) begin transaction
680022
+ -----------------------------------------------------
680023
+ Guts::TypeTest: test_should_return_navigatable_format
680024
+ -----------------------------------------------------
680025
+ Guts::Type Load (0.3ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
680026
+  (0.1ms) rollback transaction
680027
+  (0.1ms) begin transaction
680028
+ --------------------------------------------------------
680029
+ Guts::TypeTest: test_type_should_be_multisite_compatible
680030
+ --------------------------------------------------------
680031
+  (0.1ms) rollback transaction
680032
+  (0.1ms) begin transaction
680033
+ ----------------------------------------------------------------------------
680034
+ Guts::TypeTest: test_should_not_create_with_title_less_than_three_characters
680035
+ ----------------------------------------------------------------------------
680036
+  (0.0ms) SAVEPOINT active_record_1
680037
+ Guts::Type Exists (0.1ms) SELECT 1 AS one FROM "guts_types" WHERE ("guts_types"."id" IS NOT NULL) AND "guts_types"."slug" = ? LIMIT 1 [["slug", "12"]]
680038
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
680039
+  (0.0ms) rollback transaction
680040
+  (0.2ms) begin transaction
680041
+ ------------------------------------------------------
680042
+ Guts::TypeTest: test_should_return_metafields_for_type
680043
+ ------------------------------------------------------
680044
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
680045
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 186272755], ["fieldable_type", "Guts::Type"]]
680046
+  (0.1ms) rollback transaction
680047
+  (0.1ms) begin transaction
680048
+ ----------------------------------------------------
680049
+ Guts::TypeTest: test_should_not_create_without_title
680050
+ ----------------------------------------------------
680051
+  (0.0ms) SAVEPOINT active_record_1
680052
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680053
+  (0.0ms) rollback transaction
680054
+  (0.0ms) begin transaction
680055
+ ----------------------------------------
680056
+ Guts::TypeTest: test_should_be_trackable
680057
+ ----------------------------------------
680058
+  (0.0ms) rollback transaction
680059
+  (0.1ms) begin transaction
680060
+ ------------------------------------------------------------
680061
+ Guts::TypeTest: test_should_have_site_id_as_integer_in_scope
680062
+ ------------------------------------------------------------
680063
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680064
+  (0.1ms) rollback transaction
680065
+  (0.0ms) begin transaction
680066
+ ---------------------------------------------------------
680067
+ Guts::TypeTest: test_should_have_site_id_as_null_in_scope
680068
+ ---------------------------------------------------------
680069
+  (0.0ms) rollback transaction
680070
+  (0.1ms) begin transaction
680071
+ ----------------------------------------------------
680072
+ Guts::TypeTest: test_should_return_contents_for_type
680073
+ ----------------------------------------------------
680074
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
680075
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680076
+ Guts::Content Exists (0.1ms) SELECT 1 AS one FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = ? AND "guts_contents"."id" = ? LIMIT 1 [["type_id", 186272755], ["id", 292789487]]
680077
+  (0.1ms) rollback transaction
680078
+  (0.1ms) begin transaction
680079
+ ---------------------------------------------------------
680080
+ Guts::CategoriesControllerTest: test_should_show_category
680081
+ ---------------------------------------------------------
680082
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680083
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680084
+ Processing by Guts::CategoriesController#show as HTML
680085
+ Parameters: {"id"=>"super-category"}
680086
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680087
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680088
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680089
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL AND "guts_categories"."slug" = ? ORDER BY "guts_categories"."id" ASC LIMIT 1 [["slug", "super-category"]]
680090
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/show.html.erb within layouts/guts/application (2.9ms)
680091
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680092
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680093
+ Completed 200 OK in 44ms (Views: 40.0ms | ActiveRecord: 0.4ms)
680094
+  (0.1ms) rollback transaction
680095
+  (0.1ms) begin transaction
680096
+ ----------------------------------------------------
680097
+ Guts::CategoriesControllerTest: test_should_get_edit
680098
+ ----------------------------------------------------
680099
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680100
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680101
+ Processing by Guts::CategoriesController#edit as HTML
680102
+ Parameters: {"id"=>"super-category"}
680103
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680104
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680105
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680106
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL AND "guts_categories"."slug" = ? ORDER BY "guts_categories"."id" ASC LIMIT 1 [["slug", "super-category"]]
680107
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 321852057], ["fieldable_type", "Guts::Category"]]
680108
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 321852057], ["filable_type", "Guts::Category"]]
680109
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/_form.html.erb (19.6ms)
680110
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/edit.html.erb within layouts/guts/application (23.3ms)
680111
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680112
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680113
+ Completed 200 OK in 60ms (Views: 57.5ms | ActiveRecord: 0.5ms)
680114
+  (0.1ms) rollback transaction
680115
+  (0.1ms) begin transaction
680116
+ ----------------------------------------------------------------------------------------
680117
+ Guts::CategoriesControllerTest: test_should_fail_to_create_category_and_send_back_to_new
680118
+ ----------------------------------------------------------------------------------------
680119
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680120
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680121
+ Processing by Guts::CategoriesController#create as HTML
680122
+ Parameters: {"category"=>{"title"=>""}}
680123
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680124
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680125
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680126
+  (0.1ms) SAVEPOINT active_record_1
680127
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
680128
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/_form.html.erb (7.1ms)
680129
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/new.html.erb within layouts/guts/application (7.9ms)
680130
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680131
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680132
+ Completed 200 OK in 50ms (Views: 43.5ms | ActiveRecord: 0.5ms)
680133
+  (0.1ms) rollback transaction
680134
+  (0.1ms) begin transaction
680135
+ -----------------------------------------------------------
680136
+ Guts::CategoriesControllerTest: test_should_create_category
680137
+ -----------------------------------------------------------
680138
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680139
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680140
+  (0.2ms) SELECT COUNT(*) FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
680141
+ Processing by Guts::CategoriesController#create as HTML
680142
+ Parameters: {"category"=>{"slug"=>"cat-test", "title"=>"Cat Test"}}
680143
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680144
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680145
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680146
+  (0.1ms) SAVEPOINT active_record_1
680147
+ SQL (0.2ms) INSERT INTO "guts_categories" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Cat Test"], ["slug", "cat-test"], ["created_at", "2016-04-28 03:45:26.093790"], ["updated_at", "2016-04-28 03:45:26.093790"]]
680148
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 321852058], ["object_type", "Guts::Category"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.095771"], ["updated_at", "2016-04-28 03:45:26.095771"]]
680149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680150
+ Redirected to http://test.host/guts/categories
680151
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
680152
+  (0.1ms) SELECT COUNT(*) FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
680153
+  (0.6ms) rollback transaction
680154
+  (0.1ms) begin transaction
680155
+ -----------------------------------------------------------
680156
+ Guts::CategoriesControllerTest: test_should_update_category
680157
+ -----------------------------------------------------------
680158
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680159
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680160
+ Processing by Guts::CategoriesController#update as HTML
680161
+ Parameters: {"category"=>{"slug"=>"super-category", "title"=>"Super Category!"}, "id"=>"super-category"}
680162
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680163
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680164
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680165
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL AND "guts_categories"."slug" = ? ORDER BY "guts_categories"."id" ASC LIMIT 1 [["slug", "super-category"]]
680166
+  (0.1ms) SAVEPOINT active_record_1
680167
+ SQL (0.3ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 321852057], ["object_type", "Guts::Category"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.114032"], ["updated_at", "2016-04-28 03:45:26.114032"]]
680168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
680169
+ Redirected to http://test.host/guts/categories
680170
+ Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
680171
+  (0.4ms) rollback transaction
680172
+  (0.1ms) begin transaction
680173
+ -----------------------------------------------------
680174
+ Guts::CategoriesControllerTest: test_should_get_index
680175
+ -----------------------------------------------------
680176
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680177
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680178
+ Processing by Guts::CategoriesController#index as HTML
680179
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680180
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680181
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680182
+  (0.1ms) SELECT COUNT(*) FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
680183
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
680184
+  (0.1ms) SELECT COUNT(*) FROM "guts_categorizations" WHERE "guts_categorizations"."category_id" = ? [["category_id", 321852057]]
680185
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/index.html.erb within layouts/guts/application (13.0ms)
680186
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680187
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680188
+ Completed 200 OK in 52ms (Views: 49.0ms | ActiveRecord: 0.6ms)
680189
+  (0.1ms) rollback transaction
680190
+  (0.1ms) begin transaction
680191
+ ------------------------------------------------------------
680192
+ Guts::CategoriesControllerTest: test_should_destroy_category
680193
+ ------------------------------------------------------------
680194
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680195
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680196
+  (0.2ms) SELECT COUNT(*) FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
680197
+ Processing by Guts::CategoriesController#destroy as HTML
680198
+ Parameters: {"id"=>"super-category"}
680199
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680200
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680201
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680202
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL AND "guts_categories"."slug" = ? ORDER BY "guts_categories"."id" ASC LIMIT 1 [["slug", "super-category"]]
680203
+  (0.1ms) SAVEPOINT active_record_1
680204
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 321852057], ["filable_type", "Guts::Category"]]
680205
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 321852057], ["fieldable_type", "Guts::Category"]]
680206
+ SQL (0.2ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 935320442]]
680207
+ SQL (0.1ms) DELETE FROM "guts_categories" WHERE "guts_categories"."id" = ? [["id", 321852057]]
680208
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 321852057], ["object_type", "Guts::Category"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.196281"], ["updated_at", "2016-04-28 03:45:26.196281"]]
680209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680210
+ Redirected to http://test.host/guts/categories
680211
+ Completed 302 Found in 11ms (ActiveRecord: 0.9ms)
680212
+  (0.1ms) SELECT COUNT(*) FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
680213
+  (0.5ms) rollback transaction
680214
+  (0.1ms) begin transaction
680215
+ ---------------------------------------------------
680216
+ Guts::CategoriesControllerTest: test_should_get_new
680217
+ ---------------------------------------------------
680218
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680219
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680220
+ Processing by Guts::CategoriesController#new as HTML
680221
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680222
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680223
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680224
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/_form.html.erb (5.2ms)
680225
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/new.html.erb within layouts/guts/application (5.4ms)
680226
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680227
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680228
+ Completed 200 OK in 40ms (Views: 37.5ms | ActiveRecord: 0.3ms)
680229
+  (0.1ms) rollback transaction
680230
+  (0.1ms) begin transaction
680231
+ -----------------------------------------------------------------------------------------
680232
+ Guts::CategoriesControllerTest: test_should_fail_to_update_category_and_send_back_to_edit
680233
+ -----------------------------------------------------------------------------------------
680234
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680235
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
680236
+ Processing by Guts::CategoriesController#update as HTML
680237
+ Parameters: {"category"=>{"title"=>""}, "id"=>"super-category"}
680238
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680239
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680240
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680241
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL AND "guts_categories"."slug" = ? ORDER BY "guts_categories"."id" ASC LIMIT 1 [["slug", "super-category"]]
680242
+  (0.1ms) SAVEPOINT active_record_1
680243
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
680244
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 321852057], ["fieldable_type", "Guts::Category"]]
680245
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 321852057], ["filable_type", "Guts::Category"]]
680246
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/_form.html.erb (15.5ms)
680247
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/categories/edit.html.erb within layouts/guts/application (15.8ms)
680248
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680249
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680250
+ Completed 200 OK in 58ms (Views: 52.1ms | ActiveRecord: 0.7ms)
680251
+  (0.1ms) rollback transaction
680252
+  (0.1ms) begin transaction
680253
+ -------------------------------------------------------------------------------
680254
+ Guts::SitesControllerTest: test_should_fail_to_create_site_and_send_back_to_new
680255
+ -------------------------------------------------------------------------------
680256
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680257
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680258
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680259
+ Processing by Guts::SitesController#create as HTML
680260
+ Parameters: {"site"=>{"name"=>""}}
680261
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680262
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680263
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680264
+  (0.1ms) SAVEPOINT active_record_1
680265
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680266
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/_form.html.erb (8.5ms)
680267
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/new.html.erb within layouts/guts/application (11.7ms)
680268
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680269
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680270
+ Completed 200 OK in 52ms (Views: 48.4ms | ActiveRecord: 0.4ms)
680271
+  (0.1ms) rollback transaction
680272
+  (0.1ms) begin transaction
680273
+ -----------------------------------------------
680274
+ Guts::SitesControllerTest: test_should_get_edit
680275
+ -----------------------------------------------
680276
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680277
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680278
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680279
+ Processing by Guts::SitesController#edit as HTML
680280
+ Parameters: {"id"=>"749875938"}
680281
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680282
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680283
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680284
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680285
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/_form.html.erb (7.5ms)
680286
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/edit.html.erb within layouts/guts/application (8.4ms)
680287
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680288
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680289
+ Completed 200 OK in 48ms (Views: 44.6ms | ActiveRecord: 0.4ms)
680290
+  (0.1ms) rollback transaction
680291
+  (0.1ms) begin transaction
680292
+ ----------------------------------------------
680293
+ Guts::SitesControllerTest: test_should_get_new
680294
+ ----------------------------------------------
680295
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680296
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680297
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680298
+ Processing by Guts::SitesController#new as HTML
680299
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680300
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680301
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680302
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/_form.html.erb (5.5ms)
680303
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/new.html.erb within layouts/guts/application (5.7ms)
680304
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680305
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680306
+ Completed 200 OK in 35ms (Views: 32.9ms | ActiveRecord: 0.3ms)
680307
+  (0.1ms) rollback transaction
680308
+  (0.1ms) begin transaction
680309
+ -------------------------------------------------------
680310
+ Guts::SitesControllerTest: test_should_set_default_site
680311
+ -------------------------------------------------------
680312
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680313
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680314
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680315
+ Processing by Guts::SitesController#set_default as HTML
680316
+ Parameters: {"id"=>"27609037"}
680317
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680318
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680319
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680320
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680321
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."default" = ? LIMIT 1 [["default", "t"]]
680322
+  (0.0ms) SAVEPOINT active_record_1
680323
+ SQL (0.2ms) UPDATE "guts_sites" SET "default" = ?, "updated_at" = ? WHERE "guts_sites"."id" = ? [["default", "f"], ["updated_at", "2016-04-28 03:45:26.492189"], ["id", 749875938]]
680324
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 749875938], ["object_type", "Guts::Site"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.494428"], ["updated_at", "2016-04-28 03:45:26.494428"]]
680325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
680326
+  (0.0ms) SAVEPOINT active_record_1
680327
+ SQL (0.3ms) UPDATE "guts_sites" SET "default" = ?, "updated_at" = ? WHERE "guts_sites"."id" = ? [["default", "t"], ["updated_at", "2016-04-28 03:45:26.496407"], ["id", 27609037]]
680328
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 27609037], ["object_type", "Guts::Site"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.498603"], ["updated_at", "2016-04-28 03:45:26.498603"]]
680329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680330
+ Redirected to http://test.host/guts/sites
680331
+ Completed 302 Found in 13ms (ActiveRecord: 1.3ms)
680332
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680333
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680334
+  (1.4ms) rollback transaction
680335
+  (0.1ms) begin transaction
680336
+ ------------------------------------------------
680337
+ Guts::SitesControllerTest: test_should_show_site
680338
+ ------------------------------------------------
680339
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680340
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680341
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680342
+ Processing by Guts::SitesController#show as HTML
680343
+ Parameters: {"id"=>"749875938"}
680344
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680345
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680346
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680347
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680348
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/show.html.erb within layouts/guts/application (4.2ms)
680349
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680350
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680351
+ Completed 200 OK in 36ms (Views: 33.5ms | ActiveRecord: 0.4ms)
680352
+  (0.1ms) rollback transaction
680353
+  (0.1ms) begin transaction
680354
+ --------------------------------------------------
680355
+ Guts::SitesControllerTest: test_should_update_site
680356
+ --------------------------------------------------
680357
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680358
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680359
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680360
+ Processing by Guts::SitesController#update as HTML
680361
+ Parameters: {"site"=>{"domain"=>"testsite.com", "name"=>"Test Site"}, "id"=>"749875938"}
680362
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680363
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680364
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680365
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680366
+  (0.1ms) SAVEPOINT active_record_1
680367
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 749875938], ["object_type", "Guts::Site"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.558737"], ["updated_at", "2016-04-28 03:45:26.558737"]]
680368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680369
+ Redirected to http://test.host/guts/sites
680370
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
680371
+  (0.6ms) rollback transaction
680372
+  (0.1ms) begin transaction
680373
+ --------------------------------------------------------------------------------
680374
+ Guts::SitesControllerTest: test_should_fail_to_update_site_and_send_back_to_edit
680375
+ --------------------------------------------------------------------------------
680376
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680377
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680378
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680379
+ Processing by Guts::SitesController#update as HTML
680380
+ Parameters: {"site"=>{"name"=>""}, "id"=>"749875938"}
680381
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680382
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680383
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680384
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680385
+  (0.1ms) SAVEPOINT active_record_1
680386
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
680387
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/_form.html.erb (5.9ms)
680388
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/edit.html.erb within layouts/guts/application (6.1ms)
680389
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680390
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680391
+ Completed 200 OK in 44ms (Views: 40.1ms | ActiveRecord: 0.5ms)
680392
+  (0.1ms) rollback transaction
680393
+  (0.1ms) begin transaction
680394
+ ---------------------------------------------------
680395
+ Guts::SitesControllerTest: test_should_destroy_site
680396
+ ---------------------------------------------------
680397
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680398
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680399
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680400
+  (0.1ms) SELECT COUNT(*) FROM "guts_sites"
680401
+ Processing by Guts::SitesController#destroy as HTML
680402
+ Parameters: {"id"=>"749875938"}
680403
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680404
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680405
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680406
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680407
+  (0.1ms) SAVEPOINT active_record_1
680408
+ SQL (0.2ms) DELETE FROM "guts_sites" WHERE "guts_sites"."id" = ? [["id", 749875938]]
680409
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 749875938], ["object_type", "Guts::Site"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.626679"], ["updated_at", "2016-04-28 03:45:26.626679"]]
680410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680411
+ Redirected to http://test.host/guts/sites
680412
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
680413
+  (0.1ms) SELECT COUNT(*) FROM "guts_sites"
680414
+  (0.4ms) rollback transaction
680415
+  (0.1ms) begin transaction
680416
+ --------------------------------------------------
680417
+ Guts::SitesControllerTest: test_should_create_site
680418
+ --------------------------------------------------
680419
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680420
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680421
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680422
+  (0.1ms) SELECT COUNT(*) FROM "guts_sites"
680423
+ Processing by Guts::SitesController#create as HTML
680424
+ Parameters: {"site"=>{"domain"=>"testsite.com", "name"=>"Test Site"}}
680425
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680426
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680427
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680428
+  (0.1ms) SAVEPOINT active_record_1
680429
+ SQL (0.2ms) INSERT INTO "guts_sites" ("name", "domain", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Test Site"], ["domain", "testsite.com"], ["created_at", "2016-04-28 03:45:26.643410"], ["updated_at", "2016-04-28 03:45:26.643410"]]
680430
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 749875939], ["object_type", "Guts::Site"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.645558"], ["updated_at", "2016-04-28 03:45:26.645558"]]
680431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
680432
+ Redirected to http://test.host/guts/sites
680433
+ Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
680434
+  (0.1ms) SELECT COUNT(*) FROM "guts_sites"
680435
+  (0.5ms) rollback transaction
680436
+  (0.2ms) begin transaction
680437
+ ------------------------------------------------
680438
+ Guts::SitesControllerTest: test_should_get_index
680439
+ ------------------------------------------------
680440
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680441
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680442
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680443
+ Processing by Guts::SitesController#index as HTML
680444
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680445
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680446
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680447
+  (0.1ms) SELECT COUNT(*) FROM "guts_sites"
680448
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites"
680449
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sites/index.html.erb within layouts/guts/application (17.4ms)
680450
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680451
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680452
+ Completed 200 OK in 58ms (Views: 55.9ms | ActiveRecord: 0.5ms)
680453
+  (0.1ms) rollback transaction
680454
+  (0.1ms) begin transaction
680455
+ ----------------------------------------------------------
680456
+ Guts::SitesControllerTest: test_should_remove_default_site
680457
+ ----------------------------------------------------------
680458
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680459
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680460
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 27609037]]
680461
+ Processing by Guts::SitesController#remove_default as HTML
680462
+ Parameters: {"id"=>"749875938"}
680463
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680464
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680465
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680466
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680467
+  (0.1ms) SAVEPOINT active_record_1
680468
+ SQL (0.2ms) UPDATE "guts_sites" SET "default" = ?, "updated_at" = ? WHERE "guts_sites"."id" = ? [["default", "f"], ["updated_at", "2016-04-28 03:45:26.728140"], ["id", 749875938]]
680469
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 749875938], ["object_type", "Guts::Site"], ["params", "{}"], ["created_at", "2016-04-28 03:45:26.730495"], ["updated_at", "2016-04-28 03:45:26.730495"]]
680470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
680471
+ Redirected to http://test.host/guts/sites
680472
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
680473
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."id" = ? LIMIT 1 [["id", 749875938]]
680474
+  (0.5ms) rollback transaction
680475
+  (0.1ms) begin transaction
680476
+ --------------------------------------------------------------------------------
680477
+ Guts::MediaControllerTest: test_should_fail_to_edit_medium_and_send_back_to_edit
680478
+ --------------------------------------------------------------------------------
680479
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680480
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680481
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680482
+ Processing by Guts::MediaController#update as HTML
680483
+ Parameters: {"medium"=>{"title"=>""}, "id"=>"166075617", "content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680484
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680485
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680486
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680487
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680488
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680489
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680490
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680491
+  (0.0ms) SAVEPOINT active_record_1
680492
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680493
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/_form.html.erb (11.1ms)
680494
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/edit.html.erb within layouts/guts/application (14.3ms)
680495
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680496
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680497
+ Completed 200 OK in 67ms (Views: 50.2ms | ActiveRecord: 0.6ms)
680498
+  (0.1ms) rollback transaction
680499
+  (0.1ms) begin transaction
680500
+ -------------------------------------------------------------
680501
+ Guts::MediaControllerTest: test_should_get_index_for_friendly
680502
+ -------------------------------------------------------------
680503
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680504
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680505
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680506
+ Processing by Guts::MediaController#index as HTML
680507
+ Parameters: {"content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680508
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680509
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680510
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680511
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680512
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680513
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680514
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 292789487], ["filable_type", "Guts::Content"]]
680515
+ Guts::Medium Load (0.2ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? LIMIT 30 OFFSET 0 [["filable_id", 292789487], ["filable_type", "Guts::Content"]]
680516
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680517
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/index.html.erb within layouts/guts/application (25.7ms)
680518
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680519
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680520
+ Completed 200 OK in 64ms (Views: 58.1ms | ActiveRecord: 0.8ms)
680521
+  (0.1ms) rollback transaction
680522
+  (0.1ms) begin transaction
680523
+ ----------------------------------------------------
680524
+ Guts::MediaControllerTest: test_should_create_medium
680525
+ ----------------------------------------------------
680526
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680527
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680528
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680529
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL
680530
+ Processing by Guts::MediaController#create as HTML
680531
+ Parameters: {"medium"=>{"title"=>"Demo File", "file"=>#<Rack::Test::UploadedFile:0x007fca3c852ab0 @content_type="image/png", @original_filename="spongebob.png", @tempfile=#<Tempfile:/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/spongebob.png20160428-13127-leu68q>>}, "content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680532
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680533
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680534
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680535
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680536
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680537
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680538
+ Command :: file -b --mime '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-icxkde.png'
680539
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' 2>/dev/null
680540
+ Command :: identify -format %m '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]'
680541
+ Command :: convert -auto-orient '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' -auto-orient -resize "50x50" '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/d7bccde1df6effc2673e0880cd14d4da20160428-13127-17uh6pm'
680542
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' 2>/dev/null
680543
+ Command :: identify -format %m '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]'
680544
+ Command :: convert -auto-orient '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' -auto-orient -resize "100x100" '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/d7bccde1df6effc2673e0880cd14d4da20160428-13127-eo9xlf'
680545
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' 2>/dev/null
680546
+ Command :: identify -format %m '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]'
680547
+ Command :: convert -auto-orient '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' -auto-orient -resize "160x160" '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/d7bccde1df6effc2673e0880cd14d4da20160428-13127-bwe6tq'
680548
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' 2>/dev/null
680549
+ Command :: identify -format %m '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]'
680550
+ Command :: convert -auto-orient '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' -auto-orient -resize "240x240" '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/d7bccde1df6effc2673e0880cd14d4da20160428-13127-18byyl'
680551
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' 2>/dev/null
680552
+ Command :: identify -format %m '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]'
680553
+ Command :: convert -auto-orient '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' -auto-orient -resize "480x480" '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/d7bccde1df6effc2673e0880cd14d4da20160428-13127-1xixpzu'
680554
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' 2>/dev/null
680555
+ Command :: identify -format %m '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]'
680556
+ Command :: convert -auto-orient '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' -auto-orient -resize "600x600" '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/d7bccde1df6effc2673e0880cd14d4da20160428-13127-1mam91l'
680557
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' 2>/dev/null
680558
+ Command :: identify -format %m '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]'
680559
+ Command :: convert -auto-orient '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1xamh8k.png[0]' -auto-orient -resize "1200x1200" '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/d7bccde1df6effc2673e0880cd14d4da20160428-13127-13k6xlx'
680560
+  (0.1ms) SAVEPOINT active_record_1
680561
+ Command :: file -b --mime '/var/folders/5b/k_117t415w3b36tsgc4b3l240000gn/T/e1964798cfe86e914af895f8d029181220160428-13127-1n6ued6.png'
680562
+ SQL (0.5ms) INSERT INTO "guts_media" ("title", "file_file_name", "file_content_type", "file_file_size", "file_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "Demo File"], ["file_file_name", "spongebob.png"], ["file_content_type", "image/png"], ["file_file_size", 20277], ["file_updated_at", "2016-04-28 03:45:26.915046"], ["created_at", "2016-04-28 03:45:28.440411"], ["updated_at", "2016-04-28 03:45:28.440411"]]
680563
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 166075618], ["object_type", "Guts::Medium"], ["params", "{}"], ["created_at", "2016-04-28 03:45:28.444349"], ["updated_at", "2016-04-28 03:45:28.444349"]]
680564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
680565
+ Redirected to http://test.host/guts/contents/test-page/media
680566
+ Completed 302 Found in 1548ms (ActiveRecord: 1.1ms)
680567
+  (0.2ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL
680568
+  (0.5ms) rollback transaction
680569
+  (0.1ms) begin transaction
680570
+ -----------------------------------------------------------------------------
680571
+ Guts::MediaControllerTest: test_should_not_create_medium_and_send_back_to_new
680572
+ -----------------------------------------------------------------------------
680573
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680574
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680575
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680576
+ Processing by Guts::MediaController#create as HTML
680577
+ Parameters: {"medium"=>{"title"=>""}, "content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680578
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680579
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680580
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680581
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680582
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680583
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680584
+  (0.1ms) SAVEPOINT active_record_1
680585
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
680586
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/_form.html.erb (11.7ms)
680587
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/new.html.erb within layouts/guts/application (12.9ms)
680588
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680589
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680590
+ Completed 200 OK in 57ms (Views: 49.3ms | ActiveRecord: 0.6ms)
680591
+  (0.1ms) rollback transaction
680592
+  (0.0ms) begin transaction
680593
+ -----------------------------------------------
680594
+ Guts::MediaControllerTest: test_should_get_edit
680595
+ -----------------------------------------------
680596
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680597
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680598
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680599
+ Processing by Guts::MediaController#edit as HTML
680600
+ Parameters: {"id"=>"166075617", "content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680601
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680602
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680603
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680604
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680605
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680606
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680607
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680608
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/_form.html.erb (8.4ms)
680609
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/edit.html.erb within layouts/guts/application (9.3ms)
680610
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680611
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680612
+ Completed 200 OK in 45ms (Views: 39.8ms | ActiveRecord: 0.5ms)
680613
+  (0.1ms) rollback transaction
680614
+  (0.1ms) begin transaction
680615
+ -----------------------------------------------------------------
680616
+ Guts::MediaControllerTest: test_should_get_index_for_non_friendly
680617
+ -----------------------------------------------------------------
680618
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680619
+ Guts::Medium Load (0.2ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680620
+ Guts::Content Load (0.2ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680621
+ Processing by Guts::MediaController#index as HTML
680622
+ Parameters: {"user_id"=>"764040363", "filable_type"=>"Guts::User"}
680623
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680624
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680625
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680626
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680627
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 764040363], ["filable_type", "Guts::User"]]
680628
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 764040363], ["filable_type", "Guts::User"]]
680629
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/index.html.erb within layouts/guts/application (7.0ms)
680630
+ Rendered guts/application/_layout_hook.html.erb (0.3ms)
680631
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680632
+ Completed 200 OK in 42ms (Views: 37.2ms | ActiveRecord: 0.6ms)
680633
+  (0.3ms) rollback transaction
680634
+  (0.3ms) begin transaction
680635
+ ----------------------------------------------------
680636
+ Guts::MediaControllerTest: test_should_destroy_media
680637
+ ----------------------------------------------------
680638
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680639
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680640
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680641
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL
680642
+ Processing by Guts::MediaController#destroy as HTML
680643
+ Parameters: {"id"=>"166075617", "content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680644
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680645
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680646
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680647
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680648
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680649
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680650
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680651
+  (0.0ms) SAVEPOINT active_record_1
680652
+ SQL (0.2ms) DELETE FROM "guts_media" WHERE "guts_media"."id" = ? [["id", 166075617]]
680653
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 166075617], ["object_type", "Guts::Medium"], ["params", "{}"], ["created_at", "2016-04-28 03:45:28.651914"], ["updated_at", "2016-04-28 03:45:28.651914"]]
680654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
680655
+ Redirected to http://test.host/guts/contents/test-page/media
680656
+ Completed 302 Found in 12ms (ActiveRecord: 0.9ms)
680657
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL
680658
+  (1.2ms) rollback transaction
680659
+  (0.1ms) begin transaction
680660
+ ----------------------------------------------------
680661
+ Guts::MediaControllerTest: test_should_update_medium
680662
+ ----------------------------------------------------
680663
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680664
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680665
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680666
+ Processing by Guts::MediaController#update as HTML
680667
+ Parameters: {"medium"=>{"title"=>"Demo Me"}, "id"=>"166075617", "content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680668
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680669
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680670
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680671
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680672
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680673
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680674
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680675
+  (0.1ms) SAVEPOINT active_record_1
680676
+ SQL (0.3ms) UPDATE "guts_media" SET "title" = ?, "updated_at" = ? WHERE "guts_media"."id" = ? [["title", "Demo Me"], ["updated_at", "2016-04-28 03:45:28.676940"], ["id", 166075617]]
680677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680678
+ Redirected to http://test.host/guts/contents/test-page/media
680679
+ Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
680680
+  (0.4ms) rollback transaction
680681
+  (0.1ms) begin transaction
680682
+ --------------------------------------------------
680683
+ Guts::MediaControllerTest: test_should_show_medium
680684
+ --------------------------------------------------
680685
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680686
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680687
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680688
+ Processing by Guts::MediaController#show as HTML
680689
+ Parameters: {"id"=>"166075617", "content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680690
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680691
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680692
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680693
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680694
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680695
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680696
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680697
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/show.html.erb within layouts/guts/application (5.8ms)
680698
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680699
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680700
+ Completed 200 OK in 42ms (Views: 37.3ms | ActiveRecord: 0.4ms)
680701
+  (0.1ms) rollback transaction
680702
+  (0.1ms) begin transaction
680703
+ ----------------------------------------------
680704
+ Guts::MediaControllerTest: test_should_get_new
680705
+ ----------------------------------------------
680706
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680707
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680708
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680709
+ Processing by Guts::MediaController#new as HTML
680710
+ Parameters: {"content_id"=>"292789487", "filable_type"=>"Guts::Content"}
680711
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680712
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680713
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680714
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680715
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680716
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680717
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/_form.html.erb (6.8ms)
680718
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/new.html.erb within layouts/guts/application (7.5ms)
680719
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680720
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680721
+ Completed 200 OK in 43ms (Views: 38.3ms | ActiveRecord: 0.4ms)
680722
+  (0.1ms) rollback transaction
680723
+  (0.1ms) begin transaction
680724
+ --------------------------------------------------------
680725
+ Guts::MediaControllerTest: test_should_get_editor_insert
680726
+ --------------------------------------------------------
680727
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680728
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680729
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680730
+ Processing by Guts::MediaController#editor_insert as HTML
680731
+ Parameters: {"content_id"=>"292789487", "filable_type"=>"Guts::Content", "id"=>"166075617"}
680732
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680733
+ Guts::User Load (0.3ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680734
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680735
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680736
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "292789487"]]
680737
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680738
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680739
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/editor_insert.html.erb (1.4ms)
680740
+ Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.6ms)
680741
+  (0.1ms) rollback transaction
680742
+  (0.1ms) begin transaction
680743
+ ------------------------------------------------
680744
+ Guts::MediaControllerTest: test_should_get_index
680745
+ ------------------------------------------------
680746
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680747
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680748
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680749
+ Processing by Guts::MediaController#index as HTML
680750
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680751
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680752
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680753
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL
680754
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL LIMIT 30 OFFSET 0
680755
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680756
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/index.html.erb within layouts/guts/application (17.2ms)
680757
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680758
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680759
+ Completed 200 OK in 50ms (Views: 47.0ms | ActiveRecord: 0.5ms)
680760
+  (0.2ms) rollback transaction
680761
+  (0.1ms) begin transaction
680762
+ -----------------------------------------------------------------------
680763
+ Guts::MediaControllerTest: test_should_allow_for_custom_paginated_limit
680764
+ -----------------------------------------------------------------------
680765
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680766
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
680767
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680768
+ Processing by Guts::MediaController#index as HTML
680769
+ Parameters: {"per_page"=>"100"}
680770
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680771
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680772
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680773
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL
680774
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL LIMIT 100 OFFSET 0
680775
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680776
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/media/index.html.erb within layouts/guts/application (17.2ms)
680777
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680778
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680779
+ Completed 200 OK in 50ms (Views: 47.5ms | ActiveRecord: 0.6ms)
680780
+  (0.1ms) rollback transaction
680781
+  (0.1ms) begin transaction
680782
+ ---------------------------------------------------
680783
+ Guts::NavigationItemTest: test_should_not_be_custom
680784
+ ---------------------------------------------------
680785
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
680786
+  (0.0ms) rollback transaction
680787
+  (0.1ms) begin transaction
680788
+ --------------------------------------------------------------
680789
+ Guts::NavigationItemTest: test_should_not_create_without_title
680790
+ --------------------------------------------------------------
680791
+  (0.0ms) SAVEPOINT active_record_1
680792
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680793
+  (0.0ms) rollback transaction
680794
+  (0.0ms) begin transaction
680795
+ -------------------------------------------------------
680796
+ Guts::NavigationItemTest: test_should_return_navigation
680797
+ -------------------------------------------------------
680798
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
680799
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
680800
+  (0.0ms) rollback transaction
680801
+  (0.1ms) begin transaction
680802
+ --------------------------------------------------------
680803
+ Guts::NavigationItemTest: test_should_return_navigatable
680804
+ --------------------------------------------------------
680805
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
680806
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
680807
+  (0.0ms) rollback transaction
680808
+  (0.0ms) begin transaction
680809
+ ----------------------------------------------------------------------
680810
+ Guts::NavigationItemTest: test_should_return_metafields_for_navigation
680811
+ ----------------------------------------------------------------------
680812
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
680813
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 374718506], ["fieldable_type", "Guts::NavigationItem"]]
680814
+  (0.1ms) rollback transaction
680815
+  (0.1ms) begin transaction
680816
+ -----------------------------------------------
680817
+ Guts::NavigationItemTest: test_should_be_custom
680818
+ -----------------------------------------------
680819
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 368097465]]
680820
+  (0.1ms) rollback transaction
680821
+  (0.1ms) begin transaction
680822
+ ----------------------------------------
680823
+ Guts::UserTest: test_should_be_trackable
680824
+ ----------------------------------------
680825
+  (0.0ms) rollback transaction
680826
+  (0.1ms) begin transaction
680827
+ ----------------------------------------------------------
680828
+ Guts::UserTest: test_should_not_create_user_with_bad_email
680829
+ ----------------------------------------------------------
680830
+  (0.1ms) SAVEPOINT active_record_1
680831
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('dudeman') LIMIT 1
680832
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680833
+  (0.0ms) rollback transaction
680834
+  (0.1ms) begin transaction
680835
+ ---------------------------------------------------------------
680836
+ Guts::UserTest: test_should_not_create_user_with_small_password
680837
+ ---------------------------------------------------------------
680838
+  (0.0ms) SAVEPOINT active_record_1
680839
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('test@domain2.com') LIMIT 1
680840
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680841
+  (0.0ms) rollback transaction
680842
+  (0.1ms) begin transaction
680843
+ ---------------------------------------------
680844
+ Guts::UserTest: test_should_belong_to_a_group
680845
+ ---------------------------------------------
680846
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680847
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
680848
+ Guts::Group Exists (0.1ms) SELECT 1 AS one FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? AND "guts_groups"."id" = ? LIMIT 1 [["user_id", 764040363], ["id", 639558351]]
680849
+  (0.0ms) rollback transaction
680850
+  (0.1ms) begin transaction
680851
+ ---------------------------------------------------------------
680852
+ Guts::UserTest: test_should_not_create_user_with_existing_email
680853
+ ---------------------------------------------------------------
680854
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680855
+  (0.0ms) SAVEPOINT active_record_1
680856
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('test@domain.com') LIMIT 1
680857
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680858
+  (0.0ms) rollback transaction
680859
+  (0.1ms) begin transaction
680860
+ -----------------------------------------------------------
680861
+ Guts::UserTest: test_should_not_create_user_with_large_name
680862
+ -----------------------------------------------------------
680863
+  (0.0ms) SAVEPOINT active_record_1
680864
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE "guts_users"."email" IS NULL LIMIT 1
680865
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
680866
+  (0.0ms) rollback transaction
680867
+  (0.0ms) begin transaction
680868
+ -----------------------------------------------
680869
+ Guts::UserTest: test_should_downcase_user_email
680870
+ -----------------------------------------------
680871
+  (0.0ms) rollback transaction
680872
+  (0.1ms) begin transaction
680873
+ --------------------------------------------------------
680874
+ Guts::UserTest: test_should_not_create_user_without_name
680875
+ --------------------------------------------------------
680876
+  (0.0ms) SAVEPOINT active_record_1
680877
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE "guts_users"."email" IS NULL LIMIT 1
680878
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
680879
+  (0.1ms) rollback transaction
680880
+  (0.2ms) begin transaction
680881
+ ------------------------------------------------------
680882
+ Guts::UserTest: test_should_return_metafields_for_user
680883
+ ------------------------------------------------------
680884
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680885
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 764040363], ["fieldable_type", "Guts::User"]]
680886
+  (0.1ms) rollback transaction
680887
+  (0.1ms) begin transaction
680888
+ --------------------------------------
680889
+ UserMailerTest: test_should_send_reset
680890
+ --------------------------------------
680891
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680892
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/user_mailer/password_reset.html.erb within layouts/guts/mailer (3.1ms)
680893
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/user_mailer/password_reset.text.erb within layouts/guts/mailer (3.6ms)
680894
+
680895
+ Guts::UserMailer#password_reset: processed outbound mail in 36.4ms
680896
+
680897
+ Sent mail to test@domain.com (13.2ms)
680898
+ Date: Thu, 28 Apr 2016 01:15:29 -0230
680899
+ From: from@example.com
680900
+ To: test@domain.com
680901
+ Message-ID: <5721875932bf2_33473fe51c85e1fc96424@Tylers-MacBook-Pro.local.mail>
680902
+ Subject: Reset Password
680903
+ Mime-Version: 1.0
680904
+ Content-Type: multipart/alternative;
680905
+ boundary="--==_mimepart_572187593065f_33473fe51c85e1fc963a7";
680906
+ charset=UTF-8
680907
+ Content-Transfer-Encoding: 7bit
680908
+
680909
+
680910
+ ----==_mimepart_572187593065f_33473fe51c85e1fc963a7
680911
+ Content-Type: text/plain;
680912
+ charset=UTF-8
680913
+ Content-Transfer-Encoding: 7bit
680914
+
680915
+
680916
+ Hi, Test Admin
680917
+
680918
+ You are receiving this email because you've requested a new password.
680919
+
680920
+ Please click http://test.yourhost.com/guts/session/reset_password/123456 to reset your password. We will automatically generate you a secure password for future use.
680921
+
680922
+ ----==_mimepart_572187593065f_33473fe51c85e1fc963a7
680923
+ Content-Type: text/html;
680924
+ charset=UTF-8
680925
+ Content-Transfer-Encoding: 7bit
680926
+
680927
+ <html>
680928
+ <head>
680929
+
680930
+ </head>
680931
+ <body>
680932
+
680933
+ <p>Hi, Test Admin</p>
680934
+ <p>You are receiving this email because you've requested a new password.</p>
680935
+ <p>Please click <a href="http://test.yourhost.com/guts/session/reset_password/123456">here</a> to reset your password. We will automatically generate you a secure password for future use.</p>
680936
+
680937
+
680938
+ </body>
680939
+ </html>
680940
+
680941
+ ----==_mimepart_572187593065f_33473fe51c85e1fc963a7--
680942
+
680943
+  (0.1ms) rollback transaction
680944
+  (0.1ms) begin transaction
680945
+ -------------------------------------------------------------------------------------------
680946
+ Guts::ApplicationControllerWithMultisiteTest: test_should_set_current_site_with_actual_site
680947
+ -------------------------------------------------------------------------------------------
680948
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680949
+ Processing by Guts::UsersController#index as HTML
680950
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "fr.testsite.com"]]
680951
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680952
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680953
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
680954
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users"
680955
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 567506384]]
680956
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680957
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/index.html.erb within layouts/guts/application (16.3ms)
680958
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680959
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" = ? [["site_id", 27609037]]
680960
+ Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 0.6ms)
680961
+  (0.1ms) rollback transaction
680962
+  (0.1ms) begin transaction
680963
+ ---------------------------------------------------------------------------------------------------------
680964
+ Guts::ApplicationControllerWithMultisiteTest: test_should_set_current_site_and_current_site_should_be_nil
680965
+ ---------------------------------------------------------------------------------------------------------
680966
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680967
+ Processing by Guts::UsersController#index as HTML
680968
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
680969
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
680970
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680971
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
680972
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users"
680973
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 567506384]]
680974
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
680975
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/index.html.erb within layouts/guts/application (15.4ms)
680976
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
680977
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
680978
+ Completed 200 OK in 50ms (Views: 47.7ms | ActiveRecord: 0.6ms)
680979
+  (0.1ms) rollback transaction
680980
+  (0.0ms) begin transaction
680981
+ -------------------------------------------
680982
+ Guts::OptionTest: test_should_create_option
680983
+ -------------------------------------------
680984
+  (0.1ms) SAVEPOINT active_record_1
680985
+ SQL (0.3ms) INSERT INTO "guts_options" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "one_key"], ["value", "To rule them all"], ["created_at", "2016-04-28 03:45:29.340370"], ["updated_at", "2016-04-28 03:45:29.340370"]]
680986
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 202528442], ["object_type", "Guts::Option"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.342488"], ["updated_at", "2016-04-28 03:45:29.342488"]]
680987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
680988
+  (0.4ms) rollback transaction
680989
+  (0.1ms) begin transaction
680990
+ ------------------------------------------------------------
680991
+ Guts::OptionTest: test_option_should_be_multisite_compatible
680992
+ ------------------------------------------------------------
680993
+  (0.0ms) rollback transaction
680994
+  (0.1ms) begin transaction
680995
+ ------------------------------------------
680996
+ Guts::OptionTest: test_should_be_trackable
680997
+ ------------------------------------------
680998
+  (0.0ms) rollback transaction
680999
+  (0.1ms) begin transaction
681000
+ ----------------------------------------------------------------------------
681001
+ Guts::OptionTest: test_should_not_create_with_key_less_than_three_characters
681002
+ ----------------------------------------------------------------------------
681003
+  (0.0ms) SAVEPOINT active_record_1
681004
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681005
+  (0.1ms) rollback transaction
681006
+  (0.1ms) begin transaction
681007
+ ----------------------------------------------------
681008
+ Guts::OptionTest: test_should_not_create_without_key
681009
+ ----------------------------------------------------
681010
+  (0.0ms) SAVEPOINT active_record_1
681011
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681012
+  (0.0ms) rollback transaction
681013
+  (0.1ms) begin transaction
681014
+ ------------------------------------------------
681015
+ Guts::OptionTest: test_should_normalize_key_name
681016
+ ------------------------------------------------
681017
+  (0.1ms) rollback transaction
681018
+  (0.1ms) begin transaction
681019
+ -------------------------------------------------------------
681020
+ Guts::OptionTest: test_should_find_by_key_using_helper_method
681021
+ -------------------------------------------------------------
681022
+ Guts::Option Load (0.2ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL AND "guts_options"."key" = ? LIMIT 1 [["key", "test_key"]]
681023
+  (0.1ms) rollback transaction
681024
+  (0.0ms) begin transaction
681025
+ ------------------------------------------------------------------
681026
+ Guts::MetafieldTest: test_metafield_should_be_multisite_compatible
681027
+ ------------------------------------------------------------------
681028
+  (0.0ms) rollback transaction
681029
+  (0.0ms) begin transaction
681030
+ -----------------------------------------------------------
681031
+ Guts::MetafieldTest: test_should_belong_to_a_fieldable_type
681032
+ -----------------------------------------------------------
681033
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."id" = ? LIMIT 1 [["id", 434488443]]
681034
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681035
+  (0.1ms) rollback transaction
681036
+  (0.1ms) begin transaction
681037
+ -------------------------------------------------------
681038
+ Guts::MetafieldTest: test_should_not_create_without_key
681039
+ -------------------------------------------------------
681040
+  (0.0ms) SAVEPOINT active_record_1
681041
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681042
+  (0.0ms) rollback transaction
681043
+  (0.1ms) begin transaction
681044
+ -----------------------------------------------------------------------
681045
+ Guts::UsersTaskTest: test_user_should_not_be_deleted_if_they_dont_exist
681046
+ -----------------------------------------------------------------------
681047
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "timmy.kimble@gmail.com"]]
681048
+  (0.0ms) rollback transaction
681049
+  (0.1ms) begin transaction
681050
+ ------------------------------------------------
681051
+ Guts::UsersTaskTest: test_user_should_be_created
681052
+ ------------------------------------------------
681053
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."title" = ? LIMIT 1 [["title", "Admins"]]
681054
+  (0.1ms) SAVEPOINT active_record_1
681055
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('tom.jones@gmail.com') LIMIT 1
681056
+ SQL (0.3ms) INSERT INTO "guts_users" ("name", "password_digest", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Tom Jones"], ["password_digest", "$2a$04$hItVmdfhyoTuPSzRp8hJuuCyiltbSMsdWEJsThOdm9KJJl/QNzhCq"], ["email", "tom.jones@gmail.com"], ["created_at", "2016-04-28 03:45:29.374254"], ["updated_at", "2016-04-28 03:45:29.374254"]]
681057
+ SQL (0.1ms) INSERT INTO "guts_user_groups" ("group_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["group_id", 639558351], ["user_id", 764040364], ["created_at", "2016-04-28 03:45:29.375832"], ["updated_at", "2016-04-28 03:45:29.375832"]]
681058
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 764040364], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.378138"], ["updated_at", "2016-04-28 03:45:29.378138"]]
681059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681060
+  (0.4ms) rollback transaction
681061
+  (0.1ms) begin transaction
681062
+ ---------------------------------------------------------------------------
681063
+ Guts::UsersTaskTest: test_user_should_not_be_deleted_if_missing_information
681064
+ ---------------------------------------------------------------------------
681065
+  (0.1ms) rollback transaction
681066
+  (0.1ms) begin transaction
681067
+ -----------------------------------------------------------------------------
681068
+ Guts::UsersTaskTest: test_user_should_not_be_created_when_missing_information
681069
+ -----------------------------------------------------------------------------
681070
+  (0.1ms) rollback transaction
681071
+  (0.1ms) begin transaction
681072
+ ---------------------------------------------------------------------------------
681073
+ Guts::UsersTaskTest: test_should_not_set_new_password_for_user_if_they_dont_exist
681074
+ ---------------------------------------------------------------------------------
681075
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "timmy.kimble@gmail.com"]]
681076
+  (0.1ms) rollback transaction
681077
+  (0.2ms) begin transaction
681078
+ ---------------------------------------------------------------------------------
681079
+ Guts::UsersTaskTest: test_should_not_set_password_for_user_if_missing_information
681080
+ ---------------------------------------------------------------------------------
681081
+  (0.1ms) rollback transaction
681082
+  (0.1ms) begin transaction
681083
+ ----------------------------------------------------------
681084
+ Guts::UsersTaskTest: test_should_set_new_password_for_user
681085
+ ----------------------------------------------------------
681086
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."title" = ? LIMIT 1 [["title", "Admins"]]
681087
+  (0.1ms) SAVEPOINT active_record_1
681088
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('tom.jonesed@gmail.com') LIMIT 1
681089
+ SQL (0.2ms) INSERT INTO "guts_users" ("name", "password_digest", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Tom Jonesed"], ["password_digest", "$2a$04$3xNog9GdjzWaNkTd7fUXgeTmU4DOU0S1z38re2VtD0qZEYm5Kia1K"], ["email", "tom.jonesed@gmail.com"], ["created_at", "2016-04-28 03:45:29.394654"], ["updated_at", "2016-04-28 03:45:29.394654"]]
681090
+ SQL (0.1ms) INSERT INTO "guts_user_groups" ("group_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["group_id", 639558351], ["user_id", 764040364], ["created_at", "2016-04-28 03:45:29.395871"], ["updated_at", "2016-04-28 03:45:29.395871"]]
681091
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 764040364], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.397807"], ["updated_at", "2016-04-28 03:45:29.397807"]]
681092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681093
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "tom.jonesed@gmail.com"]]
681094
+  (0.0ms) SAVEPOINT active_record_1
681095
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE (LOWER("guts_users"."email") = LOWER('tom.jonesed@gmail.com') AND "guts_users"."id" != 764040364) LIMIT 1
681096
+ SQL (0.3ms) UPDATE "guts_users" SET "password_digest" = ?, "updated_at" = ? WHERE "guts_users"."id" = ? [["password_digest", "$2a$04$Cxnx1jIpESDiXGdR2hLb4.tYiEaFiLS1awvczhiE5mUheMITCaQg."], ["updated_at", "2016-04-28 03:45:29.402118"], ["id", 764040364]]
681097
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 764040364], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.404492"], ["updated_at", "2016-04-28 03:45:29.404492"]]
681098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681099
+  (0.5ms) rollback transaction
681100
+  (0.1ms) begin transaction
681101
+ ------------------------------------------------
681102
+ Guts::UsersTaskTest: test_user_should_be_deleted
681103
+ ------------------------------------------------
681104
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."title" = ? LIMIT 1 [["title", "Admins"]]
681105
+  (0.1ms) SAVEPOINT active_record_1
681106
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('tom.joneser@gmail.com') LIMIT 1
681107
+ SQL (0.2ms) INSERT INTO "guts_users" ("name", "password_digest", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Tom Joneser"], ["password_digest", "$2a$04$tfC.mP4TnR.f/oY5Q3O3re7s6VoAdbiBEct5L4dxya/xNC8spSllq"], ["email", "tom.joneser@gmail.com"], ["created_at", "2016-04-28 03:45:29.412461"], ["updated_at", "2016-04-28 03:45:29.412461"]]
681108
+ SQL (0.1ms) INSERT INTO "guts_user_groups" ("group_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["group_id", 639558351], ["user_id", 764040364], ["created_at", "2016-04-28 03:45:29.413781"], ["updated_at", "2016-04-28 03:45:29.413781"]]
681109
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 764040364], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.416516"], ["updated_at", "2016-04-28 03:45:29.416516"]]
681110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
681111
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "tom.joneser@gmail.com"]]
681112
+  (0.1ms) SAVEPOINT active_record_1
681113
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 764040364], ["filable_type", "Guts::User"]]
681114
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 764040364], ["fieldable_type", "Guts::User"]]
681115
+ SQL (0.3ms) DELETE FROM "guts_users" WHERE "guts_users"."id" = ? [["id", 764040364]]
681116
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 764040364], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.424431"], ["updated_at", "2016-04-28 03:45:29.424431"]]
681117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681118
+  (0.7ms) rollback transaction
681119
+  (0.1ms) begin transaction
681120
+ ---------------------------------------------
681121
+ Guts::ContentTest: test_should_return_no_user
681122
+ ---------------------------------------------
681123
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681124
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 343024605]]
681125
+  (0.1ms) rollback transaction
681126
+  (0.1ms) begin transaction
681127
+ ----------------------------------------------------------
681128
+ Guts::ContentTest: test_should_return_category_for_content
681129
+ ----------------------------------------------------------
681130
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681131
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681132
+ Guts::Category Load (0.0ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."id" = ? LIMIT 1 [["id", 321852057]]
681133
+ Guts::Category Exists (0.3ms) SELECT 1 AS one FROM "guts_categories" INNER JOIN "guts_categorizations" ON "guts_categories"."id" = "guts_categorizations"."category_id" WHERE "guts_categories"."site_id" IS NULL AND "guts_categorizations"."content_id" = ? AND "guts_categories"."id" = ? LIMIT 1 [["content_id", 292789487], ["id", 321852057]]
681134
+  (0.1ms) rollback transaction
681135
+  (0.1ms) begin transaction
681136
+ -------------------------------------------------------
681137
+ Guts::ContentTest: test_should_not_create_without_title
681138
+ -------------------------------------------------------
681139
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681140
+  (0.1ms) SAVEPOINT active_record_1
681141
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681142
+  (0.0ms) rollback transaction
681143
+  (0.1ms) begin transaction
681144
+ ------------------------------------------------------------
681145
+ Guts::ContentTest: test_should_return_metafields_for_content
681146
+ ------------------------------------------------------------
681147
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681148
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681149
+  (0.0ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 292789487], ["fieldable_type", "Guts::Content"]]
681150
+  (0.0ms) rollback transaction
681151
+  (0.1ms) begin transaction
681152
+ ------------------------------------------------------
681153
+ Guts::ContentTest: test_should_not_create_without_type
681154
+ ------------------------------------------------------
681155
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681156
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681157
+  (0.0ms) SAVEPOINT active_record_1
681158
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681159
+  (0.0ms) rollback transaction
681160
+  (0.1ms) begin transaction
681161
+ -------------------------------------------
681162
+ Guts::ContentTest: test_should_be_trackable
681163
+ -------------------------------------------
681164
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681165
+  (0.0ms) rollback transaction
681166
+  (0.1ms) begin transaction
681167
+ ------------------------------------------
681168
+ Guts::ContentTest: test_should_return_user
681169
+ ------------------------------------------
681170
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681171
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681172
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681173
+  (0.1ms) rollback transaction
681174
+  (0.1ms) begin transaction
681175
+ -------------------------------------------------------------------------------
681176
+ Guts::ContentTest: test_should_not_create_with_title_less_than_three_characters
681177
+ -------------------------------------------------------------------------------
681178
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681179
+  (0.1ms) SAVEPOINT active_record_1
681180
+ Guts::Content Exists (0.1ms) SELECT 1 AS one FROM "guts_contents" WHERE ("guts_contents"."id" IS NOT NULL) AND "guts_contents"."slug" = ? LIMIT 1 [["slug", "12"]]
681181
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681182
+  (0.0ms) rollback transaction
681183
+  (0.1ms) begin transaction
681184
+ ----------------------------------------------------
681185
+ Guts::ContentTest: test_should_create_slug_for_title
681186
+ ----------------------------------------------------
681187
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681188
+  (0.0ms) SAVEPOINT active_record_1
681189
+ Guts::Content Exists (0.0ms) SELECT 1 AS one FROM "guts_contents" WHERE ("guts_contents"."id" IS NOT NULL) AND "guts_contents"."slug" = ? LIMIT 1 [["slug", "how-to-win-an-xbox"]]
681190
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681191
+  (0.0ms) rollback transaction
681192
+  (0.1ms) begin transaction
681193
+ --------------------------------------------------------------
681194
+ Guts::ContentTest: test_content_should_be_multisite_compatible
681195
+ --------------------------------------------------------------
681196
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681197
+  (0.0ms) rollback transaction
681198
+  (0.1ms) begin transaction
681199
+ -------------------------------------------------------
681200
+ Guts::ContentTest: test_should_create_content_with_user
681201
+ -------------------------------------------------------
681202
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681203
+  (0.0ms) SAVEPOINT active_record_1
681204
+ Guts::Content Exists (0.0ms) SELECT 1 AS one FROM "guts_contents" WHERE ("guts_contents"."id" IS NOT NULL) AND "guts_contents"."slug" = ? LIMIT 1 [["slug", "i-love-users"]]
681205
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
681206
+  (0.1ms) rollback transaction
681207
+  (0.0ms) begin transaction
681208
+ --------------------------------------------------------
681209
+ Guts::ContentTest: test_should_return_navigatable_format
681210
+ --------------------------------------------------------
681211
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681212
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681213
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681214
+  (0.1ms) rollback transaction
681215
+  (0.1ms) begin transaction
681216
+ -----------------------------------------------------------------------------
681217
+ Guts::ApplicationHelperTest: test_should_return_hidden_form_field_for_site_ID
681218
+ -----------------------------------------------------------------------------
681219
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681220
+  (0.0ms) rollback transaction
681221
+  (0.1ms) begin transaction
681222
+ --------------------------------------------------------------
681223
+ Guts::ApplicationHelperTest: test_should_return_a_destroy_link
681224
+ --------------------------------------------------------------
681225
+  (0.1ms) rollback transaction
681226
+  (0.1ms) begin transaction
681227
+ ---------------------------------------------------------------
681228
+ Guts::ApplicationHelperTest: test_should_return_subtitle_format
681229
+ ---------------------------------------------------------------
681230
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? LIMIT 1 [["id", 374718506]]
681231
+  (0.0ms) rollback transaction
681232
+  (0.0ms) begin transaction
681233
+ -------------------------------------------------------------
681234
+ Guts::ApplicationHelperTest: test_should_return_proper_css_ID
681235
+ -------------------------------------------------------------
681236
+  (0.0ms) rollback transaction
681237
+  (0.1ms) begin transaction
681238
+ --------------------------------------------------------------
681239
+ Guts::ApplicationHelperTest: test_should_return_menu_as_active
681240
+ --------------------------------------------------------------
681241
+  (0.0ms) rollback transaction
681242
+  (0.0ms) begin transaction
681243
+ -------------------------------------------------------------------------
681244
+ Guts::ApplicationHelperTest: test_should_return_menu_as_active_non-strict
681245
+ -------------------------------------------------------------------------
681246
+  (0.0ms) rollback transaction
681247
+  (0.1ms) begin transaction
681248
+ ------------------------------------------------------------------
681249
+ Guts::ApplicationHelperTest: test_should_not_return_menu_as_active
681250
+ ------------------------------------------------------------------
681251
+  (0.0ms) rollback transaction
681252
+  (0.0ms) begin transaction
681253
+ ------------------------------------------------
681254
+ Guts::OptionsControllerTest: test_should_get_new
681255
+ ------------------------------------------------
681256
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681257
+ Guts::Option Load (0.1ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681258
+ Processing by Guts::OptionsController#new as HTML
681259
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681260
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681261
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681262
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/_form.html.erb (8.2ms)
681263
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/new.html.erb within layouts/guts/application (10.6ms)
681264
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681265
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681266
+ Completed 200 OK in 51ms (Views: 48.1ms | ActiveRecord: 0.3ms)
681267
+  (0.1ms) rollback transaction
681268
+  (0.1ms) begin transaction
681269
+ -------------------------------------------------------
681270
+ Guts::OptionsControllerTest: test_should_destroy_option
681271
+ -------------------------------------------------------
681272
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681273
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681274
+  (0.1ms) SELECT COUNT(*) FROM "guts_options" WHERE "guts_options"."site_id" IS NULL
681275
+ Processing by Guts::OptionsController#destroy as HTML
681276
+ Parameters: {"id"=>"202528441"}
681277
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681278
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681279
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681280
+ Guts::Option Load (0.1ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL AND "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681281
+  (0.0ms) SAVEPOINT active_record_1
681282
+ SQL (0.3ms) DELETE FROM "guts_options" WHERE "guts_options"."id" = ? [["id", 202528441]]
681283
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 202528441], ["object_type", "Guts::Option"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.551317"], ["updated_at", "2016-04-28 03:45:29.551317"]]
681284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681285
+ Redirected to http://test.host/guts/options
681286
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
681287
+  (0.1ms) SELECT COUNT(*) FROM "guts_options" WHERE "guts_options"."site_id" IS NULL
681288
+  (0.4ms) rollback transaction
681289
+  (0.1ms) begin transaction
681290
+ ------------------------------------------------------
681291
+ Guts::OptionsControllerTest: test_should_create_option
681292
+ ------------------------------------------------------
681293
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681294
+ Guts::Option Load (0.1ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681295
+  (0.1ms) SELECT COUNT(*) FROM "guts_options" WHERE "guts_options"."site_id" IS NULL
681296
+ Processing by Guts::OptionsController#create as HTML
681297
+ Parameters: {"option"=>{"key"=>"Testing Key", "value"=>"123"}}
681298
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681299
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681300
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681301
+  (0.0ms) SAVEPOINT active_record_1
681302
+ SQL (0.3ms) INSERT INTO "guts_options" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "testing_key"], ["value", "123"], ["created_at", "2016-04-28 03:45:29.568698"], ["updated_at", "2016-04-28 03:45:29.568698"]]
681303
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 202528442], ["object_type", "Guts::Option"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.570648"], ["updated_at", "2016-04-28 03:45:29.570648"]]
681304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681305
+ Redirected to http://test.host/guts/options
681306
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
681307
+  (0.1ms) SELECT COUNT(*) FROM "guts_options" WHERE "guts_options"."site_id" IS NULL
681308
+  (0.4ms) rollback transaction
681309
+  (0.1ms) begin transaction
681310
+ ----------------------------------------------------
681311
+ Guts::OptionsControllerTest: test_should_show_option
681312
+ ----------------------------------------------------
681313
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681314
+ Guts::Option Load (0.1ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681315
+ Processing by Guts::OptionsController#show as HTML
681316
+ Parameters: {"id"=>"202528441"}
681317
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681318
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681319
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681320
+ Guts::Option Load (0.1ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL AND "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681321
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/show.html.erb within layouts/guts/application (3.5ms)
681322
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681323
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681324
+ Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.4ms)
681325
+  (0.1ms) rollback transaction
681326
+  (0.1ms) begin transaction
681327
+ -------------------------------------------------
681328
+ Guts::OptionsControllerTest: test_should_get_edit
681329
+ -------------------------------------------------
681330
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681331
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681332
+ Processing by Guts::OptionsController#edit as HTML
681333
+ Parameters: {"id"=>"202528441"}
681334
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681335
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681336
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681337
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL AND "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681338
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/_form.html.erb (6.9ms)
681339
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/edit.html.erb within layouts/guts/application (7.8ms)
681340
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681341
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681342
+ Completed 200 OK in 46ms (Views: 43.3ms | ActiveRecord: 0.3ms)
681343
+  (0.1ms) rollback transaction
681344
+  (0.1ms) begin transaction
681345
+ -------------------------------------------------------------------------
681346
+ Guts::OptionsControllerTest: test_should_allow_for_custom_paginated_limit
681347
+ -------------------------------------------------------------------------
681348
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681349
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681350
+ Processing by Guts::OptionsController#index as HTML
681351
+ Parameters: {"per_page"=>"100"}
681352
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681353
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681354
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681355
+  (0.1ms) SELECT COUNT(*) FROM "guts_options" WHERE "guts_options"."site_id" IS NULL
681356
+ Guts::Option Load (0.1ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL LIMIT 100 OFFSET 0
681357
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/index.html.erb within layouts/guts/application (8.6ms)
681358
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681359
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681360
+ Completed 200 OK in 43ms (Views: 39.5ms | ActiveRecord: 0.5ms)
681361
+  (0.1ms) rollback transaction
681362
+  (0.1ms) begin transaction
681363
+ --------------------------------------------------
681364
+ Guts::OptionsControllerTest: test_should_get_index
681365
+ --------------------------------------------------
681366
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681367
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681368
+ Processing by Guts::OptionsController#index as HTML
681369
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681370
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681371
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681372
+  (0.1ms) SELECT COUNT(*) FROM "guts_options" WHERE "guts_options"."site_id" IS NULL
681373
+ Guts::Option Load (0.1ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL LIMIT 30 OFFSET 0
681374
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/index.html.erb within layouts/guts/application (9.3ms)
681375
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681376
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681377
+ Completed 200 OK in 40ms (Views: 37.2ms | ActiveRecord: 0.6ms)
681378
+  (0.1ms) rollback transaction
681379
+  (0.1ms) begin transaction
681380
+ -----------------------------------------------------------------------------------
681381
+ Guts::OptionsControllerTest: test_should_fail_to_create_option_and_send_back_to_new
681382
+ -----------------------------------------------------------------------------------
681383
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681384
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681385
+ Processing by Guts::OptionsController#create as HTML
681386
+ Parameters: {"option"=>{"key"=>""}}
681387
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681388
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681389
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681390
+  (0.0ms) SAVEPOINT active_record_1
681391
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681392
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/_form.html.erb (5.8ms)
681393
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/new.html.erb within layouts/guts/application (6.0ms)
681394
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681395
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681396
+ Completed 200 OK in 40ms (Views: 36.0ms | ActiveRecord: 0.4ms)
681397
+  (0.1ms) rollback transaction
681398
+  (0.1ms) begin transaction
681399
+ ----------------------------------------------------------------------------------
681400
+ Guts::OptionsControllerTest: test_should_fail_to_edit_option_and_send_back_to_edit
681401
+ ----------------------------------------------------------------------------------
681402
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681403
+ Guts::Option Load (0.2ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681404
+ Processing by Guts::OptionsController#update as HTML
681405
+ Parameters: {"option"=>{"key"=>""}, "id"=>"202528441"}
681406
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681407
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681408
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681409
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL AND "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681410
+  (0.1ms) SAVEPOINT active_record_1
681411
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681412
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/_form.html.erb (5.8ms)
681413
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/options/edit.html.erb within layouts/guts/application (6.1ms)
681414
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681415
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681416
+ Completed 200 OK in 38ms (Views: 34.0ms | ActiveRecord: 0.4ms)
681417
+  (0.1ms) rollback transaction
681418
+  (0.1ms) begin transaction
681419
+ ------------------------------------------------------
681420
+ Guts::OptionsControllerTest: test_should_update_option
681421
+ ------------------------------------------------------
681422
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681423
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681424
+ Processing by Guts::OptionsController#update as HTML
681425
+ Parameters: {"option"=>{"value"=>"Hey!"}, "id"=>"202528441"}
681426
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681427
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681428
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681429
+ Guts::Option Load (0.0ms) SELECT "guts_options".* FROM "guts_options" WHERE "guts_options"."site_id" IS NULL AND "guts_options"."id" = ? LIMIT 1 [["id", 202528441]]
681430
+  (0.1ms) SAVEPOINT active_record_1
681431
+ SQL (0.2ms) UPDATE "guts_options" SET "value" = ?, "updated_at" = ? WHERE "guts_options"."id" = ? [["value", "Hey!"], ["updated_at", "2016-04-28 03:45:29.873325"], ["id", 202528441]]
681432
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 202528441], ["object_type", "Guts::Option"], ["params", "{\"value\":[\"123\",\"Hey!\"]}"], ["created_at", "2016-04-28 03:45:29.875363"], ["updated_at", "2016-04-28 03:45:29.875363"]]
681433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681434
+ Redirected to http://test.host/guts/options
681435
+ Completed 302 Found in 11ms (ActiveRecord: 0.7ms)
681436
+  (1.1ms) rollback transaction
681437
+  (0.1ms) begin transaction
681438
+ ----------------------------------------------------------------------
681439
+ Guts::TrackerTest: test_should_have_a_before_and_after_value_for_param
681440
+ ----------------------------------------------------------------------
681441
+ Guts::Tracker Load (0.1ms) SELECT "guts_trackers".* FROM "guts_trackers" WHERE "guts_trackers"."id" = ? LIMIT 1 [["id", 980190962]]
681442
+  (0.0ms) rollback transaction
681443
+  (0.1ms) begin transaction
681444
+ --------------------------------------------------------------
681445
+ Guts::TrackerTest: test_tracker_should_be_multisite_compatible
681446
+ --------------------------------------------------------------
681447
+  (0.1ms) rollback transaction
681448
+  (0.0ms) begin transaction
681449
+ ----------------------------------------------------
681450
+ Guts::TrackerTest: test_should_return_a_track_object
681451
+ ----------------------------------------------------
681452
+ Guts::Tracker Load (0.1ms) SELECT "guts_trackers".* FROM "guts_trackers" WHERE "guts_trackers"."id" = ? LIMIT 1 [["id", 980190962]]
681453
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681454
+  (0.1ms) rollback transaction
681455
+  (0.1ms) begin transaction
681456
+ -----------------------------------------------------------------
681457
+ Guts::TrackerTest: test_should_return_a_track_params_in_JSON_Hash
681458
+ -----------------------------------------------------------------
681459
+ Guts::Tracker Load (0.1ms) SELECT "guts_trackers".* FROM "guts_trackers" WHERE "guts_trackers"."id" = ? LIMIT 1 [["id", 980190962]]
681460
+  (0.1ms) rollback transaction
681461
+  (0.0ms) begin transaction
681462
+ ------------------------------------------------------------------
681463
+ Guts::SessionsControllerTest: test_should_reset_the_users_password
681464
+ ------------------------------------------------------------------
681465
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681466
+ Processing by Guts::SessionsController#reset_password as HTML
681467
+ Parameters: {"token"=>"123456"}
681468
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681469
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."password_token" = ? LIMIT 1 [["password_token", "123456"]]
681470
+  (0.0ms) SAVEPOINT active_record_1
681471
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE (LOWER("guts_users"."email") = LOWER('test@domain.com') AND "guts_users"."id" != 764040363) LIMIT 1
681472
+ SQL (0.3ms) UPDATE "guts_users" SET "password_token" = ?, "password_digest" = ?, "updated_at" = ? WHERE "guts_users"."id" = ? [["password_token", nil], ["password_digest", "$2a$04$pJWTMsp2Wzp0/ed3Z9N9YOAtFXjS1k/u0.ZEfoYO.ok.H1uH6PC8O"], ["updated_at", "2016-04-28 03:45:29.905828"], ["id", 764040363]]
681473
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 764040363], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:29.907868"], ["updated_at", "2016-04-28 03:45:29.907868"]]
681474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681475
+ Redirected to http://test.host/guts/session/login
681476
+ Completed 302 Found in 11ms (ActiveRecord: 0.7ms)
681477
+  (0.4ms) rollback transaction
681478
+  (0.1ms) begin transaction
681479
+ ---------------------------------------------------
681480
+ Guts::SessionsControllerTest: test_should_get_login
681481
+ ---------------------------------------------------
681482
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681483
+ Processing by Guts::SessionsController#new as HTML
681484
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681485
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sessions/new.html.erb within layouts/guts/application (7.2ms)
681486
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681487
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681488
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681489
+ Completed 200 OK in 45ms (Views: 44.2ms | ActiveRecord: 0.3ms)
681490
+  (0.1ms) rollback transaction
681491
+  (0.1ms) begin transaction
681492
+ ------------------------------------------------------------------
681493
+ Guts::SessionsControllerTest: test_should_get_forgot_password_page
681494
+ ------------------------------------------------------------------
681495
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681496
+ Processing by Guts::SessionsController#forgot as HTML
681497
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681498
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sessions/forgot.html.erb within layouts/guts/application (5.8ms)
681499
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681500
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681501
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681502
+ Completed 200 OK in 58ms (Views: 56.9ms | ActiveRecord: 0.3ms)
681503
+  (0.1ms) rollback transaction
681504
+  (0.1ms) begin transaction
681505
+ --------------------------------------------------------
681506
+ Guts::SessionsControllerTest: test_should_login_the_user
681507
+ --------------------------------------------------------
681508
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681509
+ Processing by Guts::SessionsController#create as HTML
681510
+ Parameters: {"session"=>{"email"=>"test@domain.com", "password"=>"[FILTERED]"}}
681511
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681512
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "test@domain.com"]]
681513
+ Redirected to http://test.host/guts/users
681514
+ Completed 302 Found in 78ms (ActiveRecord: 0.1ms)
681515
+  (0.1ms) rollback transaction
681516
+  (0.1ms) begin transaction
681517
+ ----------------------------------------------------------
681518
+ Guts::SessionsControllerTest: test_should_log_the_user_out
681519
+ ----------------------------------------------------------
681520
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681521
+ Processing by Guts::SessionsController#destroy as HTML
681522
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681523
+ Redirected to http://test.host/guts/session/login
681524
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
681525
+  (0.1ms) rollback transaction
681526
+  (0.1ms) begin transaction
681527
+ ------------------------------------------------------------------------------------------
681528
+ Guts::SessionsControllerTest: test_should_not_set_a_forgot_password_token_for_invalid_user
681529
+ ------------------------------------------------------------------------------------------
681530
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681531
+ Processing by Guts::SessionsController#forgot_token as HTML
681532
+ Parameters: {"session"=>{"email"=>"durkadurka@gmail.com"}}
681533
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681534
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "durkadurka@gmail.com"]]
681535
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sessions/forgot.html.erb within layouts/guts/application (4.8ms)
681536
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681537
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681538
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681539
+ Completed 200 OK in 38ms (Views: 37.0ms | ActiveRecord: 0.4ms)
681540
+  (0.1ms) rollback transaction
681541
+  (0.1ms) begin transaction
681542
+ ---------------------------------------------------------------------
681543
+ Guts::SessionsControllerTest: test_should_set_a_forgot_password_token
681544
+ ---------------------------------------------------------------------
681545
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681546
+ Processing by Guts::SessionsController#forgot_token as HTML
681547
+ Parameters: {"session"=>{"email"=>"test@domain.com"}}
681548
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681549
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "test@domain.com"]]
681550
+  (0.1ms) SAVEPOINT active_record_1
681551
+ SQL (0.4ms) UPDATE "guts_users" SET "password_token" = ?, "updated_at" = ? WHERE "guts_users"."id" = ? [["password_token", "aaa439cb"], ["updated_at", "2016-04-28 03:45:30.174080"], ["id", 764040363]]
681552
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 764040363], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:30.176645"], ["updated_at", "2016-04-28 03:45:30.176645"]]
681553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681554
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/user_mailer/password_reset.html.erb within layouts/guts/mailer (2.8ms)
681555
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/user_mailer/password_reset.text.erb within layouts/guts/mailer (2.5ms)
681556
+
681557
+ Guts::UserMailer#password_reset: processed outbound mail in 9.3ms
681558
+
681559
+ Sent mail to test@domain.com (4.7ms)
681560
+ Date: Thu, 28 Apr 2016 01:15:30 -0230
681561
+ From: from@example.com
681562
+ To: test@domain.com
681563
+ Message-ID: <5721875a2e4cf_33473fe51c85e1fc9668f@Tylers-MacBook-Pro.local.mail>
681564
+ Subject: Reset Password
681565
+ Mime-Version: 1.0
681566
+ Content-Type: multipart/alternative;
681567
+ boundary="--==_mimepart_5721875a2d77f_33473fe51c85e1fc96557";
681568
+ charset=UTF-8
681569
+ Content-Transfer-Encoding: 7bit
681570
+
681571
+
681572
+ ----==_mimepart_5721875a2d77f_33473fe51c85e1fc96557
681573
+ Content-Type: text/plain;
681574
+ charset=UTF-8
681575
+ Content-Transfer-Encoding: 7bit
681576
+
681577
+
681578
+ Hi, Test Admin
681579
+
681580
+ You are receiving this email because you've requested a new password.
681581
+
681582
+ Please click http://test.yourhost.com/guts/session/reset_password/aaa439cb to reset your password. We will automatically generate you a secure password for future use.
681583
+
681584
+ ----==_mimepart_5721875a2d77f_33473fe51c85e1fc96557
681585
+ Content-Type: text/html;
681586
+ charset=UTF-8
681587
+ Content-Transfer-Encoding: 7bit
681588
+
681589
+ <html>
681590
+ <head>
681591
+
681592
+ </head>
681593
+ <body>
681594
+
681595
+ <p>Hi, Test Admin</p>
681596
+ <p>You are receiving this email because you've requested a new password.</p>
681597
+ <p>Please click <a href="http://test.yourhost.com/guts/session/reset_password/aaa439cb">here</a> to reset your password. We will automatically generate you a secure password for future use.</p>
681598
+
681599
+
681600
+ </body>
681601
+ </html>
681602
+
681603
+ ----==_mimepart_5721875a2d77f_33473fe51c85e1fc96557--
681604
+
681605
+ Redirected to http://test.host/guts/session/login
681606
+ Completed 302 Found in 23ms (ActiveRecord: 0.8ms)
681607
+  (1.2ms) rollback transaction
681608
+  (0.1ms) begin transaction
681609
+ ---------------------------------------------------------------------
681610
+ Guts::SessionsControllerTest: test_should_show_error_for_invalid_user
681611
+ ---------------------------------------------------------------------
681612
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681613
+ Processing by Guts::SessionsController#create as HTML
681614
+ Parameters: {"session"=>{"email"=>"durkadurka@gmail.com"}}
681615
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681616
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "durkadurka@gmail.com"]]
681617
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sessions/new.html.erb within layouts/guts/application (5.7ms)
681618
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681619
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681620
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681621
+ Completed 200 OK in 42ms (Views: 40.9ms | ActiveRecord: 0.3ms)
681622
+  (0.1ms) rollback transaction
681623
+  (0.0ms) begin transaction
681624
+ ------------------------------------------------
681625
+ Guts::TypesControllerTest: test_should_show_type
681626
+ ------------------------------------------------
681627
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681628
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681629
+ Processing by Guts::TypesController#show as HTML
681630
+ Parameters: {"id"=>"page"}
681631
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681632
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681633
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681634
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
681635
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/show.html.erb within layouts/guts/application (4.3ms)
681636
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681637
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681638
+ Completed 200 OK in 50ms (Views: 46.7ms | ActiveRecord: 0.4ms)
681639
+  (0.1ms) rollback transaction
681640
+  (0.1ms) begin transaction
681641
+ -----------------------------------------------
681642
+ Guts::TypesControllerTest: test_should_get_edit
681643
+ -----------------------------------------------
681644
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681645
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681646
+ Processing by Guts::TypesController#edit as HTML
681647
+ Parameters: {"id"=>"page"}
681648
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681649
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681650
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681651
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
681652
+  (0.2ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = ? [["type_id", 186272755]]
681653
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 186272755], ["fieldable_type", "Guts::Type"]]
681654
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 186272755], ["filable_type", "Guts::Type"]]
681655
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/_form.html.erb (20.0ms)
681656
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/edit.html.erb within layouts/guts/application (22.8ms)
681657
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681658
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681659
+ Completed 200 OK in 61ms (Views: 58.2ms | ActiveRecord: 0.7ms)
681660
+  (0.1ms) rollback transaction
681661
+  (0.1ms) begin transaction
681662
+ -------------------------------------------------------------------------------
681663
+ Guts::TypesControllerTest: test_should_fail_to_create_type_and_send_back_to_new
681664
+ -------------------------------------------------------------------------------
681665
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681666
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681667
+ Processing by Guts::TypesController#create as HTML
681668
+ Parameters: {"type"=>{"title"=>""}}
681669
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681670
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681671
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681672
+  (0.1ms) SAVEPOINT active_record_1
681673
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
681674
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/_form.html.erb (6.8ms)
681675
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/new.html.erb within layouts/guts/application (7.6ms)
681676
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681677
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681678
+ Completed 200 OK in 46ms (Views: 41.4ms | ActiveRecord: 0.4ms)
681679
+  (0.1ms) rollback transaction
681680
+  (0.1ms) begin transaction
681681
+ ------------------------------------------------------------------------------
681682
+ Guts::TypesControllerTest: test_should_fail_to_edit_type_and_send_back_to_edit
681683
+ ------------------------------------------------------------------------------
681684
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681685
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681686
+ Processing by Guts::TypesController#update as HTML
681687
+ Parameters: {"type"=>{"title"=>""}, "id"=>"page"}
681688
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681689
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681690
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681691
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
681692
+  (0.1ms) SAVEPOINT active_record_1
681693
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
681694
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = ? [["type_id", 186272755]]
681695
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 186272755], ["fieldable_type", "Guts::Type"]]
681696
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 186272755], ["filable_type", "Guts::Type"]]
681697
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/_form.html.erb (19.8ms)
681698
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/edit.html.erb within layouts/guts/application (20.0ms)
681699
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681700
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681701
+ Completed 200 OK in 58ms (Views: 52.9ms | ActiveRecord: 0.7ms)
681702
+  (0.1ms) rollback transaction
681703
+  (0.0ms) begin transaction
681704
+ --------------------------------------------------
681705
+ Guts::TypesControllerTest: test_should_create_type
681706
+ --------------------------------------------------
681707
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681708
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681709
+  (0.1ms) SELECT COUNT(*) FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681710
+ Processing by Guts::TypesController#create as HTML
681711
+ Parameters: {"type"=>{"slug"=>"controller-type", "title"=>"Controller Type"}}
681712
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681713
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681714
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681715
+  (0.1ms) SAVEPOINT active_record_1
681716
+ SQL (0.4ms) INSERT INTO "guts_types" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Controller Type"], ["slug", "controller-type"], ["created_at", "2016-04-28 03:45:30.502892"], ["updated_at", "2016-04-28 03:45:30.502892"]]
681717
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 186272756], ["object_type", "Guts::Type"], ["params", "{}"], ["created_at", "2016-04-28 03:45:30.506069"], ["updated_at", "2016-04-28 03:45:30.506069"]]
681718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
681719
+ Redirected to http://test.host/guts/types
681720
+ Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
681721
+  (0.1ms) SELECT COUNT(*) FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681722
+  (0.9ms) rollback transaction
681723
+  (0.1ms) begin transaction
681724
+ --------------------------------------------------
681725
+ Guts::TypesControllerTest: test_should_update_type
681726
+ --------------------------------------------------
681727
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681728
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681729
+ Processing by Guts::TypesController#update as HTML
681730
+ Parameters: {"type"=>{"slug"=>"page", "title"=>"Page"}, "id"=>"page"}
681731
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681732
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681733
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681734
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
681735
+  (0.1ms) SAVEPOINT active_record_1
681736
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 186272755], ["object_type", "Guts::Type"], ["params", "{}"], ["created_at", "2016-04-28 03:45:30.523904"], ["updated_at", "2016-04-28 03:45:30.523904"]]
681737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681738
+ Redirected to http://test.host/guts/types
681739
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
681740
+  (0.5ms) rollback transaction
681741
+  (0.1ms) begin transaction
681742
+ ----------------------------------------------
681743
+ Guts::TypesControllerTest: test_should_get_new
681744
+ ----------------------------------------------
681745
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681746
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681747
+ Processing by Guts::TypesController#new as HTML
681748
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681749
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681750
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681751
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/_form.html.erb (5.2ms)
681752
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/new.html.erb within layouts/guts/application (5.5ms)
681753
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681754
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681755
+ Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.3ms)
681756
+  (0.1ms) rollback transaction
681757
+  (0.1ms) begin transaction
681758
+ ------------------------------------------------
681759
+ Guts::TypesControllerTest: test_should_get_index
681760
+ ------------------------------------------------
681761
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681762
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681763
+ Processing by Guts::TypesController#index as HTML
681764
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681765
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681766
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681767
+  (0.1ms) SELECT COUNT(*) FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681768
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681769
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = ? [["type_id", 186272755]]
681770
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/types/index.html.erb within layouts/guts/application (11.1ms)
681771
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681772
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681773
+ Completed 200 OK in 45ms (Views: 42.3ms | ActiveRecord: 0.5ms)
681774
+  (0.1ms) rollback transaction
681775
+  (0.1ms) begin transaction
681776
+ ---------------------------------------------------
681777
+ Guts::TypesControllerTest: test_should_destroy_type
681778
+ ---------------------------------------------------
681779
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681780
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681781
+  (0.1ms) SELECT COUNT(*) FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681782
+ Processing by Guts::TypesController#destroy as HTML
681783
+ Parameters: {"id"=>"page"}
681784
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681785
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681786
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681787
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
681788
+  (0.0ms) SAVEPOINT active_record_1
681789
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 186272755], ["filable_type", "Guts::Type"]]
681790
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 186272755], ["fieldable_type", "Guts::Type"]]
681791
+ SQL (0.2ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 474667608]]
681792
+ SQL (0.1ms) DELETE FROM "guts_types" WHERE "guts_types"."id" = ? [["id", 186272755]]
681793
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 186272755], ["object_type", "Guts::Type"], ["params", "{}"], ["created_at", "2016-04-28 03:45:30.640651"], ["updated_at", "2016-04-28 03:45:30.640651"]]
681794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
681795
+ Redirected to http://test.host/guts/types
681796
+ Completed 302 Found in 11ms (ActiveRecord: 0.9ms)
681797
+  (0.1ms) SELECT COUNT(*) FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681798
+  (0.6ms) rollback transaction
681799
+  (0.1ms) begin transaction
681800
+ --------------------------------------------
681801
+ GutsTest: test_config_should_be_overrideable
681802
+ --------------------------------------------
681803
+  (0.1ms) rollback transaction
681804
+  (0.1ms) begin transaction
681805
+ -----------------------------------------------------
681806
+ GutsTest: test_should_set_configuration_by_assignment
681807
+ -----------------------------------------------------
681808
+  (0.0ms) rollback transaction
681809
+  (0.1ms) begin transaction
681810
+ ------------------------------------------------
681811
+ GutsTest: test_should_set_configuration_by_block
681812
+ ------------------------------------------------
681813
+  (0.0ms) rollback transaction
681814
+  (0.1ms) begin transaction
681815
+ --------------------
681816
+ GutsTest: test_truth
681817
+ --------------------
681818
+  (0.0ms) rollback transaction
681819
+  (0.1ms) begin transaction
681820
+ ------------------------------------------------------
681821
+ GutsTest: test_should_return_nil_for_unassigned_config
681822
+ ------------------------------------------------------
681823
+  (0.0ms) rollback transaction
681824
+  (0.1ms) begin transaction
681825
+ ------------------------------------
681826
+ GutsTest: test_should_return_version
681827
+ ------------------------------------
681828
+  (0.1ms) rollback transaction
681829
+  (0.1ms) begin transaction
681830
+ --------------------------------------------
681831
+ GutsTest: test_should_grab_decorators_in_app
681832
+ --------------------------------------------
681833
+  (0.0ms) rollback transaction
681834
+  (0.0ms) begin transaction
681835
+ ------------------------------------------------------------------
681836
+ Guts::MediumTest: test_should_not_process_paperclip_for_non_images
681837
+ ------------------------------------------------------------------
681838
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681839
+  (0.1ms) rollback transaction
681840
+  (0.1ms) begin transaction
681841
+ ------------------------------------------
681842
+ Guts::MediumTest: test_should_be_trackable
681843
+ ------------------------------------------
681844
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681845
+  (0.1ms) rollback transaction
681846
+  (0.1ms) begin transaction
681847
+ ------------------------------------------------------------------
681848
+ Guts::MediumTest: test_should_return_polymorphic_object_for_medium
681849
+ ------------------------------------------------------------------
681850
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681851
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681852
+  (0.1ms) rollback transaction
681853
+  (0.1ms) begin transaction
681854
+ ------------------------------------------------------
681855
+ Guts::MediumTest: test_should_not_create_without_title
681856
+ ------------------------------------------------------
681857
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681858
+  (0.0ms) SAVEPOINT active_record_1
681859
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681860
+  (0.0ms) rollback transaction
681861
+  (0.1ms) begin transaction
681862
+ --------------------------------------------------------------
681863
+ Guts::MediumTest: test_should_not_create_title_less_than_three
681864
+ --------------------------------------------------------------
681865
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681866
+  (0.0ms) SAVEPOINT active_record_1
681867
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
681868
+  (0.0ms) rollback transaction
681869
+  (0.0ms) begin transaction
681870
+ ------------------------------------------------------------
681871
+ Guts::MediumTest: test_medium_should_be_multisite_compatible
681872
+ ------------------------------------------------------------
681873
+ Guts::Medium Load (0.5ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681874
+  (0.1ms) rollback transaction
681875
+  (0.1ms) begin transaction
681876
+ -------------------------------------------------------------
681877
+ Guts::MediumTest: test_should_return_urls_for_different_sizes
681878
+ -------------------------------------------------------------
681879
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681880
+  (0.1ms) rollback transaction
681881
+  (0.1ms) begin transaction
681882
+ ----------------------------------------------------------
681883
+ Guts::MediumTest: test_should_process_paperclip_for_images
681884
+ ----------------------------------------------------------
681885
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."id" = ? LIMIT 1 [["id", 166075617]]
681886
+  (0.1ms) rollback transaction
681887
+  (0.1ms) begin transaction
681888
+ ---------------------------------------------------
681889
+ Guts::TrackersControllerTest: test_should_get_index
681890
+ ---------------------------------------------------
681891
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681892
+ Processing by Guts::TrackersController#index as HTML
681893
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681894
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681895
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681896
+  (0.1ms) SELECT COUNT(*) FROM "guts_trackers" WHERE "guts_trackers"."site_id" IS NULL
681897
+ Guts::Tracker Load (0.1ms) SELECT "guts_trackers".* FROM "guts_trackers" WHERE "guts_trackers"."site_id" IS NULL ORDER BY "guts_trackers"."created_at" DESC
681898
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681899
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681900
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/trackers/actions/_content_create.html.erb (5.3ms)
681901
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
681902
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
681903
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/trackers/actions/_params.html.erb (0.9ms)
681904
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/trackers/actions/_content_update.html.erb (6.8ms)
681905
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/trackers/index.html.erb within layouts/guts/application (19.4ms)
681906
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681907
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681908
+ Completed 200 OK in 60ms (Views: 57.3ms | ActiveRecord: 0.8ms)
681909
+  (0.1ms) rollback transaction
681910
+  (0.1ms) begin transaction
681911
+ ----------------------------------------------------------------------------------
681912
+ Guts::GroupsControllerTest: test_should_fail_to_update_group_and_send_back_to_edit
681913
+ ----------------------------------------------------------------------------------
681914
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681915
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
681916
+ Processing by Guts::GroupsController#update as HTML
681917
+ Parameters: {"group"=>{"title"=>""}, "id"=>"admins"}
681918
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681919
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681920
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681921
+ Guts::Group Load (0.2ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."slug" = ? ORDER BY "guts_groups"."id" ASC LIMIT 1 [["slug", "admins"]]
681922
+  (0.1ms) SAVEPOINT active_record_1
681923
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
681924
+  (0.2ms) SELECT COUNT(*) FROM "guts_users" INNER JOIN "guts_user_groups" ON "guts_users"."id" = "guts_user_groups"."user_id" WHERE "guts_user_groups"."group_id" = ? [["group_id", 639558351]]
681925
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 639558351], ["fieldable_type", "Guts::Group"]]
681926
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 639558351], ["filable_type", "Guts::Group"]]
681927
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/_form.html.erb (28.4ms)
681928
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/edit.html.erb within layouts/guts/application (30.9ms)
681929
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681930
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681931
+ Completed 200 OK in 75ms (Views: 68.7ms | ActiveRecord: 1.0ms)
681932
+  (0.1ms) rollback transaction
681933
+  (0.1ms) begin transaction
681934
+ ----------------------------------------------------
681935
+ Guts::GroupsControllerTest: test_should_update_group
681936
+ ----------------------------------------------------
681937
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681938
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
681939
+ Processing by Guts::GroupsController#update as HTML
681940
+ Parameters: {"group"=>{"slug"=>"admins", "title"=>"Admins"}, "id"=>"admins"}
681941
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681942
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681943
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681944
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."slug" = ? ORDER BY "guts_groups"."id" ASC LIMIT 1 [["slug", "admins"]]
681945
+  (0.0ms) SAVEPOINT active_record_1
681946
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 639558351], ["object_type", "Guts::Group"], ["params", "{}"], ["created_at", "2016-04-28 03:45:30.845636"], ["updated_at", "2016-04-28 03:45:30.845636"]]
681947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681948
+ Redirected to http://test.host/guts/groups
681949
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
681950
+  (0.4ms) rollback transaction
681951
+  (0.1ms) begin transaction
681952
+ -----------------------------------------------
681953
+ Guts::GroupsControllerTest: test_should_get_new
681954
+ -----------------------------------------------
681955
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681956
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
681957
+ Processing by Guts::GroupsController#new as HTML
681958
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681959
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681960
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681961
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/_form.html.erb (6.4ms)
681962
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/new.html.erb within layouts/guts/application (7.4ms)
681963
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
681964
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
681965
+ Completed 200 OK in 45ms (Views: 42.9ms | ActiveRecord: 0.3ms)
681966
+  (0.1ms) rollback transaction
681967
+  (0.1ms) begin transaction
681968
+ -----------------------------------------------------
681969
+ Guts::GroupsControllerTest: test_should_destroy_group
681970
+ -----------------------------------------------------
681971
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681972
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
681973
+  (0.1ms) SELECT COUNT(*) FROM "guts_groups"
681974
+ Processing by Guts::GroupsController#destroy as HTML
681975
+ Parameters: {"id"=>"admins"}
681976
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681977
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681978
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
681979
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."slug" = ? ORDER BY "guts_groups"."id" ASC LIMIT 1 [["slug", "admins"]]
681980
+  (0.0ms) SAVEPOINT active_record_1
681981
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 639558351], ["filable_type", "Guts::Group"]]
681982
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 639558351], ["fieldable_type", "Guts::Group"]]
681983
+ SQL (0.2ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 447581302]]
681984
+ SQL (0.1ms) DELETE FROM "guts_groups" WHERE "guts_groups"."id" = ? [["id", 639558351]]
681985
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 639558351], ["object_type", "Guts::Group"], ["params", "{}"], ["created_at", "2016-04-28 03:45:30.916441"], ["updated_at", "2016-04-28 03:45:30.916441"]]
681986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681987
+ Redirected to http://test.host/guts/groups
681988
+ Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
681989
+  (0.1ms) SELECT COUNT(*) FROM "guts_groups"
681990
+  (0.6ms) rollback transaction
681991
+  (0.1ms) begin transaction
681992
+ -------------------------------------------------
681993
+ Guts::GroupsControllerTest: test_should_get_index
681994
+ -------------------------------------------------
681995
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
681996
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
681997
+ Processing by Guts::GroupsController#index as HTML
681998
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
681999
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682000
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682001
+  (0.1ms) SELECT COUNT(*) FROM "guts_groups"
682002
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups"
682003
+  (0.1ms) SELECT COUNT(*) FROM "guts_users" INNER JOIN "guts_user_groups" ON "guts_users"."id" = "guts_user_groups"."user_id" WHERE "guts_user_groups"."group_id" = ? [["group_id", 639558351]]
682004
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/index.html.erb within layouts/guts/application (22.3ms)
682005
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682006
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682007
+ Completed 200 OK in 73ms (Views: 70.3ms | ActiveRecord: 0.6ms)
682008
+  (0.1ms) rollback transaction
682009
+  (0.1ms) begin transaction
682010
+ ---------------------------------------------------------------------------------
682011
+ Guts::GroupsControllerTest: test_should_fail_to_create_group_and_send_back_to_new
682012
+ ---------------------------------------------------------------------------------
682013
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682014
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682015
+ Processing by Guts::GroupsController#create as HTML
682016
+ Parameters: {"group"=>{"title"=>""}}
682017
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682018
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682019
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682020
+  (0.1ms) SAVEPOINT active_record_1
682021
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
682022
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/_form.html.erb (6.8ms)
682023
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/new.html.erb within layouts/guts/application (7.0ms)
682024
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682025
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682026
+ Completed 200 OK in 44ms (Views: 39.4ms | ActiveRecord: 0.4ms)
682027
+  (0.1ms) rollback transaction
682028
+  (0.1ms) begin transaction
682029
+ --------------------------------------------------
682030
+ Guts::GroupsControllerTest: test_should_show_group
682031
+ --------------------------------------------------
682032
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682033
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682034
+ Processing by Guts::GroupsController#show as HTML
682035
+ Parameters: {"id"=>"admins"}
682036
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682037
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682038
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682039
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."slug" = ? ORDER BY "guts_groups"."id" ASC LIMIT 1 [["slug", "admins"]]
682040
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/show.html.erb within layouts/guts/application (3.7ms)
682041
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682042
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682043
+ Completed 200 OK in 40ms (Views: 37.2ms | ActiveRecord: 0.4ms)
682044
+  (0.1ms) rollback transaction
682045
+  (0.1ms) begin transaction
682046
+ ----------------------------------------------------
682047
+ Guts::GroupsControllerTest: test_should_create_group
682048
+ ----------------------------------------------------
682049
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682050
+ Guts::Group Load (0.2ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682051
+  (0.1ms) SELECT COUNT(*) FROM "guts_groups"
682052
+ Processing by Guts::GroupsController#create as HTML
682053
+ Parameters: {"group"=>{"slug"=>"group-test", "title"=>"Group Test"}}
682054
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682055
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682056
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682057
+  (0.1ms) SAVEPOINT active_record_1
682058
+ SQL (0.3ms) INSERT INTO "guts_groups" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Group Test"], ["slug", "group-test"], ["created_at", "2016-04-28 03:45:31.111553"], ["updated_at", "2016-04-28 03:45:31.111553"]]
682059
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 639558352], ["object_type", "Guts::Group"], ["params", "{}"], ["created_at", "2016-04-28 03:45:31.113775"], ["updated_at", "2016-04-28 03:45:31.113775"]]
682060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682061
+ Redirected to http://test.host/guts/groups
682062
+ Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
682063
+  (0.1ms) SELECT COUNT(*) FROM "guts_groups"
682064
+  (0.4ms) rollback transaction
682065
+  (0.1ms) begin transaction
682066
+ ------------------------------------------------
682067
+ Guts::GroupsControllerTest: test_should_get_edit
682068
+ ------------------------------------------------
682069
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682070
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682071
+ Processing by Guts::GroupsController#edit as HTML
682072
+ Parameters: {"id"=>"admins"}
682073
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682074
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682075
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682076
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."slug" = ? ORDER BY "guts_groups"."id" ASC LIMIT 1 [["slug", "admins"]]
682077
+  (0.1ms) SELECT COUNT(*) FROM "guts_users" INNER JOIN "guts_user_groups" ON "guts_users"."id" = "guts_user_groups"."user_id" WHERE "guts_user_groups"."group_id" = ? [["group_id", 639558351]]
682078
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 639558351], ["fieldable_type", "Guts::Group"]]
682079
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 639558351], ["filable_type", "Guts::Group"]]
682080
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/_form.html.erb (17.9ms)
682081
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/groups/edit.html.erb within layouts/guts/application (18.1ms)
682082
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682083
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682084
+ Completed 200 OK in 52ms (Views: 49.2ms | ActiveRecord: 0.5ms)
682085
+  (0.1ms) rollback transaction
682086
+  (0.1ms) begin transaction
682087
+ -------------------------------------------------------------------------------------
682088
+ Guts::ApplicationControllerTest: test_should_look_for_layout_hook_file_from_Rails_app
682089
+ -------------------------------------------------------------------------------------
682090
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682091
+ Processing by Guts::UsersController#index as HTML
682092
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682093
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682094
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682095
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682096
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users"
682097
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 567506384]]
682098
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682099
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/index.html.erb within layouts/guts/application (14.4ms)
682100
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682101
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682102
+ Completed 200 OK in 48ms (Views: 44.9ms | ActiveRecord: 0.7ms)
682103
+  (0.1ms) rollback transaction
682104
+  (0.1ms) begin transaction
682105
+ --------------------------------------------------------------------------------------------
682106
+ Guts::ApplicationControllerTest: test_should_redirect_for_logged_in_user_not_in_admin_groups
682107
+ --------------------------------------------------------------------------------------------
682108
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682109
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 567506384]]
682110
+ Processing by Guts::UsersController#index as HTML
682111
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682112
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 567506384]]
682113
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 567506384]]
682114
+ Redirected to http://test.host/guts/session/login
682115
+ Filter chain halted as :firewall rendered or redirected
682116
+ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
682117
+  (0.1ms) rollback transaction
682118
+  (0.1ms) begin transaction
682119
+ ----------------------------------------------------------------------------
682120
+ Guts::ApplicationControllerTest: test_should_redirect_for_non_logged_in_user
682121
+ ----------------------------------------------------------------------------
682122
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682123
+ Processing by Guts::UsersController#index as HTML
682124
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682125
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" IS NULL LIMIT 1
682126
+ Redirected to http://test.host/guts/session/login
682127
+ Filter chain halted as :firewall rendered or redirected
682128
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
682129
+  (0.1ms) rollback transaction
682130
+  (0.0ms) begin transaction
682131
+ --------------------------------------------------------------------------------------------
682132
+ Guts::NavigationsControllerTest: test_should_fail_to_update_navigation_and_send_back_to_edit
682133
+ --------------------------------------------------------------------------------------------
682134
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682135
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682136
+ Processing by Guts::NavigationsController#update as HTML
682137
+ Parameters: {"navigation"=>{"title"=>""}, "id"=>"test-nav"}
682138
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682139
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682140
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682141
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "test-nav"]]
682142
+  (0.1ms) SAVEPOINT active_record_1
682143
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682144
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 839480070], ["fieldable_type", "Guts::Navigation"]]
682145
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 839480070], ["filable_type", "Guts::Navigation"]]
682146
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (18.7ms)
682147
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/edit.html.erb within layouts/guts/application (21.1ms)
682148
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682149
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682150
+ Completed 200 OK in 60ms (Views: 55.9ms | ActiveRecord: 0.6ms)
682151
+  (0.1ms) rollback transaction
682152
+  (0.1ms) begin transaction
682153
+ ------------------------------------------------------------
682154
+ Guts::NavigationsControllerTest: test_should_show_navigation
682155
+ ------------------------------------------------------------
682156
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682157
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682158
+ Processing by Guts::NavigationsController#show as HTML
682159
+ Parameters: {"id"=>"test-nav"}
682160
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682161
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682162
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682163
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "test-nav"]]
682164
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/show.html.erb within layouts/guts/application (2.9ms)
682165
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682166
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682167
+ Completed 200 OK in 39ms (Views: 35.5ms | ActiveRecord: 0.4ms)
682168
+  (0.1ms) rollback transaction
682169
+  (0.1ms) begin transaction
682170
+ --------------------------------------------------------------
682171
+ Guts::NavigationsControllerTest: test_should_create_navigation
682172
+ --------------------------------------------------------------
682173
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682174
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682175
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
682176
+ Processing by Guts::NavigationsController#create as HTML
682177
+ Parameters: {"navigation"=>{"title"=>"Nav Test"}}
682178
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682179
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682180
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682181
+  (0.0ms) SAVEPOINT active_record_1
682182
+ Guts::Navigation Exists (0.1ms) SELECT 1 AS one FROM "guts_navigations" WHERE ("guts_navigations"."id" IS NOT NULL) AND "guts_navigations"."slug" = ? LIMIT 1 [["slug", "nav-test"]]
682183
+ SQL (0.3ms) INSERT INTO "guts_navigations" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Nav Test"], ["slug", "nav-test"], ["created_at", "2016-04-28 03:45:31.385906"], ["updated_at", "2016-04-28 03:45:31.385906"]]
682184
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 839480071], ["object_type", "Guts::Navigation"], ["params", "{}"], ["created_at", "2016-04-28 03:45:31.388301"], ["updated_at", "2016-04-28 03:45:31.388301"]]
682185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682186
+ Redirected to http://test.host/guts/navigations
682187
+ Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
682188
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
682189
+  (0.5ms) rollback transaction
682190
+  (0.1ms) begin transaction
682191
+ --------------------------------------------------------------
682192
+ Guts::NavigationsControllerTest: test_should_update_navigation
682193
+ --------------------------------------------------------------
682194
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682195
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682196
+ Processing by Guts::NavigationsController#update as HTML
682197
+ Parameters: {"navigation"=>{"title"=>"Test Nav"}, "id"=>"test-nav"}
682198
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682199
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682200
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682201
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "test-nav"]]
682202
+  (0.1ms) SAVEPOINT active_record_1
682203
+ SQL (0.3ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 839480070], ["object_type", "Guts::Navigation"], ["params", "{}"], ["created_at", "2016-04-28 03:45:31.407621"], ["updated_at", "2016-04-28 03:45:31.407621"]]
682204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682205
+ Redirected to http://test.host/guts/navigations
682206
+ Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
682207
+  (0.5ms) rollback transaction
682208
+  (0.1ms) begin transaction
682209
+ ----------------------------------------------------
682210
+ Guts::NavigationsControllerTest: test_should_get_new
682211
+ ----------------------------------------------------
682212
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682213
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682214
+ Processing by Guts::NavigationsController#new as HTML
682215
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682216
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682217
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682218
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (6.0ms)
682219
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/new.html.erb within layouts/guts/application (6.7ms)
682220
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682221
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682222
+ Completed 200 OK in 43ms (Views: 40.2ms | ActiveRecord: 0.3ms)
682223
+  (0.1ms) rollback transaction
682224
+  (0.1ms) begin transaction
682225
+ -------------------------------------------------------------------------------------------
682226
+ Guts::NavigationsControllerTest: test_should_fail_to_create_navigation_and_send_back_to_new
682227
+ -------------------------------------------------------------------------------------------
682228
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682229
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682230
+ Processing by Guts::NavigationsController#create as HTML
682231
+ Parameters: {"navigation"=>{"title"=>""}}
682232
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682233
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682234
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682235
+  (0.1ms) SAVEPOINT active_record_1
682236
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682237
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (6.8ms)
682238
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/new.html.erb within layouts/guts/application (7.1ms)
682239
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682240
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682241
+ Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 0.4ms)
682242
+  (0.1ms) rollback transaction
682243
+  (0.1ms) begin transaction
682244
+ ------------------------------------------------------
682245
+ Guts::NavigationsControllerTest: test_should_get_index
682246
+ ------------------------------------------------------
682247
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682248
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682249
+ Processing by Guts::NavigationsController#index as HTML
682250
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682251
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682252
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682253
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
682254
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
682255
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 839480070]]
682256
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 839480070]]
682257
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682258
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682259
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (30.7ms)
682260
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682261
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682262
+ Completed 200 OK in 66ms (Views: 62.5ms | ActiveRecord: 1.0ms)
682263
+  (0.1ms) rollback transaction
682264
+  (0.1ms) begin transaction
682265
+ ---------------------------------------------------------------
682266
+ Guts::NavigationsControllerTest: test_should_destroy_navigation
682267
+ ---------------------------------------------------------------
682268
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682269
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682270
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
682271
+ Processing by Guts::NavigationsController#destroy as HTML
682272
+ Parameters: {"id"=>"test-nav"}
682273
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682274
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682275
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682276
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "test-nav"]]
682277
+  (0.1ms) SAVEPOINT active_record_1
682278
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 839480070]]
682279
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 368097465], ["filable_type", "Guts::NavigationItem"]]
682280
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 368097465], ["fieldable_type", "Guts::NavigationItem"]]
682281
+ SQL (0.2ms) DELETE FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? [["id", 368097465]]
682282
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 374718506], ["filable_type", "Guts::NavigationItem"]]
682283
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 374718506], ["fieldable_type", "Guts::NavigationItem"]]
682284
+ SQL (0.1ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 105934342]]
682285
+ SQL (0.0ms) DELETE FROM "guts_navigation_items" WHERE "guts_navigation_items"."id" = ? [["id", 374718506]]
682286
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 839480070], ["filable_type", "Guts::Navigation"]]
682287
+ Guts::Metafield Load (0.0ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 839480070], ["fieldable_type", "Guts::Navigation"]]
682288
+ SQL (0.3ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 248487536]]
682289
+ SQL (0.2ms) DELETE FROM "guts_navigations" WHERE "guts_navigations"."id" = ? [["id", 839480070]]
682290
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 839480070], ["object_type", "Guts::Navigation"], ["params", "{}"], ["created_at", "2016-04-28 03:45:31.621692"], ["updated_at", "2016-04-28 03:45:31.621692"]]
682291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682292
+ Redirected to http://test.host/guts/navigations
682293
+ Completed 302 Found in 32ms (ActiveRecord: 1.7ms)
682294
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
682295
+  (1.3ms) rollback transaction
682296
+  (0.1ms) begin transaction
682297
+ -----------------------------------------------------
682298
+ Guts::NavigationsControllerTest: test_should_get_edit
682299
+ -----------------------------------------------------
682300
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682301
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682302
+ Processing by Guts::NavigationsController#edit as HTML
682303
+ Parameters: {"id"=>"test-nav"}
682304
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682305
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682306
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682307
+ Guts::Navigation Load (0.0ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "test-nav"]]
682308
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 839480070], ["fieldable_type", "Guts::Navigation"]]
682309
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 839480070], ["filable_type", "Guts::Navigation"]]
682310
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (16.3ms)
682311
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/edit.html.erb within layouts/guts/application (16.6ms)
682312
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682313
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682314
+ Completed 200 OK in 52ms (Views: 48.6ms | ActiveRecord: 0.5ms)
682315
+  (0.1ms) rollback transaction
682316
+  (0.1ms) begin transaction
682317
+ ----------------------------------------------------------
682318
+ Guts::NavigationTest: test_should_not_create_without_title
682319
+ ----------------------------------------------------------
682320
+  (0.0ms) SAVEPOINT active_record_1
682321
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682322
+  (0.0ms) rollback transaction
682323
+  (0.1ms) begin transaction
682324
+ -------------------------------------------------------------
682325
+ Guts::NavigationTest: test_should_return_items_for_navigation
682326
+ -------------------------------------------------------------
682327
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682328
+  (0.0ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 839480070]]
682329
+  (0.0ms) rollback transaction
682330
+  (0.1ms) begin transaction
682331
+ --------------------------------------------------------------------
682332
+ Guts::NavigationTest: test_navigation_should_be_multisite_compatible
682333
+ --------------------------------------------------------------------
682334
+  (0.0ms) rollback transaction
682335
+  (0.0ms) begin transaction
682336
+ -------------------------------------------------------------------------
682337
+ Guts::NavigationTest: test_navigation_item_should_be_multisite_compatible
682338
+ -------------------------------------------------------------------------
682339
+  (0.0ms) rollback transaction
682340
+  (0.1ms) begin transaction
682341
+ -------------------------------------------------------
682342
+ Guts::NavigationTest: test_should_create_slug_for_title
682343
+ -------------------------------------------------------
682344
+  (0.0ms) SAVEPOINT active_record_1
682345
+ Guts::Navigation Exists (0.1ms) SELECT 1 AS one FROM "guts_navigations" WHERE ("guts_navigations"."id" IS NOT NULL) AND "guts_navigations"."slug" = ? LIMIT 1 [["slug", "footer-menu"]]
682346
+ SQL (0.2ms) INSERT INTO "guts_navigations" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Footer Menu"], ["slug", "footer-menu"], ["created_at", "2016-04-28 03:45:31.704405"], ["updated_at", "2016-04-28 03:45:31.704405"]]
682347
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 839480071], ["object_type", "Guts::Navigation"], ["params", "{}"], ["created_at", "2016-04-28 03:45:31.707124"], ["updated_at", "2016-04-28 03:45:31.707124"]]
682348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682349
+  (0.5ms) rollback transaction
682350
+  (0.1ms) begin transaction
682351
+ ----------------------------------------------
682352
+ Guts::NavigationTest: test_should_be_trackable
682353
+ ----------------------------------------------
682354
+  (0.1ms) rollback transaction
682355
+  (0.1ms) begin transaction
682356
+ ------------------------------------------------------------------
682357
+ Guts::NavigationTest: test_should_return_metafields_for_navigation
682358
+ ------------------------------------------------------------------
682359
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."id" = ? LIMIT 1 [["id", 839480070]]
682360
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 839480070], ["fieldable_type", "Guts::Navigation"]]
682361
+  (0.1ms) rollback transaction
682362
+  (0.0ms) begin transaction
682363
+ ------------------------------------------------
682364
+ Guts::UsersControllerTest: test_should_show_user
682365
+ ------------------------------------------------
682366
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682367
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682368
+ Processing by Guts::UsersController#show as HTML
682369
+ Parameters: {"id"=>"764040363"}
682370
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682371
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682372
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682373
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682374
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682375
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/show.html.erb within layouts/guts/application (6.0ms)
682376
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682377
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682378
+ Completed 200 OK in 44ms (Views: 41.6ms | ActiveRecord: 0.4ms)
682379
+  (0.1ms) rollback transaction
682380
+  (0.1ms) begin transaction
682381
+ --------------------------------------------------
682382
+ Guts::UsersControllerTest: test_should_update_user
682383
+ --------------------------------------------------
682384
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682385
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682386
+ Processing by Guts::UsersController#update as HTML
682387
+ Parameters: {"user"=>{"name"=>"Test Admin"}, "id"=>"764040363"}
682388
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682389
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682390
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682391
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682392
+  (0.1ms) SAVEPOINT active_record_1
682393
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE (LOWER("guts_users"."email") = LOWER('test@domain.com') AND "guts_users"."id" != 764040363) LIMIT 1
682394
+ SQL (0.3ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 764040363], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:31.779062"], ["updated_at", "2016-04-28 03:45:31.779062"]]
682395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682396
+ Redirected to http://test.host/guts/users
682397
+ Completed 302 Found in 10ms (ActiveRecord: 0.6ms)
682398
+  (0.4ms) rollback transaction
682399
+  (0.1ms) begin transaction
682400
+ ----------------------------------------------
682401
+ Guts::UsersControllerTest: test_should_get_new
682402
+ ----------------------------------------------
682403
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682404
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682405
+ Processing by Guts::UsersController#new as HTML
682406
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682407
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682408
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682409
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups"
682410
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/_form.html.erb (12.7ms)
682411
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/new.html.erb within layouts/guts/application (15.4ms)
682412
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682413
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682414
+ Completed 200 OK in 50ms (Views: 47.1ms | ActiveRecord: 0.5ms)
682415
+  (0.1ms) rollback transaction
682416
+  (0.1ms) begin transaction
682417
+ ----------------------------------------------------------------
682418
+ Guts::UsersControllerTest: test_should_create_user_without_group
682419
+ ----------------------------------------------------------------
682420
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682421
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682422
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682423
+ Processing by Guts::UsersController#create as HTML
682424
+ Parameters: {"user"=>{"name"=>"Some User", "email"=>"some_user@domain.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
682425
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682426
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682427
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682428
+  (0.1ms) SAVEPOINT active_record_1
682429
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('some_user@domain.com') LIMIT 1
682430
+ SQL (0.2ms) INSERT INTO "guts_users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Some User"], ["email", "some_user@domain.com"], ["password_digest", "$2a$04$hpLVuxEPVbwE2yi9Hcw5D.nQnDg1RgODLaWrkGf40RwT7bKp1heFG"], ["created_at", "2016-04-28 03:45:31.856066"], ["updated_at", "2016-04-28 03:45:31.856066"]]
682431
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 764040364], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:31.858208"], ["updated_at", "2016-04-28 03:45:31.858208"]]
682432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682433
+ Redirected to http://test.host/guts/users
682434
+ Completed 302 Found in 12ms (ActiveRecord: 0.7ms)
682435
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682436
+  (0.5ms) rollback transaction
682437
+  (0.1ms) begin transaction
682438
+ -----------------------------------------------
682439
+ Guts::UsersControllerTest: test_should_get_edit
682440
+ -----------------------------------------------
682441
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682442
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682443
+ Processing by Guts::UsersController#edit as HTML
682444
+ Parameters: {"id"=>"764040363"}
682445
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682446
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682447
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682448
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682449
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 764040363], ["fieldable_type", "Guts::User"]]
682450
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 764040363], ["filable_type", "Guts::User"]]
682451
+  (0.1ms) SELECT "guts_groups".id FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682452
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups"
682453
+  (0.0ms) SELECT "guts_groups".id FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682454
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/_form.html.erb (19.5ms)
682455
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/edit.html.erb within layouts/guts/application (20.2ms)
682456
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682457
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682458
+ Completed 200 OK in 55ms (Views: 52.1ms | ActiveRecord: 0.7ms)
682459
+  (0.1ms) rollback transaction
682460
+  (0.1ms) begin transaction
682461
+ --------------------------------------------------------------------------------
682462
+ Guts::UsersControllerTest: test_should_fail_to_update_user_and_send_back_to_edit
682463
+ --------------------------------------------------------------------------------
682464
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682465
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682466
+ Processing by Guts::UsersController#update as HTML
682467
+ Parameters: {"user"=>{"name"=>"", "email"=>""}, "id"=>"764040363"}
682468
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682469
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682470
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682471
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682472
+  (0.1ms) SAVEPOINT active_record_1
682473
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE (LOWER("guts_users"."email") = LOWER('') AND "guts_users"."id" != 764040363) LIMIT 1
682474
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682475
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 764040363], ["fieldable_type", "Guts::User"]]
682476
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 764040363], ["filable_type", "Guts::User"]]
682477
+  (0.1ms) SELECT "guts_groups".id FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682478
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups"
682479
+  (0.1ms) SELECT "guts_groups".id FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682480
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/_form.html.erb (20.2ms)
682481
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/edit.html.erb within layouts/guts/application (20.5ms)
682482
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682483
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682484
+ Completed 200 OK in 62ms (Views: 55.7ms | ActiveRecord: 1.0ms)
682485
+  (0.1ms) rollback transaction
682486
+  (0.1ms) begin transaction
682487
+ ---------------------------------------------------
682488
+ Guts::UsersControllerTest: test_should_destroy_user
682489
+ ---------------------------------------------------
682490
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682491
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682492
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682493
+ Processing by Guts::UsersController#destroy as HTML
682494
+ Parameters: {"id"=>"764040363"}
682495
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682496
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682497
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682498
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682499
+  (0.0ms) SAVEPOINT active_record_1
682500
+ Guts::Medium Load (0.0ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 764040363], ["filable_type", "Guts::User"]]
682501
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 764040363], ["fieldable_type", "Guts::User"]]
682502
+ SQL (0.2ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 487021368]]
682503
+ SQL (0.1ms) DELETE FROM "guts_users" WHERE "guts_users"."id" = ? [["id", 764040363]]
682504
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 764040363], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:32.011639"], ["updated_at", "2016-04-28 03:45:32.011639"]]
682505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682506
+ Redirected to http://test.host/guts/users
682507
+ Completed 302 Found in 11ms (ActiveRecord: 0.7ms)
682508
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682509
+  (1.0ms) rollback transaction
682510
+  (0.1ms) begin transaction
682511
+ -----------------------------------------------------------
682512
+ Guts::UsersControllerTest: test_should_get_index_with_group
682513
+ -----------------------------------------------------------
682514
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682515
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682516
+ Processing by Guts::UsersController#index as HTML
682517
+ Parameters: {"group"=>"639558351"}
682518
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682519
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682520
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682521
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."slug" = ? ORDER BY "guts_groups"."id" ASC LIMIT 1 [["slug", "639558351"]]
682522
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682523
+  (0.2ms) SELECT COUNT(DISTINCT "guts_users"."id") FROM "guts_users" LEFT OUTER JOIN "guts_user_groups" ON "guts_user_groups"."user_id" = "guts_users"."id" LEFT OUTER JOIN "guts_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_groups"."id" = 639558351
682524
+ SQL (0.3ms) SELECT "guts_users"."id" AS t0_r0, "guts_users"."name" AS t0_r1, "guts_users"."email" AS t0_r2, "guts_users"."password_digest" AS t0_r3, "guts_users"."password_token" AS t0_r4, "guts_users"."created_at" AS t0_r5, "guts_users"."updated_at" AS t0_r6, "guts_groups"."id" AS t1_r0, "guts_groups"."title" AS t1_r1, "guts_groups"."slug" AS t1_r2, "guts_groups"."created_at" AS t1_r3, "guts_groups"."updated_at" AS t1_r4 FROM "guts_users" LEFT OUTER JOIN "guts_user_groups" ON "guts_user_groups"."user_id" = "guts_users"."id" LEFT OUTER JOIN "guts_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_groups"."id" = 639558351
682525
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/index.html.erb within layouts/guts/application (15.5ms)
682526
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682527
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682528
+ Completed 200 OK in 49ms (Views: 44.9ms | ActiveRecord: 0.8ms)
682529
+  (0.1ms) rollback transaction
682530
+  (0.1ms) begin transaction
682531
+ ------------------------------------------------
682532
+ Guts::UsersControllerTest: test_should_get_index
682533
+ ------------------------------------------------
682534
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682535
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682536
+ Processing by Guts::UsersController#index as HTML
682537
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682538
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682539
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682540
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682541
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users"
682542
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 567506384]]
682543
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682544
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/index.html.erb within layouts/guts/application (15.1ms)
682545
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682546
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682547
+ Completed 200 OK in 53ms (Views: 50.7ms | ActiveRecord: 0.6ms)
682548
+  (0.1ms) rollback transaction
682549
+  (0.1ms) begin transaction
682550
+ -------------------------------------------------------------
682551
+ Guts::UsersControllerTest: test_should_create_user_with_group
682552
+ -------------------------------------------------------------
682553
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682554
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682555
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682556
+ Processing by Guts::UsersController#create as HTML
682557
+ Parameters: {"user"=>{"name"=>"Some User", "email"=>"some_user@domain.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "group_ids"=>["639558351"]}}
682558
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682559
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682560
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682561
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682562
+  (0.1ms) SAVEPOINT active_record_1
682563
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('some_user@domain.com') LIMIT 1
682564
+ SQL (0.2ms) INSERT INTO "guts_users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Some User"], ["email", "some_user@domain.com"], ["password_digest", "$2a$04$I7ek7QRmjUeRhxlI7gJBMOAb6ZGyqVT/x4U2oKfYnSsKrfjJSHxfa"], ["created_at", "2016-04-28 03:45:32.148195"], ["updated_at", "2016-04-28 03:45:32.148195"]]
682565
+ SQL (0.1ms) INSERT INTO "guts_user_groups" ("group_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["group_id", 639558351], ["user_id", 764040364], ["created_at", "2016-04-28 03:45:32.149665"], ["updated_at", "2016-04-28 03:45:32.149665"]]
682566
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 764040364], ["object_type", "Guts::User"], ["params", "{}"], ["created_at", "2016-04-28 03:45:32.152005"], ["updated_at", "2016-04-28 03:45:32.152005"]]
682567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682568
+ Redirected to http://test.host/guts/users
682569
+ Completed 302 Found in 16ms (ActiveRecord: 1.0ms)
682570
+  (0.1ms) SELECT COUNT(*) FROM "guts_users"
682571
+  (1.0ms) rollback transaction
682572
+  (0.1ms) begin transaction
682573
+ --------------------------------------------------------
682574
+ Guts::UsersControllerTest: test_should_switch_user_by_ID
682575
+ --------------------------------------------------------
682576
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682577
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682578
+ Processing by Guts::UsersController#switch_user as HTML
682579
+ Parameters: {"user_id"=>"764040363"}
682580
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682581
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682582
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682583
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682584
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users"
682585
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/switch_user.html.erb within layouts/guts/application (5.9ms)
682586
+ Rendered guts/application/_layout_hook.html.erb (0.3ms)
682587
+ Guts::Type Load (0.7ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682588
+ Completed 200 OK in 51ms (Views: 47.7ms | ActiveRecord: 1.1ms)
682589
+  (0.1ms) rollback transaction
682590
+  (0.1ms) begin transaction
682591
+ -------------------------------------------------------------------------------
682592
+ Guts::UsersControllerTest: test_should_fail_to_create_user_and_send_back_to_new
682593
+ -------------------------------------------------------------------------------
682594
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682595
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682596
+ Processing by Guts::UsersController#create as HTML
682597
+ Parameters: {"user"=>{"name"=>"", "email"=>""}}
682598
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682599
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682600
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682601
+  (0.3ms) SAVEPOINT active_record_1
682602
+ Guts::User Exists (0.1ms) SELECT 1 AS one FROM "guts_users" WHERE LOWER("guts_users"."email") = LOWER('') LIMIT 1
682603
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682604
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups"
682605
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/_form.html.erb (13.2ms)
682606
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/new.html.erb within layouts/guts/application (13.5ms)
682607
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682608
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682609
+ Completed 200 OK in 58ms (Views: 50.6ms | ActiveRecord: 0.9ms)
682610
+  (0.1ms) rollback transaction
682611
+  (0.1ms) begin transaction
682612
+ -------------------------------------------------------
682613
+ Guts::TrackersHelperTest: test_returns_proper_view_name
682614
+ -------------------------------------------------------
682615
+ Guts::Tracker Load (0.1ms) SELECT "guts_trackers".* FROM "guts_trackers" WHERE "guts_trackers"."id" = ? LIMIT 1 [["id", 980190962]]
682616
+  (0.1ms) rollback transaction
682617
+  (0.0ms) begin transaction
682618
+ --------------------------------------------------
682619
+ Guts::GroupTest: test_should_create_slug_for_title
682620
+ --------------------------------------------------
682621
+  (0.0ms) SAVEPOINT active_record_1
682622
+ Guts::Group Exists (0.1ms) SELECT 1 AS one FROM "guts_groups" WHERE ("guts_groups"."id" IS NOT NULL) AND "guts_groups"."slug" = ? LIMIT 1 [["slug", "customer-group"]]
682623
+ SQL (0.2ms) INSERT INTO "guts_groups" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Customer Group"], ["slug", "customer-group"], ["created_at", "2016-04-28 03:45:32.290847"], ["updated_at", "2016-04-28 03:45:32.290847"]]
682624
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 639558352], ["object_type", "Guts::Group"], ["params", "{}"], ["created_at", "2016-04-28 03:45:32.293005"], ["updated_at", "2016-04-28 03:45:32.293005"]]
682625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682626
+  (1.0ms) rollback transaction
682627
+  (0.1ms) begin transaction
682628
+ -----------------------------------------
682629
+ Guts::GroupTest: test_should_be_trackable
682630
+ -----------------------------------------
682631
+  (0.1ms) rollback transaction
682632
+  (0.0ms) begin transaction
682633
+ --------------------------------------------------------
682634
+ Guts::GroupTest: test_should_return_metafields_for_group
682635
+ --------------------------------------------------------
682636
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682637
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 639558351], ["fieldable_type", "Guts::Group"]]
682638
+  (0.1ms) rollback transaction
682639
+  (0.1ms) begin transaction
682640
+ ---------------------------------------------------
682641
+ Guts::GroupTest: test_should_return_users_for_group
682642
+ ---------------------------------------------------
682643
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" WHERE "guts_groups"."id" = ? LIMIT 1 [["id", 639558351]]
682644
+  (0.0ms) SELECT COUNT(*) FROM "guts_users" INNER JOIN "guts_user_groups" ON "guts_users"."id" = "guts_user_groups"."user_id" WHERE "guts_user_groups"."group_id" = ? [["group_id", 639558351]]
682645
+  (0.0ms) rollback transaction
682646
+  (0.1ms) begin transaction
682647
+ -----------------------------------------------------------------------------
682648
+ Guts::GroupTest: test_should_not_create_with_title_less_than_three_characters
682649
+ -----------------------------------------------------------------------------
682650
+  (0.0ms) SAVEPOINT active_record_1
682651
+ Guts::Group Exists (0.1ms) SELECT 1 AS one FROM "guts_groups" WHERE ("guts_groups"."id" IS NOT NULL) AND "guts_groups"."slug" = ? LIMIT 1 [["slug", "12"]]
682652
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
682653
+  (0.0ms) rollback transaction
682654
+  (0.1ms) begin transaction
682655
+ -----------------------------------------------------
682656
+ Guts::GroupTest: test_should_not_create_without_title
682657
+ -----------------------------------------------------
682658
+  (0.0ms) SAVEPOINT active_record_1
682659
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682660
+  (0.0ms) rollback transaction
682661
+  (0.0ms) begin transaction
682662
+ ------------------------------------------------------------------------------------------
682663
+ Guts::ContentsControllerTest: test_should_fail_to_create_content_item_and_send_back_to_new
682664
+ ------------------------------------------------------------------------------------------
682665
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682666
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682667
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682668
+ Processing by Guts::ContentsController#create as HTML
682669
+ Parameters: {"type"=>"page", "content"=>{"title"=>""}}
682670
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682671
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682672
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682673
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
682674
+  (0.1ms) SAVEPOINT active_record_1
682675
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682676
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
682677
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/_form.html.erb (16.7ms)
682678
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/new.html.erb within layouts/guts/application (19.3ms)
682679
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682680
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682681
+ Completed 200 OK in 65ms (Views: 58.5ms | ActiveRecord: 0.6ms)
682682
+  (0.1ms) rollback transaction
682683
+  (0.1ms) begin transaction
682684
+ --------------------------------------------------
682685
+ Guts::ContentsControllerTest: test_should_get_edit
682686
+ --------------------------------------------------
682687
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682688
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682689
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682690
+ Processing by Guts::ContentsController#edit as HTML
682691
+ Parameters: {"id"=>"test-page"}
682692
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682693
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682694
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682695
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "test-page"]]
682696
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682697
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 292789487], ["fieldable_type", "Guts::Content"]]
682698
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 292789487], ["filable_type", "Guts::Content"]]
682699
+  (0.1ms) SELECT "guts_categories".id FROM "guts_categories" INNER JOIN "guts_categorizations" ON "guts_categories"."id" = "guts_categorizations"."category_id" WHERE "guts_categories"."site_id" IS NULL AND "guts_categorizations"."content_id" = ? [["content_id", 292789487]]
682700
+ Guts::Category Load (0.2ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
682701
+  (0.1ms) SELECT "guts_categories".id FROM "guts_categories" INNER JOIN "guts_categorizations" ON "guts_categories"."id" = "guts_categorizations"."category_id" WHERE "guts_categories"."site_id" IS NULL AND "guts_categorizations"."content_id" = ? [["content_id", 292789487]]
682702
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/_form.html.erb (20.7ms)
682703
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/edit.html.erb within layouts/guts/application (22.0ms)
682704
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682705
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682706
+ Completed 200 OK in 63ms (Views: 57.3ms | ActiveRecord: 1.1ms)
682707
+  (0.1ms) rollback transaction
682708
+  (0.4ms) begin transaction
682709
+ -----------------------------------------------------------------------------------------
682710
+ Guts::ContentsControllerTest: test_should_fail_to_edit_content_item_and_send_back_to_edit
682711
+ -----------------------------------------------------------------------------------------
682712
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682713
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682714
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682715
+ Processing by Guts::ContentsController#update as HTML
682716
+ Parameters: {"content"=>{"title"=>""}, "id"=>"test-page"}
682717
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682718
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682719
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682720
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "test-page"]]
682721
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682722
+  (0.1ms) SAVEPOINT active_record_1
682723
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682724
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 292789487], ["fieldable_type", "Guts::Content"]]
682725
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 292789487], ["filable_type", "Guts::Content"]]
682726
+  (0.2ms) SELECT "guts_categories".id FROM "guts_categories" INNER JOIN "guts_categorizations" ON "guts_categories"."id" = "guts_categorizations"."category_id" WHERE "guts_categories"."site_id" IS NULL AND "guts_categorizations"."content_id" = ? [["content_id", 292789487]]
682727
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
682728
+  (0.0ms) SELECT "guts_categories".id FROM "guts_categories" INNER JOIN "guts_categorizations" ON "guts_categories"."id" = "guts_categorizations"."category_id" WHERE "guts_categories"."site_id" IS NULL AND "guts_categorizations"."content_id" = ? [["content_id", 292789487]]
682729
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/_form.html.erb (19.8ms)
682730
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/edit.html.erb within layouts/guts/application (20.0ms)
682731
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682732
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682733
+ Completed 200 OK in 63ms (Views: 55.2ms | ActiveRecord: 1.0ms)
682734
+  (0.1ms) rollback transaction
682735
+  (0.1ms) begin transaction
682736
+ --------------------------------------------------------
682737
+ Guts::ContentsControllerTest: test_should_create_content
682738
+ --------------------------------------------------------
682739
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682740
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682741
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682742
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL
682743
+ Processing by Guts::ContentsController#create as HTML
682744
+ Parameters: {"type"=>"page", "content"=>{"slug"=>"demo-page", "title"=>"Demo Page", "visible"=>true, "contents"=>"Content", "type_id"=>"186272755"}}
682745
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682746
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682747
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682748
+ Guts::Type Load (0.3ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
682749
+ Unpermitted parameters: contents, type_id
682750
+  (0.1ms) SAVEPOINT active_record_1
682751
+ SQL (0.3ms) INSERT INTO "guts_contents" ("title", "slug", "visible", "user_id", "type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "Demo Page"], ["slug", "demo-page"], ["visible", 1], ["user_id", 764040363], ["type_id", 186272755], ["created_at", "2016-04-28 03:45:32.541589"], ["updated_at", "2016-04-28 03:45:32.541589"]]
682752
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 343024606], ["object_type", "Guts::Content"], ["params", "{}"], ["created_at", "2016-04-28 03:45:32.544088"], ["updated_at", "2016-04-28 03:45:32.544088"]]
682753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682754
+ Redirected to http://test.host/guts/contents?type=page
682755
+ Completed 302 Found in 13ms (ActiveRecord: 1.0ms)
682756
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL
682757
+  (1.0ms) rollback transaction
682758
+  (0.1ms) begin transaction
682759
+ ------------------------------------------------------
682760
+ Guts::ContentsControllerTest: test_should_show_content
682761
+ ------------------------------------------------------
682762
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682763
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682764
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682765
+ Processing by Guts::ContentsController#show as HTML
682766
+ Parameters: {"id"=>"test-page"}
682767
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682768
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682769
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682770
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "test-page"]]
682771
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682772
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682773
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" INNER JOIN "guts_categorizations" ON "guts_categories"."id" = "guts_categorizations"."category_id" WHERE "guts_categories"."site_id" IS NULL AND "guts_categorizations"."content_id" = ? [["content_id", 292789487]]
682774
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/show.html.erb within layouts/guts/application (8.6ms)
682775
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682776
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682777
+ Completed 200 OK in 47ms (Views: 41.5ms | ActiveRecord: 0.6ms)
682778
+  (0.1ms) rollback transaction
682779
+  (0.2ms) begin transaction
682780
+ -------------------------------------------------------------
682781
+ Guts::ContentsControllerTest: test_should_get_index_with_type
682782
+ -------------------------------------------------------------
682783
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682784
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682785
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682786
+ Processing by Guts::ContentsController#index as HTML
682787
+ Parameters: {"type"=>"page"}
682788
+ Guts::Site Load (0.0ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682789
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682790
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682791
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
682792
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = 186272755
682793
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = 186272755 LIMIT 30 OFFSET 0
682794
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/index.html.erb within layouts/guts/application (16.3ms)
682795
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682796
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682797
+ Completed 200 OK in 54ms (Views: 50.2ms | ActiveRecord: 0.6ms)
682798
+  (0.1ms) rollback transaction
682799
+  (0.1ms) begin transaction
682800
+ --------------------------------------------------------
682801
+ Guts::ContentsControllerTest: test_should_update_content
682802
+ --------------------------------------------------------
682803
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682804
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682805
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682806
+ Processing by Guts::ContentsController#update as HTML
682807
+ Parameters: {"content"=>{"slug"=>"test-page", "title"=>"Test Page"}, "id"=>"test-page"}
682808
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682809
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682810
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682811
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "test-page"]]
682812
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682813
+  (0.1ms) SAVEPOINT active_record_1
682814
+ SQL (0.3ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "update"], ["object_id", 292789487], ["object_type", "Guts::Content"], ["params", "{}"], ["created_at", "2016-04-28 03:45:32.683901"], ["updated_at", "2016-04-28 03:45:32.683901"]]
682815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682816
+ Redirected to http://test.host/guts/contents?type=page
682817
+ Completed 302 Found in 12ms (ActiveRecord: 0.6ms)
682818
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682819
+  (0.4ms) rollback transaction
682820
+  (0.1ms) begin transaction
682821
+ -------------------------------------------------
682822
+ Guts::ContentsControllerTest: test_should_get_new
682823
+ -------------------------------------------------
682824
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682825
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682826
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682827
+ Processing by Guts::ContentsController#new as HTML
682828
+ Parameters: {"type"=>"page"}
682829
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682830
+ Guts::User Load (0.4ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682831
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682832
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
682833
+ Guts::Category Load (0.1ms) SELECT "guts_categories".* FROM "guts_categories" WHERE "guts_categories"."site_id" IS NULL
682834
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/_form.html.erb (8.7ms)
682835
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/new.html.erb within layouts/guts/application (9.0ms)
682836
+ Rendered guts/application/_layout_hook.html.erb (0.2ms)
682837
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682838
+ Completed 200 OK in 50ms (Views: 44.2ms | ActiveRecord: 0.9ms)
682839
+  (0.1ms) rollback transaction
682840
+  (0.1ms) begin transaction
682841
+ ---------------------------------------------------------
682842
+ Guts::ContentsControllerTest: test_should_destroy_content
682843
+ ---------------------------------------------------------
682844
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682845
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682846
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682847
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL
682848
+ Processing by Guts::ContentsController#destroy as HTML
682849
+ Parameters: {"id"=>"test-page"}
682850
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682851
+ Guts::User Load (0.0ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682852
+ Guts::Group Load (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682853
+ Guts::Content Load (0.0ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."slug" = ? ORDER BY "guts_contents"."id" ASC LIMIT 1 [["slug", "test-page"]]
682854
+ Guts::Type Load (0.0ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682855
+  (0.1ms) SAVEPOINT active_record_1
682856
+ Guts::Medium Load (0.1ms) SELECT "guts_media".* FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 292789487], ["filable_type", "Guts::Content"]]
682857
+ SQL (0.2ms) DELETE FROM "guts_media" WHERE "guts_media"."id" = ? [["id", 166075617]]
682858
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 166075617], ["object_type", "Guts::Medium"], ["params", "{}"], ["created_at", "2016-04-28 03:45:32.768547"], ["updated_at", "2016-04-28 03:45:32.768547"]]
682859
+ Guts::Metafield Load (0.1ms) SELECT "guts_metafields".* FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 292789487], ["fieldable_type", "Guts::Content"]]
682860
+ SQL (0.1ms) DELETE FROM "guts_metafields" WHERE "guts_metafields"."id" = ? [["id", 434488443]]
682861
+ SQL (0.1ms) DELETE FROM "guts_contents" WHERE "guts_contents"."id" = ? [["id", 292789487]]
682862
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "destroy"], ["object_id", 292789487], ["object_type", "Guts::Content"], ["params", "{}"], ["created_at", "2016-04-28 03:45:32.774141"], ["updated_at", "2016-04-28 03:45:32.774141"]]
682863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682864
+ Redirected to http://test.host/guts/contents?type=page
682865
+ Completed 302 Found in 19ms (ActiveRecord: 1.2ms)
682866
+  (0.1ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL
682867
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682868
+  (0.6ms) rollback transaction
682869
+  (0.1ms) begin transaction
682870
+ --------------------------------------------------------------------------
682871
+ Guts::ContentsControllerTest: test_should_allow_for_custom_paginated_limit
682872
+ --------------------------------------------------------------------------
682873
+ Guts::User Load (0.3ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682874
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."id" = ? LIMIT 1 [["id", 292789487]]
682875
+ Guts::Type Load (0.3ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."id" = ? LIMIT 1 [["id", 186272755]]
682876
+ Processing by Guts::ContentsController#index as HTML
682877
+ Parameters: {"per_page"=>"100", "type"=>"page"}
682878
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "test.host"]]
682879
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 764040363]]
682880
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 764040363]]
682881
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL AND "guts_types"."slug" = ? ORDER BY "guts_types"."id" ASC LIMIT 1 [["slug", "page"]]
682882
+  (0.2ms) SELECT COUNT(*) FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = 186272755
682883
+ Guts::Content Load (0.1ms) SELECT "guts_contents".* FROM "guts_contents" WHERE "guts_contents"."site_id" IS NULL AND "guts_contents"."type_id" = 186272755 LIMIT 100 OFFSET 0
682884
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/contents/index.html.erb within layouts/guts/application (16.7ms)
682885
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
682886
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
682887
+ Completed 200 OK in 51ms (Views: 46.1ms | ActiveRecord: 0.7ms)
682888
+  (0.2ms) rollback transaction