push_type_admin 0.1.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +20 -0
  3. data/README.md +3 -0
  4. data/app/assets/images/push_type/icon-file-audio.png +0 -0
  5. data/app/assets/images/push_type/icon-file-document.png +0 -0
  6. data/app/assets/images/push_type/icon-file-video.png +0 -0
  7. data/app/assets/images/push_type/pushtype-logo.png +0 -0
  8. data/app/assets/javascripts/push_type/admin.js.coffee +74 -0
  9. data/app/assets/javascripts/push_type/asset_pipeline.js.coffee.erb +17 -0
  10. data/app/assets/javascripts/push_type/assets.js.coffee +61 -0
  11. data/app/assets/javascripts/push_type/nodes.js.coffee +60 -0
  12. data/app/assets/stylesheets/push_type/admin.scss +515 -0
  13. data/app/assets/stylesheets/push_type/foundation_and_overrides.scss +1443 -0
  14. data/app/assets/stylesheets/push_type/froala_theme.scss +373 -0
  15. data/app/controllers/push_type/admin_controller.rb +14 -0
  16. data/app/controllers/push_type/assets_controller.rb +68 -0
  17. data/app/controllers/push_type/nodes_controller.rb +93 -0
  18. data/app/controllers/push_type/users_controller.rb +73 -0
  19. data/app/helpers/push_type/admin_helper.rb +15 -0
  20. data/app/helpers/push_type/assets_helper.rb +15 -0
  21. data/app/helpers/push_type/users_helper.rb +13 -0
  22. data/app/views/kaminari/_first_page.html.haml +2 -0
  23. data/app/views/kaminari/_gap.html.haml +2 -0
  24. data/app/views/kaminari/_last_page.html.haml +2 -0
  25. data/app/views/kaminari/_next_page.html.haml +2 -0
  26. data/app/views/kaminari/_page.html.haml +2 -0
  27. data/app/views/kaminari/_paginator.html.haml +11 -0
  28. data/app/views/kaminari/_prev_page.html.haml +2 -0
  29. data/app/views/layouts/push_type/admin.html.erb +55 -0
  30. data/app/views/push_type/assets/_form.html.haml +50 -0
  31. data/app/views/push_type/assets/edit.html.haml +4 -0
  32. data/app/views/push_type/assets/index.html.haml +34 -0
  33. data/app/views/push_type/assets/new.html.haml +4 -0
  34. data/app/views/push_type/fields/_default.html.haml +2 -0
  35. data/app/views/push_type/nodes/_form_fields.html.haml +61 -0
  36. data/app/views/push_type/nodes/_meta_table.html.haml +8 -0
  37. data/app/views/push_type/nodes/_new_node_button.html.haml +17 -0
  38. data/app/views/push_type/nodes/edit.html.haml +7 -0
  39. data/app/views/push_type/nodes/index.html.haml +56 -0
  40. data/app/views/push_type/nodes/new.html.haml +11 -0
  41. data/app/views/push_type/users/_form.html.haml +30 -0
  42. data/app/views/push_type/users/_meta_table.html.haml +0 -0
  43. data/app/views/push_type/users/_user.html.haml +7 -0
  44. data/app/views/push_type/users/edit.html.haml +4 -0
  45. data/app/views/push_type/users/index.html.haml +24 -0
  46. data/app/views/push_type/users/new.html.haml +4 -0
  47. data/config/initializers/inline_error_messages.rb +7 -0
  48. data/config/initializers/kaminari_config.rb +10 -0
  49. data/config/routes.rb +16 -0
  50. data/lib/push_type/admin/engine.rb +16 -0
  51. data/lib/push_type/admin.rb +27 -0
  52. data/lib/push_type/breadcrumbs/foundation.rb +11 -0
  53. data/lib/push_type/rails/form_builder.rb +13 -0
  54. data/lib/push_type_admin.rb +1 -0
  55. data/lib/tasks/push_type_tasks.rake +4 -0
  56. data/test/controllers/push_type/assets_controller_test.rb +67 -0
  57. data/test/controllers/push_type/nodes_controller_test.rb +101 -0
  58. data/test/controllers/push_type/users_controller_test.rb +72 -0
  59. data/test/dummy/README.rdoc +28 -0
  60. data/test/dummy/Rakefile +6 -0
  61. data/test/dummy/app/assets/javascripts/application.js +16 -0
  62. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  63. data/test/dummy/app/controllers/application_controller.rb +5 -0
  64. data/test/dummy/app/helpers/application_helper.rb +2 -0
  65. data/test/dummy/app/models/page.rb +10 -0
  66. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  67. data/test/dummy/app/views/nodes/page.html.erb +3 -0
  68. data/test/dummy/bin/bundle +3 -0
  69. data/test/dummy/bin/rails +4 -0
  70. data/test/dummy/bin/rake +4 -0
  71. data/test/dummy/config/application.rb +14 -0
  72. data/test/dummy/config/boot.rb +4 -0
  73. data/test/dummy/config/database.yml +85 -0
  74. data/test/dummy/config/environment.rb +5 -0
  75. data/test/dummy/config/environments/development.rb +37 -0
  76. data/test/dummy/config/environments/production.rb +78 -0
  77. data/test/dummy/config/environments/test.rb +39 -0
  78. data/test/dummy/config/initializers/assets.rb +8 -0
  79. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  80. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  81. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  82. data/test/dummy/config/initializers/inflections.rb +16 -0
  83. data/test/dummy/config/initializers/mime_types.rb +4 -0
  84. data/test/dummy/config/initializers/push_type.rb +5 -0
  85. data/test/dummy/config/initializers/session_store.rb +3 -0
  86. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  87. data/test/dummy/config/locales/en.yml +23 -0
  88. data/test/dummy/config/routes.rb +59 -0
  89. data/test/dummy/config/secrets.yml +22 -0
  90. data/test/dummy/config.ru +4 -0
  91. data/test/dummy/db/migrate/20141205213506_create_push_type_users.push_type.rb +13 -0
  92. data/test/dummy/db/migrate/20141205213507_create_push_type_nodes.push_type.rb +25 -0
  93. data/test/dummy/db/migrate/20141205213508_create_push_type_node_hierarchies.push_type.rb +17 -0
  94. data/test/dummy/db/migrate/20141205213509_create_push_type_assets.push_type.rb +19 -0
  95. data/test/dummy/db/schema.rb +67 -0
  96. data/test/dummy/db/seeds.rb +7 -0
  97. data/test/dummy/log/test.log +2322 -0
  98. data/test/dummy/public/404.html +67 -0
  99. data/test/dummy/public/422.html +67 -0
  100. data/test/dummy/public/500.html +66 -0
  101. data/test/dummy/public/favicon.ico +0 -0
  102. data/test/dummy/public/robots.txt +5 -0
  103. data/test/dummy/tmp/cache/assets/test/sass/53cc07db53069364c4116d03ae9493d85566d502/_functions.scssc +0 -0
  104. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_accordion.scssc +0 -0
  105. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_alert-boxes.scssc +0 -0
  106. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_block-grid.scssc +0 -0
  107. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_breadcrumbs.scssc +0 -0
  108. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_button-groups.scssc +0 -0
  109. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_buttons.scssc +0 -0
  110. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_clearing.scssc +0 -0
  111. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_dropdown-buttons.scssc +0 -0
  112. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_dropdown.scssc +0 -0
  113. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_flex-video.scssc +0 -0
  114. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_forms.scssc +0 -0
  115. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_global.scssc +0 -0
  116. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_grid.scssc +0 -0
  117. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_icon-bar.scssc +0 -0
  118. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_inline-lists.scssc +0 -0
  119. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_joyride.scssc +0 -0
  120. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_keystrokes.scssc +0 -0
  121. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_labels.scssc +0 -0
  122. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_magellan.scssc +0 -0
  123. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_offcanvas.scssc +0 -0
  124. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_orbit.scssc +0 -0
  125. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_pagination.scssc +0 -0
  126. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_panels.scssc +0 -0
  127. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_pricing-tables.scssc +0 -0
  128. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_progress-bars.scssc +0 -0
  129. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_range-slider.scssc +0 -0
  130. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_reveal.scssc +0 -0
  131. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_side-nav.scssc +0 -0
  132. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_split-buttons.scssc +0 -0
  133. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_sub-nav.scssc +0 -0
  134. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_switches.scssc +0 -0
  135. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_tables.scssc +0 -0
  136. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_tabs.scssc +0 -0
  137. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_thumbs.scssc +0 -0
  138. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_tooltips.scssc +0 -0
  139. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_top-bar.scssc +0 -0
  140. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_type.scssc +0 -0
  141. data/test/dummy/tmp/cache/assets/test/sass/669496e8548de1a6ba1641898c1b30c67ab8fac2/_visibility.scssc +0 -0
  142. data/test/dummy/tmp/cache/assets/test/sass/68968d876746de0885a03aacd18ec354e154ffed/foundation-icons.scssc +0 -0
  143. data/test/dummy/tmp/cache/assets/test/sass/805c0b657f4b79d174c13bc42a4759a57d5a5484/foundation.scssc +0 -0
  144. data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/admin.scssc +0 -0
  145. data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/foundation_and_overrides.scssc +0 -0
  146. data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/froala_theme.scssc +0 -0
  147. data/test/dummy/tmp/cache/assets/test/sprockets/00ae61e049df7e5570b8c57835868cfe +0 -0
  148. data/test/dummy/tmp/cache/assets/test/sprockets/042e6dec69dbf88f86f5e8c360b52bcb +0 -0
  149. data/test/dummy/tmp/cache/assets/test/sprockets/0448802b256c25a379824969bf01241e +0 -0
  150. data/test/dummy/tmp/cache/assets/test/sprockets/05f11ba90b1f59f6a65002fef96de531 +0 -0
  151. data/test/dummy/tmp/cache/assets/test/sprockets/090f2c9bc57f8e73105a98a800051354 +0 -0
  152. data/test/dummy/tmp/cache/assets/test/sprockets/09fd8b22d7c059ed78b065ffa44138a4 +0 -0
  153. data/test/dummy/tmp/cache/assets/test/sprockets/0a01f1c3288f982772ed595695292767 +0 -0
  154. data/test/dummy/tmp/cache/assets/test/sprockets/0b83e9e8467b82a0991df336697846e0 +0 -0
  155. data/test/dummy/tmp/cache/assets/test/sprockets/10a718d020e26634ffd3071d63270dd1 +0 -0
  156. data/test/dummy/tmp/cache/assets/test/sprockets/12375f1bf3d91db0a06c3fc436918949 +0 -0
  157. data/test/dummy/tmp/cache/assets/test/sprockets/12a4fbfdcb2f1ed98ebd869761bce11e +0 -0
  158. data/test/dummy/tmp/cache/assets/test/sprockets/1505f3ddd93d7be2405c81d84a45cbfb +0 -0
  159. data/test/dummy/tmp/cache/assets/test/sprockets/161b66dc0b76d65e577b5465f86cb767 +0 -0
  160. data/test/dummy/tmp/cache/assets/test/sprockets/18ee507bade4f16ba4f6a5c93f3aac22 +0 -0
  161. data/test/dummy/tmp/cache/assets/test/sprockets/1c63cb75109171c505bf1b6b3f26513b +0 -0
  162. data/test/dummy/tmp/cache/assets/test/sprockets/1da46bb361bbd7b80dc66e5737dbf2a7 +0 -0
  163. data/test/dummy/tmp/cache/assets/test/sprockets/2479bd5cbccdeac3ab4df62c2c12e8d3 +0 -0
  164. data/test/dummy/tmp/cache/assets/test/sprockets/2599cde7c63354f12928a204c42fe68b +0 -0
  165. data/test/dummy/tmp/cache/assets/test/sprockets/25b238c2ec907a80d53955a0bb81073c +0 -0
  166. data/test/dummy/tmp/cache/assets/test/sprockets/2821176477eee8de7b9581f0564d0947 +0 -0
  167. data/test/dummy/tmp/cache/assets/test/sprockets/2a00ce050c10f75691b820576ec3aefd +0 -0
  168. data/test/dummy/tmp/cache/assets/test/sprockets/2a854446f76c1902defbfa436b1e7df8 +0 -0
  169. data/test/dummy/tmp/cache/assets/test/sprockets/2c745da65bdbc8ebb88b6bce026972b9 +0 -0
  170. data/test/dummy/tmp/cache/assets/test/sprockets/2d1bc2b9dc5ee0ed5635abc31fb1bc88 +0 -0
  171. data/test/dummy/tmp/cache/assets/test/sprockets/31c57ad31a65f9a951c6d7268cdedae5 +0 -0
  172. data/test/dummy/tmp/cache/assets/test/sprockets/337d12a0890572dfec336aa11e864651 +0 -0
  173. data/test/dummy/tmp/cache/assets/test/sprockets/3a2e7d8d06318496bd7e5c6bac44adf8 +0 -0
  174. data/test/dummy/tmp/cache/assets/test/sprockets/3d4f40cd6363f1841fa7c17dcbd281ce +0 -0
  175. data/test/dummy/tmp/cache/assets/test/sprockets/47dcfb84d9a092ad939f512e1d3db43c +0 -0
  176. data/test/dummy/tmp/cache/assets/test/sprockets/48582f4afd1c515e7eb10a8fc2195deb +0 -0
  177. data/test/dummy/tmp/cache/assets/test/sprockets/4c6b223eba19a3d4009cbda20ed1ae2d +0 -0
  178. data/test/dummy/tmp/cache/assets/test/sprockets/4fc498f23125a9811434c6d5d5b43b64 +0 -0
  179. data/test/dummy/tmp/cache/assets/test/sprockets/505162da4e90217e5f52f5e8f1922a0d +0 -0
  180. data/test/dummy/tmp/cache/assets/test/sprockets/557b45e924759b342404ddfb736f95a2 +0 -0
  181. data/test/dummy/tmp/cache/assets/test/sprockets/55d58e1add1ca367e262464e83ad82cf +0 -0
  182. data/test/dummy/tmp/cache/assets/test/sprockets/55d7985953b175268932d2f7e50f64e0 +0 -0
  183. data/test/dummy/tmp/cache/assets/test/sprockets/59992ed1702654aa166f8572af80a301 +0 -0
  184. data/test/dummy/tmp/cache/assets/test/sprockets/600202d00479f08d2e69019e34d12e65 +0 -0
  185. data/test/dummy/tmp/cache/assets/test/sprockets/62462f7d0da5dfe3ae7923c7c21325c0 +0 -0
  186. data/test/dummy/tmp/cache/assets/test/sprockets/666e486cb09d9612ba03d995085ea02d +0 -0
  187. data/test/dummy/tmp/cache/assets/test/sprockets/67d67f783372c9b99e2ff84c12d38dfb +0 -0
  188. data/test/dummy/tmp/cache/assets/test/sprockets/6d21cd96abbcb6506d99fb93e8a11196 +0 -0
  189. data/test/dummy/tmp/cache/assets/test/sprockets/6e714e8b8ac03d2e562e8a71c40e00f8 +0 -0
  190. data/test/dummy/tmp/cache/assets/test/sprockets/6f2f2b2fbb1097278be40facf7aa8447 +0 -0
  191. data/test/dummy/tmp/cache/assets/test/sprockets/72e0f0b80593c7ccfaf939c504f8127f +0 -0
  192. data/test/dummy/tmp/cache/assets/test/sprockets/7326e3e660754d56c46671c7347c5e97 +0 -0
  193. data/test/dummy/tmp/cache/assets/test/sprockets/75c5663a92b2003b794d5f5d184fde44 +0 -0
  194. data/test/dummy/tmp/cache/assets/test/sprockets/7b63c613f1053bde6004342003178a0e +0 -0
  195. data/test/dummy/tmp/cache/assets/test/sprockets/7d07558d12b9bd9b9dfa778344bab4ac +0 -0
  196. data/test/dummy/tmp/cache/assets/test/sprockets/7ea9d575b03f8effb678d4dcedf3d079 +0 -0
  197. data/test/dummy/tmp/cache/assets/test/sprockets/7f0b91f5fa71c52d3cbe1f108fb7c942 +0 -0
  198. data/test/dummy/tmp/cache/assets/test/sprockets/805c63977d339feb2ea7b61e1141a32f +0 -0
  199. data/test/dummy/tmp/cache/assets/test/sprockets/81ba6a364949bd4ffe2732ae5745012d +0 -0
  200. data/test/dummy/tmp/cache/assets/test/sprockets/81e2498e0e1457dd93b47780ae28fc03 +0 -0
  201. data/test/dummy/tmp/cache/assets/test/sprockets/897553ff72f546645e24e94feec75255 +0 -0
  202. data/test/dummy/tmp/cache/assets/test/sprockets/8a34d99aaa243ebb4e60f483a5b5a817 +0 -0
  203. data/test/dummy/tmp/cache/assets/test/sprockets/8e20677e2b4bd3f063a63fcf9e673971 +0 -0
  204. data/test/dummy/tmp/cache/assets/test/sprockets/8feb3d758b7824f15b301f9dc024c3f6 +0 -0
  205. data/test/dummy/tmp/cache/assets/test/sprockets/932f699ead87a4b9910d47334ed14d60 +0 -0
  206. data/test/dummy/tmp/cache/assets/test/sprockets/959fa77a7302a3002d5fb1394575117b +0 -0
  207. data/test/dummy/tmp/cache/assets/test/sprockets/969e05674f51d3b5b500e605e0292573 +0 -0
  208. data/test/dummy/tmp/cache/assets/test/sprockets/972e71e7d6b360ef56c88716f3191aaf +0 -0
  209. data/test/dummy/tmp/cache/assets/test/sprockets/98228623f6175426b2d7964b4a921cbb +0 -0
  210. data/test/dummy/tmp/cache/assets/test/sprockets/987bf17b1a3915d5c6d95ebda01e8f49 +0 -0
  211. data/test/dummy/tmp/cache/assets/test/sprockets/9aef3ae1f0c62b895d86ab60901dd450 +0 -0
  212. data/test/dummy/tmp/cache/assets/test/sprockets/9f65b180bd79d7b67e5fb1fe8ded1383 +0 -0
  213. data/test/dummy/tmp/cache/assets/test/sprockets/a4ee671663a58ce1f1860b1e9a9d17fb +0 -0
  214. data/test/dummy/tmp/cache/assets/test/sprockets/a55e988592ebc0d8e4e4ef1244ae4da7 +0 -0
  215. data/test/dummy/tmp/cache/assets/test/sprockets/a590260912e62280bb115dd52a953b18 +0 -0
  216. data/test/dummy/tmp/cache/assets/test/sprockets/a6453a78eb0c813a0b69a12cb7c4ab2c +0 -0
  217. data/test/dummy/tmp/cache/assets/test/sprockets/a721a930039ed66bd3f092ab1e9c8de6 +0 -0
  218. data/test/dummy/tmp/cache/assets/test/sprockets/a748bad0d4f5d6e6bbdf1b340905795b +0 -0
  219. data/test/dummy/tmp/cache/assets/test/sprockets/a96494099d559bfd8cb5257e21cb196c +0 -0
  220. data/test/dummy/tmp/cache/assets/test/sprockets/a970f64c67051f35069f45d8dad113a5 +0 -0
  221. data/test/dummy/tmp/cache/assets/test/sprockets/aaa6dc2bd59e21dd14b0c86a308a1d1f +0 -0
  222. data/test/dummy/tmp/cache/assets/test/sprockets/ac1b1f0c521a6acb5833209d7b18d888 +0 -0
  223. data/test/dummy/tmp/cache/assets/test/sprockets/b24f2d6f62512f4cb11c6a2e44bf90e4 +0 -0
  224. data/test/dummy/tmp/cache/assets/test/sprockets/b28bcc6d89b692e6b74758c30e21b862 +0 -0
  225. data/test/dummy/tmp/cache/assets/test/sprockets/b3b2a83d3d7d735130f0b029e58b29b8 +0 -0
  226. data/test/dummy/tmp/cache/assets/test/sprockets/b3d0193a1439465426a4d051a161291d +0 -0
  227. data/test/dummy/tmp/cache/assets/test/sprockets/b657c356e24f45a8b92d4f4da9ff361d +0 -0
  228. data/test/dummy/tmp/cache/assets/test/sprockets/b76beafa9aef0c7a18bf63fe612ecd17 +0 -0
  229. data/test/dummy/tmp/cache/assets/test/sprockets/b771c2de3967bda011cf04e0979497cf +0 -0
  230. data/test/dummy/tmp/cache/assets/test/sprockets/b8a73c4d259957f05d45cb5d96d41ff1 +0 -0
  231. data/test/dummy/tmp/cache/assets/test/sprockets/ba87909b8d71ddaedd84c3f6c00dce72 +0 -0
  232. data/test/dummy/tmp/cache/assets/test/sprockets/badf6e6ab7c3d1cc2b180e5883005a40 +0 -0
  233. data/test/dummy/tmp/cache/assets/test/sprockets/bbfc8dec2c2cc07cf4c1708597316a77 +0 -0
  234. data/test/dummy/tmp/cache/assets/test/sprockets/bc732efa6ca399217b023bd1e04f0404 +0 -0
  235. data/test/dummy/tmp/cache/assets/test/sprockets/bd5b45287cfdac63ed7199b7982da02f +0 -0
  236. data/test/dummy/tmp/cache/assets/test/sprockets/bee4e1605077e29abd380b05b645cbb4 +0 -0
  237. data/test/dummy/tmp/cache/assets/test/sprockets/c0e7a018799e51565da4aae3cd7409b4 +0 -0
  238. data/test/dummy/tmp/cache/assets/test/sprockets/c190d0bdd188c43629f35b9f463b86af +0 -0
  239. data/test/dummy/tmp/cache/assets/test/sprockets/c2b59fd99edc4b53754f7cb4e160452f +0 -0
  240. data/test/dummy/tmp/cache/assets/test/sprockets/c42a7aac68d827f88bcc25a41cdb5591 +0 -0
  241. data/test/dummy/tmp/cache/assets/test/sprockets/c5ef052e357af6829f6c522a38916fc7 +0 -0
  242. data/test/dummy/tmp/cache/assets/test/sprockets/c705dc7fb9e60c7d39b5c23a101cd830 +0 -0
  243. data/test/dummy/tmp/cache/assets/test/sprockets/c988fd2c5c9497ccef54f79a9e444ac6 +0 -0
  244. data/test/dummy/tmp/cache/assets/test/sprockets/cb761fc7bfc4c192abf5c946f863ab1e +0 -0
  245. data/test/dummy/tmp/cache/assets/test/sprockets/ce523687d631719d872f2869d34803b0 +0 -0
  246. data/test/dummy/tmp/cache/assets/test/sprockets/d2215e57429ecae68a054210e665d787 +0 -0
  247. data/test/dummy/tmp/cache/assets/test/sprockets/d30a320df486e076298c602d428f3145 +0 -0
  248. data/test/dummy/tmp/cache/assets/test/sprockets/d3921fc37cc437f0933c4dee9d089fd8 +0 -0
  249. data/test/dummy/tmp/cache/assets/test/sprockets/d527d40cd214f965c2751831ef138ba7 +0 -0
  250. data/test/dummy/tmp/cache/assets/test/sprockets/d8daf6c8e5df881485c0e1139a275f6d +0 -0
  251. data/test/dummy/tmp/cache/assets/test/sprockets/d9e5382620928a6b4a8cd70bdac10aa3 +0 -0
  252. data/test/dummy/tmp/cache/assets/test/sprockets/dd803fd7a93619599c7e703c2b307411 +0 -0
  253. data/test/dummy/tmp/cache/assets/test/sprockets/e05796fbbc7fcdcaefdd97534f2e4030 +0 -0
  254. data/test/dummy/tmp/cache/assets/test/sprockets/e1c3eff1f3886da4c71a854d42077d10 +0 -0
  255. data/test/dummy/tmp/cache/assets/test/sprockets/e568172da8ab8581f83f98dad0a73d29 +0 -0
  256. data/test/dummy/tmp/cache/assets/test/sprockets/f02093872b151ddb0fd1074fe83ff846 +0 -0
  257. data/test/dummy/tmp/cache/assets/test/sprockets/f100237ea34e5360da23f95cca21c340 +0 -0
  258. data/test/dummy/tmp/cache/assets/test/sprockets/f25b88a46a5a3b1b179079f6c0e4039a +0 -0
  259. data/test/dummy/tmp/cache/assets/test/sprockets/f31d581aaa301ef9ef6a08edc4319c35 +0 -0
  260. data/test/dummy/tmp/cache/assets/test/sprockets/f5fcab9d313889bf6d14a05040aff5bc +0 -0
  261. data/test/dummy/tmp/cache/assets/test/sprockets/f66bf7665e75e4d537977c71a5e39a4e +0 -0
  262. data/test/dummy/tmp/cache/assets/test/sprockets/f6c61aec4cc93384f9655a7d8aba73fe +0 -0
  263. data/test/dummy/tmp/cache/assets/test/sprockets/fa7e1f9a13f606e2603a17f8e00aa32a +0 -0
  264. data/test/dummy/tmp/cache/assets/test/sprockets/fcce52ee43ecad8cb3f18fc8f13a66b7 +0 -0
  265. data/test/dummy/tmp/cache/assets/test/sprockets/fd5e59fed8301f86b74e551534fce2b2 +0 -0
  266. data/test/helpers/push_type/admin_helper_test.rb +25 -0
  267. data/test/helpers/push_type/assets_helper_test.rb +26 -0
  268. data/test/test_helper.rb +19 -0
  269. data/vendor/assets/javascripts/confirm_with_reveal.js.coffee +148 -0
  270. data/vendor/assets/javascripts/jquery.filedrop.js +568 -0
  271. data/vendor/assets/javascripts/jquery.sortable.js +81 -0
  272. data/vendor/assets/javascripts/jquery.sticky.js +170 -0
  273. metadata +724 -0
@@ -0,0 +1,2322 @@
1
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreatePushTypeUsers (20141205213506)
5
+  (0.2ms) BEGIN
6
+ SQL (5.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (3.4ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp)
8
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213506"]]
9
+  (0.9ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20141205213507)
11
+  (0.2ms) BEGIN
12
+  (2.6ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
13
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213507"]]
14
+  (0.6ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20141205213508)
16
+  (0.2ms) BEGIN
17
+  (1.0ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
+  (1.1ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (1.0ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213508"]]
21
+  (0.5ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20141205213509)
23
+  (0.1ms) BEGIN
24
+  (3.6ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213509"]]
26
+  (0.5ms) COMMIT
27
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
+  (0.3ms) BEGIN
31
+ -----------------------------------------------------------------------------
32
+ PushType::AssetsHelper::#asset_icon::with document asset: test_0001_anonymous
33
+ -----------------------------------------------------------------------------
34
+  (0.2ms) SAVEPOINT active_record_1
35
+ SQL (1.8ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:15.005927"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "1"], ["mime_type", "application/pdf"], ["updated_at", "2014-12-05 21:35:15.005927"]]
36
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
38
+  (3.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
39
+  (6.9ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
40
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
41
+  (2.1ms) ROLLBACK
42
+  (0.1ms) BEGIN
43
+ -------------------------------------------------------------------------------
44
+ PushType::UsersController::PUT #update::with in-valid user: test_0001_anonymous
45
+ -------------------------------------------------------------------------------
46
+  (0.2ms) SAVEPOINT active_record_1
47
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
48
+ SQL (0.5ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:15.058976"], ["email", "joe-1@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:15.058976"]]
49
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50
+ Processing by PushType::UsersController#update as HTML
51
+ Parameters: {"user"=>{"name"=>""}, "id"=>"6819bf24-61ec-4054-89b7-7b079979db97"}
52
+ PushType::User Load (1.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "6819bf24-61ec-4054-89b7-7b079979db97"]]
53
+  (0.2ms) SAVEPOINT active_record_1
54
+ PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-1@example.com' AND "push_type_users"."id" != '6819bf24-61ec-4054-89b7-7b079979db97') LIMIT 1
55
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
56
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.9ms)
57
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (14.8ms)
58
+ Completed 200 OK in 11154ms (Views: 11134.6ms | ActiveRecord: 1.8ms)
59
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
60
+  (5.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
61
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
62
+  (2.4ms) ROLLBACK
63
+  (0.1ms) BEGIN
64
+ -------------------------------------------------------------------------------
65
+ PushType::UsersController::PUT #update::with in-valid user: test_0002_anonymous
66
+ -------------------------------------------------------------------------------
67
+  (0.2ms) SAVEPOINT active_record_1
68
+ PushType::User Exists (0.7ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
69
+ SQL (0.5ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:26.237307"], ["email", "joe-2@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:26.237307"]]
70
+  (0.2ms) RELEASE SAVEPOINT active_record_1
71
+ Processing by PushType::UsersController#update as HTML
72
+ Parameters: {"user"=>{"name"=>""}, "id"=>"f04275c8-092b-4899-8e04-14b05f23cdfc"}
73
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "f04275c8-092b-4899-8e04-14b05f23cdfc"]]
74
+  (0.1ms) SAVEPOINT active_record_1
75
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-2@example.com' AND "push_type_users"."id" != 'f04275c8-092b-4899-8e04-14b05f23cdfc') LIMIT 1
76
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
77
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
78
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (3.2ms)
79
+ Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.9ms)
80
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
81
+  (6.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
82
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
83
+  (2.2ms) ROLLBACK
84
+  (0.2ms) BEGIN
85
+ ---------------------------------------------------------------------------
86
+ PushType::NodesController::POST #position::append node: test_0001_anonymous
87
+ ---------------------------------------------------------------------------
88
+  (0.2ms) SAVEPOINT active_record_1
89
+ PushType::Node Exists (0.9ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
90
+ SQL (0.5ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.319033"], ["slug", "foo-bar-1"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.319033"]]
91
+  (0.6ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1f2805befd01864c544c68faf5b7aff5
92
+ SQL (1.6ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"], ["descendant_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"], ["generations", 0]]
93
+  (1.0ms) UPDATE "push_type_nodes"
94
+ SET "sort_order" = t.seq + -1
95
+ FROM (
96
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
97
+ FROM "push_type_nodes"
98
+ WHERE "parent_id" IS NULL
99
+ ) AS t
100
+ WHERE "push_type_nodes"."id" = t.id
101
+
102
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
103
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
104
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t88a25d6daf21e7907b7f5d28d7defd54
105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
106
+  (0.2ms) SAVEPOINT active_record_1
107
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
108
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.364357"], ["slug", "foo-bar-2"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.364357"]]
109
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8a649fb9a60b4942a93627250ef6360a
110
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"], ["descendant_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"], ["generations", 0]]
111
+  (0.5ms) UPDATE "push_type_nodes"
112
+ SET "sort_order" = t.seq + -1
113
+ FROM (
114
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
115
+ FROM "push_type_nodes"
116
+ WHERE "parent_id" IS NULL
117
+ ) AS t
118
+ WHERE "push_type_nodes"."id" = t.id
119
+
120
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"]]
121
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"]]
122
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS ta41a83541c13a7a8f1d15bfbfb314bed
123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
124
+  (0.1ms) SAVEPOINT active_record_1
125
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
126
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.377852"], ["slug", "foo-bar-3"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.377852"]]
127
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8dfb2bfa246b208b3dda4836e5f0482b
128
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f774d52-517e-47a7-b592-a1fcb595de18"], ["descendant_id", "5f774d52-517e-47a7-b592-a1fcb595de18"], ["generations", 0]]
129
+  (0.5ms) UPDATE "push_type_nodes"
130
+ SET "sort_order" = t.seq + -1
131
+ FROM (
132
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
133
+ FROM "push_type_nodes"
134
+ WHERE "parent_id" IS NULL
135
+ ) AS t
136
+ WHERE "push_type_nodes"."id" = t.id
137
+
138
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f774d52-517e-47a7-b592-a1fcb595de18"]]
139
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f774d52-517e-47a7-b592-a1fcb595de18"]]
140
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t54ba2e6d8e7cf8dddc437a4829961c5d
141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142
+  (0.1ms) SAVEPOINT active_record_1
143
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
144
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.387211"], ["slug", "foo-bar-4"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.387211"]]
145
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc6cdc17514678333ffe741dd904a043b
146
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2c631359-1112-48fc-9f5b-ba9993823550"], ["descendant_id", "2c631359-1112-48fc-9f5b-ba9993823550"], ["generations", 0]]
147
+  (0.5ms) UPDATE "push_type_nodes"
148
+ SET "sort_order" = t.seq + -1
149
+ FROM (
150
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
151
+ FROM "push_type_nodes"
152
+ WHERE "parent_id" IS NULL
153
+ ) AS t
154
+ WHERE "push_type_nodes"."id" = t.id
155
+
156
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "2c631359-1112-48fc-9f5b-ba9993823550"]]
157
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2c631359-1112-48fc-9f5b-ba9993823550"]]
158
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tbb446f448166f9484ad43906d1062563
159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
160
+  (0.1ms) SAVEPOINT active_record_1
161
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
162
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.397562"], ["slug", "foo-bar-5"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.397562"]]
163
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc2e07d9a5287ed64c1b7e478ad04c214
164
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"], ["descendant_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"], ["generations", 0]]
165
+  (0.5ms) UPDATE "push_type_nodes"
166
+ SET "sort_order" = t.seq + -1
167
+ FROM (
168
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
169
+ FROM "push_type_nodes"
170
+ WHERE "parent_id" IS NULL
171
+ ) AS t
172
+ WHERE "push_type_nodes"."id" = t.id
173
+
174
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
175
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
176
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t434e13033dcaac76e5f5e172eac92fbf
177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+ Processing by PushType::NodesController#position as HTML
179
+ Parameters: {"prev"=>"c8226ba4-1dbc-4353-adb1-6cc9c7006b88", "id"=>"7c05c7f4-6a93-475e-b79c-9d2194dfb591"}
180
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
181
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
182
+  (0.1ms) SAVEPOINT active_record_1
183
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."id" != 'c8226ba4-1dbc-4353-adb1-6cc9c7006b88' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
184
+  (0.2ms) RELEASE SAVEPOINT active_record_1
185
+  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS t09d54c1062701786c4ec7701cf76c9e4
186
+  (0.2ms) SAVEPOINT active_record_1
187
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."id" != '7c05c7f4-6a93-475e-b79c-9d2194dfb591' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
188
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '7c05c7f4-6a93-475e-b79c-9d2194dfb591' [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.417273"]]
189
+  (0.6ms) UPDATE "push_type_nodes"
190
+ SET "sort_order" = t.seq + -1
191
+ FROM (
192
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
193
+ FROM "push_type_nodes"
194
+ WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
195
+ ) AS t
196
+ WHERE "push_type_nodes"."id" = t.id
197
+
198
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
199
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
200
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
201
+  (0.2ms) RELEASE SAVEPOINT active_record_1
202
+  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t8ad2a8f606d296fd18466230d5696a7d
203
+ Completed 200 OK in 16ms (ActiveRecord: 4.0ms)
204
+ Processing by PushType::NodesController#index as HTML
205
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
206
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
207
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
208
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c8226ba4-1dbc-4353-adb1-6cc9c7006b88"]]
209
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "7c05c7f4-6a93-475e-b79c-9d2194dfb591"]]
210
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "32ef03db-ed04-4158-8c5c-5326ba6b536a"]]
211
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f774d52-517e-47a7-b592-a1fcb595de18"]]
212
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2c631359-1112-48fc-9f5b-ba9993823550"]]
213
+  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
214
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (3.7ms)
215
+ Completed 200 OK in 47ms (Views: 39.1ms | ActiveRecord: 2.7ms)
216
+ PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0
217
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
218
+  (6.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
219
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
220
+  (2.2ms) ROLLBACK
221
+  (0.1ms) BEGIN
222
+ ---------------------------------------------------------------------------
223
+ PushType::NodesController::POST #position::append node: test_0002_anonymous
224
+ ---------------------------------------------------------------------------
225
+  (0.2ms) SAVEPOINT active_record_1
226
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-6' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
227
+ SQL (0.5ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.491808"], ["slug", "foo-bar-6"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.491808"]]
228
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2029e4197e59fcf51332fc2309e2f628
229
+ SQL (0.5ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"], ["descendant_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"], ["generations", 0]]
230
+  (0.5ms) UPDATE "push_type_nodes"
231
+ SET "sort_order" = t.seq + -1
232
+ FROM (
233
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
234
+ FROM "push_type_nodes"
235
+ WHERE "parent_id" IS NULL
236
+ ) AS t
237
+ WHERE "push_type_nodes"."id" = t.id
238
+
239
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
240
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
241
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t8451c58daecbe901cfe54b50e5b914b4
242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
243
+  (0.1ms) SAVEPOINT active_record_1
244
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-7' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
245
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.503124"], ["slug", "foo-bar-7"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.503124"]]
246
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8f25fbbe05e085149ddbb0af858129b7
247
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"], ["descendant_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"], ["generations", 0]]
248
+  (0.4ms) UPDATE "push_type_nodes"
249
+ SET "sort_order" = t.seq + -1
250
+ FROM (
251
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
252
+ FROM "push_type_nodes"
253
+ WHERE "parent_id" IS NULL
254
+ ) AS t
255
+ WHERE "push_type_nodes"."id" = t.id
256
+
257
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"]]
258
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"]]
259
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tc59a0b288a5dd713bd8d3922dfc96d6b
260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
261
+  (0.1ms) SAVEPOINT active_record_1
262
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-8' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
263
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.512587"], ["slug", "foo-bar-8"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.512587"]]
264
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t09cb4e6d320d15e9e1f4552c91d6e950
265
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"], ["descendant_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"], ["generations", 0]]
266
+  (0.4ms) UPDATE "push_type_nodes"
267
+ SET "sort_order" = t.seq + -1
268
+ FROM (
269
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
270
+ FROM "push_type_nodes"
271
+ WHERE "parent_id" IS NULL
272
+ ) AS t
273
+ WHERE "push_type_nodes"."id" = t.id
274
+
275
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"]]
276
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"]]
277
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS td31c39c6d811d307206e4f057e30c972
278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
279
+  (0.1ms) SAVEPOINT active_record_1
280
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
281
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.521593"], ["slug", "foo-bar-9"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.521593"]]
282
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta8dbbfef69263c7ca74fa452157c1a2c
283
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"], ["descendant_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"], ["generations", 0]]
284
+  (0.4ms) UPDATE "push_type_nodes"
285
+ SET "sort_order" = t.seq + -1
286
+ FROM (
287
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
288
+ FROM "push_type_nodes"
289
+ WHERE "parent_id" IS NULL
290
+ ) AS t
291
+ WHERE "push_type_nodes"."id" = t.id
292
+
293
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"]]
294
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"]]
295
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tcf46aeb328d8402abf4dd2877b4dc1b4
296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
297
+  (0.1ms) SAVEPOINT active_record_1
298
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
299
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.530253"], ["slug", "foo-bar-10"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.530253"]]
300
+  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0c6c0306c6715982fe03467edc4ebeed
301
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"], ["descendant_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"], ["generations", 0]]
302
+  (0.5ms) UPDATE "push_type_nodes"
303
+ SET "sort_order" = t.seq + -1
304
+ FROM (
305
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
306
+ FROM "push_type_nodes"
307
+ WHERE "parent_id" IS NULL
308
+ ) AS t
309
+ WHERE "push_type_nodes"."id" = t.id
310
+
311
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
312
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
313
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t066ca43639789972796cd27e38407622
314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
315
+ Processing by PushType::NodesController#position as HTML
316
+ Parameters: {"prev"=>"bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9", "id"=>"3a9ba944-2b80-4f43-bd60-09973299f71e"}
317
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
318
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
319
+  (0.1ms) SAVEPOINT active_record_1
320
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-6' AND "push_type_nodes"."id" != 'bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
322
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS te38c1f3fd5e90427d52560353534ce7d
323
+  (0.1ms) SAVEPOINT active_record_1
324
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."id" != '3a9ba944-2b80-4f43-bd60-09973299f71e' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
325
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '3a9ba944-2b80-4f43-bd60-09973299f71e' [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.545549"]]
326
+  (0.5ms) UPDATE "push_type_nodes"
327
+ SET "sort_order" = t.seq + -1
328
+ FROM (
329
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
330
+ FROM "push_type_nodes"
331
+ WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
332
+ ) AS t
333
+ WHERE "push_type_nodes"."id" = t.id
334
+
335
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
336
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
337
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t68e8af7ede883e2ba920c396e24dab92
340
+ Completed 200 OK in 11ms (ActiveRecord: 3.2ms)
341
+ Processing by PushType::NodesController#index as HTML
342
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
343
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
344
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
345
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "bfb20db4-abe6-45d0-bd8f-bb94b47fd1f9"]]
346
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3a9ba944-2b80-4f43-bd60-09973299f71e"]]
347
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ae5c0f61-0c94-4769-ab5c-2a83dc566c63"]]
348
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8cc8e6aa-2f48-4bbc-83a8-0b825b04a5e8"]]
349
+  (0.4ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9c7a186d-8c94-46f0-9d21-46da390b4a97"]]
350
+  (0.5ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
351
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.1ms)
352
+ Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 2.7ms)
353
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
354
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
355
+  (6.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
356
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
357
+  (2.2ms) ROLLBACK
358
+  (0.1ms) BEGIN
359
+ --------------------------------------------------
360
+ PushType::AdminHelper::#title: test_0001_anonymous
361
+ --------------------------------------------------
362
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
363
+  (5.9ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
364
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
365
+  (2.2ms) ROLLBACK
366
+  (0.1ms) BEGIN
367
+ --------------------------------------------------
368
+ PushType::AdminHelper::#title: test_0002_anonymous
369
+ --------------------------------------------------
370
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
371
+  (6.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
372
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
373
+  (2.1ms) ROLLBACK
374
+  (0.1ms) BEGIN
375
+ --------------------------------------------------------
376
+ PushType::UsersController::GET #new: test_0001_anonymous
377
+ --------------------------------------------------------
378
+ Processing by PushType::UsersController#new as HTML
379
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
380
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (3.2ms)
381
+ Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
382
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
383
+  (5.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
384
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
385
+  (2.3ms) ROLLBACK
386
+  (0.2ms) BEGIN
387
+ --------------------------------------------------------
388
+ PushType::UsersController::GET #new: test_0002_anonymous
389
+ --------------------------------------------------------
390
+ Processing by PushType::UsersController#new as HTML
391
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
392
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.1ms)
393
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
394
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
395
+  (6.8ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
396
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
397
+  (2.0ms) ROLLBACK
398
+  (0.2ms) BEGIN
399
+ --------------------------------------------------------
400
+ PushType::UsersController::GET #new: test_0003_anonymous
401
+ --------------------------------------------------------
402
+ Processing by PushType::UsersController#new as HTML
403
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
404
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.5ms)
405
+ Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms)
406
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
407
+  (5.9ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
408
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
409
+  (2.2ms) ROLLBACK
410
+  (0.1ms) BEGIN
411
+ ----------------------------------------------------------------------------
412
+ PushType::NodesController::PUT #update::with valid node: test_0001_anonymous
413
+ ----------------------------------------------------------------------------
414
+  (0.2ms) SAVEPOINT active_record_1
415
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-11' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
416
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:26.688339"], ["slug", "foo-bar-11"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:26.688339"]]
417
+  (0.5ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5f5f8885cc77df30aa493aef37192db4
418
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "66b23416-81de-46a0-bb06-d794bd5f0431"], ["descendant_id", "66b23416-81de-46a0-bb06-d794bd5f0431"], ["generations", 0]]
419
+  (0.4ms) UPDATE "push_type_nodes"
420
+ SET "sort_order" = t.seq + -1
421
+ FROM (
422
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
423
+ FROM "push_type_nodes"
424
+ WHERE "parent_id" IS NULL
425
+ ) AS t
426
+ WHERE "push_type_nodes"."id" = t.id
427
+ 
428
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "66b23416-81de-46a0-bb06-d794bd5f0431"]]
429
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "66b23416-81de-46a0-bb06-d794bd5f0431"]]
430
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tdef12aedd9ecd160d9a12123efa8613b
431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
432
+ Processing by PushType::NodesController#update as HTML
433
+ Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"66b23416-81de-46a0-bb06-d794bd5f0431"}
434
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "66b23416-81de-46a0-bb06-d794bd5f0431"]]
435
+  (0.1ms) SAVEPOINT active_record_1
436
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-11' AND "push_type_nodes"."id" != '66b23416-81de-46a0-bb06-d794bd5f0431' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
437
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '66b23416-81de-46a0-bb06-d794bd5f0431' [["title", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:26.711674"]]
438
+  (0.2ms) RELEASE SAVEPOINT active_record_1
439
+ Redirected to http://test.host/push_type/nodes
440
+ Completed 302 Found in 8ms (ActiveRecord: 1.3ms)
441
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
442
+  (7.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
443
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
444
+  (2.3ms) ROLLBACK
445
+  (0.2ms) BEGIN
446
+ ----------------------------------------------------------------------------
447
+ PushType::NodesController::PUT #update::with valid node: test_0002_anonymous
448
+ ----------------------------------------------------------------------------
449
+  (0.2ms) SAVEPOINT active_record_1
450
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
451
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:26.736025"], ["slug", "foo-bar-12"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:26.736025"]]
452
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdb8b05a3ee49c3ca4a51bbed06f6acf2
453
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8997f672-1424-46ed-97fd-ad924f00ba77"], ["descendant_id", "8997f672-1424-46ed-97fd-ad924f00ba77"], ["generations", 0]]
454
+  (0.4ms) UPDATE "push_type_nodes"
455
+ SET "sort_order" = t.seq + -1
456
+ FROM (
457
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
458
+ FROM "push_type_nodes"
459
+ WHERE "parent_id" IS NULL
460
+ ) AS t
461
+ WHERE "push_type_nodes"."id" = t.id
462
+ 
463
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8997f672-1424-46ed-97fd-ad924f00ba77"]]
464
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8997f672-1424-46ed-97fd-ad924f00ba77"]]
465
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t9d0c1593802b0abbceb35c1152bd6494
466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
467
+ Processing by PushType::NodesController#update as HTML
468
+ Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"8997f672-1424-46ed-97fd-ad924f00ba77"}
469
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8997f672-1424-46ed-97fd-ad924f00ba77"]]
470
+  (0.1ms) SAVEPOINT active_record_1
471
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."id" != '8997f672-1424-46ed-97fd-ad924f00ba77' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
472
+ SQL (0.2ms) UPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '8997f672-1424-46ed-97fd-ad924f00ba77' [["title", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:26.747989"]]
473
+  (0.3ms) RELEASE SAVEPOINT active_record_1
474
+ Redirected to http://test.host/push_type/nodes
475
+ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
476
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
477
+  (6.5ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
478
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
479
+  (2.3ms) ROLLBACK
480
+  (0.2ms) BEGIN
481
+ ----------------------------------------------------------------------------
482
+ PushType::NodesController::PUT #update::with valid node: test_0003_anonymous
483
+ ----------------------------------------------------------------------------
484
+  (0.2ms) SAVEPOINT active_record_1
485
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-13' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
486
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:26.770644"], ["slug", "foo-bar-13"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:26.770644"]]
487
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1e0150a7639787300f036b51562afbf9
488
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"], ["descendant_id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"], ["generations", 0]]
489
+  (0.4ms) UPDATE "push_type_nodes"
490
+ SET "sort_order" = t.seq + -1
491
+ FROM (
492
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
493
+ FROM "push_type_nodes"
494
+ WHERE "parent_id" IS NULL
495
+ ) AS t
496
+ WHERE "push_type_nodes"."id" = t.id
497
+ 
498
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
499
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
500
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t75cbdc39710597f6036329b68a81b2e9
501
+  (0.2ms) RELEASE SAVEPOINT active_record_1
502
+ Processing by PushType::NodesController#update as HTML
503
+ Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"b202098b-6d7a-4ad6-8683-5157cf2b66be"}
504
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
505
+  (0.2ms) SAVEPOINT active_record_1
506
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-13' AND "push_type_nodes"."id" != 'b202098b-6d7a-4ad6-8683-5157cf2b66be' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
507
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = 'b202098b-6d7a-4ad6-8683-5157cf2b66be' [["title", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:26.784650"]]
508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
509
+ Redirected to http://test.host/push_type/nodes
510
+ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)
511
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b202098b-6d7a-4ad6-8683-5157cf2b66be"]]
512
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
513
+  (5.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
514
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
515
+  (2.1ms) ROLLBACK
516
+  (0.2ms) BEGIN
517
+ ----------------------------------------------------------------------------
518
+ PushType::NodesController::POST #position::prepend node: test_0001_anonymous
519
+ ----------------------------------------------------------------------------
520
+  (0.2ms) SAVEPOINT active_record_1
521
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
522
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.805938"], ["slug", "foo-bar-14"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.805938"]]
523
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS te317abd3d75558633646837c5d526703
524
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"], ["descendant_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"], ["generations", 0]]
525
+  (0.4ms) UPDATE "push_type_nodes"
526
+ SET "sort_order" = t.seq + -1
527
+ FROM (
528
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
529
+ FROM "push_type_nodes"
530
+ WHERE "parent_id" IS NULL
531
+ ) AS t
532
+ WHERE "push_type_nodes"."id" = t.id
533
+
534
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
535
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
536
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t5b78a894b11c820ed2e65dfa77900f34
537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
538
+  (0.1ms) SAVEPOINT active_record_1
539
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-15' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
540
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.814772"], ["slug", "foo-bar-15"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.814772"]]
541
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc0f44b8b77a487d3c45ef52d1300748c
542
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"], ["descendant_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"], ["generations", 0]]
543
+  (0.5ms) UPDATE "push_type_nodes"
544
+ SET "sort_order" = t.seq + -1
545
+ FROM (
546
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
547
+ FROM "push_type_nodes"
548
+ WHERE "parent_id" IS NULL
549
+ ) AS t
550
+ WHERE "push_type_nodes"."id" = t.id
551
+
552
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"]]
553
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"]]
554
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t18e8f2ad174491a53aea81fe22951f76
555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
556
+  (0.1ms) SAVEPOINT active_record_1
557
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-16' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
558
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.823380"], ["slug", "foo-bar-16"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.823380"]]
559
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t75b67d36252761bf7d0f024b5e2ce696
560
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"], ["descendant_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"], ["generations", 0]]
561
+  (0.9ms) UPDATE "push_type_nodes"
562
+ SET "sort_order" = t.seq + -1
563
+ FROM (
564
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
565
+ FROM "push_type_nodes"
566
+ WHERE "parent_id" IS NULL
567
+ ) AS t
568
+ WHERE "push_type_nodes"."id" = t.id
569
+
570
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"]]
571
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"]]
572
+  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS tc1d5a32ee0c87ababac2483ff8d15f76
573
+  (0.2ms) RELEASE SAVEPOINT active_record_1
574
+  (0.2ms) SAVEPOINT active_record_1
575
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-17' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
576
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.835197"], ["slug", "foo-bar-17"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.835197"]]
577
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t758b36fc726c89b2ce91cb521e272d87
578
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"], ["descendant_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"], ["generations", 0]]
579
+  (0.5ms) UPDATE "push_type_nodes"
580
+ SET "sort_order" = t.seq + -1
581
+ FROM (
582
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
583
+ FROM "push_type_nodes"
584
+ WHERE "parent_id" IS NULL
585
+ ) AS t
586
+ WHERE "push_type_nodes"."id" = t.id
587
+
588
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"]]
589
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"]]
590
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS taa2b887365ce9a6623a06930e9a7f9df
591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
592
+  (0.1ms) SAVEPOINT active_record_1
593
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-18' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
594
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.843552"], ["slug", "foo-bar-18"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.843552"]]
595
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t183f48a306bc119bf79bc4fbcc0d68b0
596
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"], ["descendant_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"], ["generations", 0]]
597
+  (0.5ms) UPDATE "push_type_nodes"
598
+ SET "sort_order" = t.seq + -1
599
+ FROM (
600
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
601
+ FROM "push_type_nodes"
602
+ WHERE "parent_id" IS NULL
603
+ ) AS t
604
+ WHERE "push_type_nodes"."id" = t.id
605
+
606
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
607
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
608
+  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t449e6161322b2029c8a30da3fbd182a5
609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
610
+ Processing by PushType::NodesController#position as HTML
611
+ Parameters: {"next"=>"e2a1a78c-54bb-4ffa-abb6-7255bbab3707", "id"=>"4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"}
612
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
613
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
614
+  (0.1ms) SAVEPOINT active_record_1
615
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."id" != 'e2a1a78c-54bb-4ffa-abb6-7255bbab3707' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
617
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb9435c1ad3cbbcef385ab23965836c68
618
+  (0.1ms) SAVEPOINT active_record_1
619
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-18' AND "push_type_nodes"."id" != '4298e911-bf08-4909-a7cf-ec2e4a4b9bf4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
620
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '4298e911-bf08-4909-a7cf-ec2e4a4b9bf4' [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.857838"]]
621
+  (0.5ms) UPDATE "push_type_nodes"
622
+ SET "sort_order" = t.seq + -1
623
+ FROM (
624
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
625
+ FROM "push_type_nodes"
626
+ WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
627
+ ) AS t
628
+ WHERE "push_type_nodes"."id" = t.id
629
+
630
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
631
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
632
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
633
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = 1 WHERE "push_type_nodes"."id" = 'e2a1a78c-54bb-4ffa-abb6-7255bbab3707'
634
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = 0 WHERE "push_type_nodes"."id" = '4298e911-bf08-4909-a7cf-ec2e4a4b9bf4'
635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
636
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t520a469102cb672b85495e9db2ae2eb0
637
+ Completed 200 OK in 13ms (ActiveRecord: 3.7ms)
638
+ Processing by PushType::NodesController#index as HTML
639
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
640
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
641
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
642
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4298e911-bf08-4909-a7cf-ec2e4a4b9bf4"]]
643
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e2a1a78c-54bb-4ffa-abb6-7255bbab3707"]]
644
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "31dfb589-7fa4-4b3f-b459-41db63d49c6a"]]
645
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f1e96c1-e3b5-4982-9e66-35099004ed99"]]
646
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a7ed0dd6-64e5-4fc5-a61c-df3238b17d93"]]
647
+  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
648
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.6ms)
649
+ Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 2.4ms)
650
+ PushType::Node Load (0.8ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
651
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
652
+  (7.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
653
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
654
+  (2.5ms) ROLLBACK
655
+  (0.2ms) BEGIN
656
+ ----------------------------------------------------------------------------
657
+ PushType::NodesController::POST #position::prepend node: test_0002_anonymous
658
+ ----------------------------------------------------------------------------
659
+  (0.1ms) SAVEPOINT active_record_1
660
+ PushType::Node Exists (0.7ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-19' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
661
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.908291"], ["slug", "foo-bar-19"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.908291"]]
662
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta8bac448f2ecd61abb0bab26e45a64d3
663
+ SQL (0.5ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"], ["descendant_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"], ["generations", 0]]
664
+  (0.4ms) UPDATE "push_type_nodes"
665
+ SET "sort_order" = t.seq + -1
666
+ FROM (
667
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
668
+ FROM "push_type_nodes"
669
+ WHERE "parent_id" IS NULL
670
+ ) AS t
671
+ WHERE "push_type_nodes"."id" = t.id
672
+
673
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
674
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
675
+  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS tab5e71c295b9271f431044a790f02371
676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
677
+  (0.1ms) SAVEPOINT active_record_1
678
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-20' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
679
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.918620"], ["slug", "foo-bar-20"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.918620"]]
680
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5b7a5bd05e2429db5d0f79c685bf6ae0
681
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"], ["descendant_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"], ["generations", 0]]
682
+  (0.4ms) UPDATE "push_type_nodes"
683
+ SET "sort_order" = t.seq + -1
684
+ FROM (
685
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
686
+ FROM "push_type_nodes"
687
+ WHERE "parent_id" IS NULL
688
+ ) AS t
689
+ WHERE "push_type_nodes"."id" = t.id
690
+
691
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"]]
692
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"]]
693
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tddebba1cfa464a004f01ec4775c1392e
694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
695
+  (0.1ms) SAVEPOINT active_record_1
696
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-21' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
697
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.926449"], ["slug", "foo-bar-21"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.926449"]]
698
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb0a196e782874d2f0d08198c16662513
699
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"], ["descendant_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"], ["generations", 0]]
700
+  (0.4ms) UPDATE "push_type_nodes"
701
+ SET "sort_order" = t.seq + -1
702
+ FROM (
703
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
704
+ FROM "push_type_nodes"
705
+ WHERE "parent_id" IS NULL
706
+ ) AS t
707
+ WHERE "push_type_nodes"."id" = t.id
708
+
709
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"]]
710
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"]]
711
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t98d65acc72e0225a99668acefbcf4b2a
712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
713
+  (0.1ms) SAVEPOINT active_record_1
714
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-22' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
715
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.934757"], ["slug", "foo-bar-22"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.934757"]]
716
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4dcb1e7fd4253651f3ea09809a331b48
717
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"], ["descendant_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"], ["generations", 0]]
718
+  (0.8ms) UPDATE "push_type_nodes"
719
+ SET "sort_order" = t.seq + -1
720
+ FROM (
721
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
722
+ FROM "push_type_nodes"
723
+ WHERE "parent_id" IS NULL
724
+ ) AS t
725
+ WHERE "push_type_nodes"."id" = t.id
726
+
727
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "92f60f06-6416-4900-88c9-6c594bc1e11a"]]
728
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"]]
729
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS te6addff82fc9f83e20ebffecb4face55
730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
731
+  (0.1ms) SAVEPOINT active_record_1
732
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-23' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
733
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:26.944178"], ["slug", "foo-bar-23"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:26.944178"]]
734
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6fdf605be919b9d770eb3ee02c1290f1
735
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c9d0112f-0282-434b-9381-3c7224ce3359"], ["descendant_id", "c9d0112f-0282-434b-9381-3c7224ce3359"], ["generations", 0]]
736
+  (0.8ms) UPDATE "push_type_nodes"
737
+ SET "sort_order" = t.seq + -1
738
+ FROM (
739
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
740
+ FROM "push_type_nodes"
741
+ WHERE "parent_id" IS NULL
742
+ ) AS t
743
+ WHERE "push_type_nodes"."id" = t.id
744
+
745
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
746
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
747
+  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t62028de745af4a2c0b5a82fd84cafe76
748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
749
+ Processing by PushType::NodesController#position as HTML
750
+ Parameters: {"next"=>"5f5f52d9-56d1-47d8-a673-9089571bb121", "id"=>"c9d0112f-0282-434b-9381-3c7224ce3359"}
751
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
752
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
753
+  (0.1ms) SAVEPOINT active_record_1
754
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-19' AND "push_type_nodes"."id" != '5f5f52d9-56d1-47d8-a673-9089571bb121' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
756
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdcc2dea1b76d9a6e5e495bc745178998
757
+  (0.1ms) SAVEPOINT active_record_1
758
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-23' AND "push_type_nodes"."id" != 'c9d0112f-0282-434b-9381-3c7224ce3359' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
759
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = 'c9d0112f-0282-434b-9381-3c7224ce3359' [["sort_order", 0], ["updated_at", "2014-12-05 21:35:26.960738"]]
760
+  (0.4ms) UPDATE "push_type_nodes"
761
+ SET "sort_order" = t.seq + -1
762
+ FROM (
763
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
764
+ FROM "push_type_nodes"
765
+ WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0
766
+ ) AS t
767
+ WHERE "push_type_nodes"."id" = t.id
768
+
769
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
770
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
771
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
772
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = 1 WHERE "push_type_nodes"."id" = '5f5f52d9-56d1-47d8-a673-9089571bb121'
773
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = 0 WHERE "push_type_nodes"."id" = 'c9d0112f-0282-434b-9381-3c7224ce3359'
774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
775
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t35196512d40ca44025d79f67fc2566d0
776
+ Completed 200 OK in 12ms (ActiveRecord: 3.6ms)
777
+ Processing by PushType::NodesController#index as HTML
778
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
779
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
780
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
781
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c9d0112f-0282-434b-9381-3c7224ce3359"]]
782
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f5f52d9-56d1-47d8-a673-9089571bb121"]]
783
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "cf21d3b4-e0f9-4997-9737-83f5e11bf3d3"]]
784
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1e66bfe5-bb1d-4d7a-a2a8-5eff65fe035d"]]
785
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "92f60f06-6416-4900-88c9-6c594bc1e11a"]]
786
+  (0.4ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
787
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.5ms)
788
+ Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.6ms)
789
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0
790
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
791
+  (6.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
792
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
793
+  (2.3ms) ROLLBACK
794
+  (0.1ms) BEGIN
795
+ ----------------------------------------------------------
796
+ PushType::AssetsController::GET #edit: test_0001_anonymous
797
+ ----------------------------------------------------------
798
+  (0.2ms) SAVEPOINT active_record_1
799
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.009116"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.009116"]]
800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
801
+ Processing by PushType::AssetsController#edit as HTML
802
+ Parameters: {"id"=>"13213cbc-3e56-4b1b-bcb7-aa4e5648b718"}
803
+ PushType::Asset Load (0.7ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "13213cbc-3e56-4b1b-bcb7-aa4e5648b718"]]
804
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (17.7ms)
805
+ Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.7ms)
806
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
807
+  (6.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
808
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
809
+  (2.2ms) ROLLBACK
810
+  (0.2ms) BEGIN
811
+ ----------------------------------------------------------
812
+ PushType::AssetsController::GET #edit: test_0002_anonymous
813
+ ----------------------------------------------------------
814
+  (0.2ms) SAVEPOINT active_record_1
815
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.060238"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.060238"]]
816
+  (0.2ms) RELEASE SAVEPOINT active_record_1
817
+ Processing by PushType::AssetsController#edit as HTML
818
+ Parameters: {"id"=>"5066f201-1e08-4989-85d1-d77be45f63a7"}
819
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "5066f201-1e08-4989-85d1-d77be45f63a7"]]
820
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (4.4ms)
821
+ Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.4ms)
822
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
823
+  (6.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
824
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
825
+  (2.2ms) ROLLBACK
826
+  (0.1ms) BEGIN
827
+ -----------------------------------------------------------------------------
828
+ PushType::NodesController::POST #create::with valid node: test_0001_anonymous
829
+ -----------------------------------------------------------------------------
830
+ Processing by PushType::NodesController#create as HTML
831
+ Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-24"}}
832
+  (0.2ms) SAVEPOINT active_record_1
833
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-24' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
834
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:27.095091"], ["slug", "foo-bar-24"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.095091"]]
835
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf71ea667052d1900c5ccf23c65a3e1c4
836
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8323e17c-5013-441a-bc09-d78b215e29fb"], ["descendant_id", "8323e17c-5013-441a-bc09-d78b215e29fb"], ["generations", 0]]
837
+  (0.5ms) UPDATE "push_type_nodes"
838
+ SET "sort_order" = t.seq + -1
839
+ FROM (
840
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
841
+ FROM "push_type_nodes"
842
+ WHERE "parent_id" IS NULL
843
+ ) AS t
844
+ WHERE "push_type_nodes"."id" = t.id
845
+
846
+ Page Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8323e17c-5013-441a-bc09-d78b215e29fb"]]
847
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8323e17c-5013-441a-bc09-d78b215e29fb"]]
848
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t15a0a96c8b2a42865319c2ddd285f652
849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
850
+ Redirected to http://test.host/push_type/nodes
851
+ Completed 302 Found in 14ms (ActiveRecord: 3.5ms)
852
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
853
+  (6.2ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
854
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
855
+  (2.2ms) ROLLBACK
856
+  (0.1ms) BEGIN
857
+ -----------------------------------------------------------------------------
858
+ PushType::NodesController::POST #create::with valid node: test_0002_anonymous
859
+ -----------------------------------------------------------------------------
860
+ Processing by PushType::NodesController#create as HTML
861
+ Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-25"}}
862
+  (0.2ms) SAVEPOINT active_record_1
863
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-25' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
864
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:27.124826"], ["slug", "foo-bar-25"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.124826"]]
865
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS td7b0ff15efa74f01a17b651b66c99565
866
+ SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"], ["descendant_id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"], ["generations", 0]]
867
+  (0.5ms) UPDATE "push_type_nodes"
868
+ SET "sort_order" = t.seq + -1
869
+ FROM (
870
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
871
+ FROM "push_type_nodes"
872
+ WHERE "parent_id" IS NULL
873
+ ) AS t
874
+ WHERE "push_type_nodes"."id" = t.id
875
+ 
876
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"]]
877
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9e9092d7-dc41-495f-be66-4eb65027eb1a"]]
878
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t17362d99af2a94b4d9886b71a9b019ad
879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
880
+ Redirected to http://test.host/push_type/nodes
881
+ Completed 302 Found in 14ms (ActiveRecord: 3.9ms)
882
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
883
+  (6.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
884
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
885
+  (2.0ms) ROLLBACK
886
+  (0.1ms) BEGIN
887
+ --------------------------------------------------------------------------------
888
+ PushType::NodesController::POST #create::with in-valid node: test_0001_anonymous
889
+ --------------------------------------------------------------------------------
890
+ Processing by PushType::NodesController#create as HTML
891
+ Parameters: {"kind"=>"page", "page"=>{}}
892
+  (0.1ms) SAVEPOINT active_record_1
893
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
894
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
895
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (2.2ms)
896
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (28.6ms)
897
+ Completed 200 OK in 43ms (Views: 37.0ms | ActiveRecord: 0.7ms)
898
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
899
+  (7.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
900
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
901
+  (2.3ms) ROLLBACK
902
+  (0.1ms) BEGIN
903
+ --------------------------------------------------------------------------------
904
+ PushType::NodesController::POST #create::with in-valid node: test_0002_anonymous
905
+ --------------------------------------------------------------------------------
906
+ Processing by PushType::NodesController#create as HTML
907
+ Parameters: {"kind"=>"page", "page"=>{}}
908
+  (0.2ms) SAVEPOINT active_record_1
909
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
910
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
911
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.1ms)
912
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (13.0ms)
913
+ Completed 200 OK in 25ms (Views: 18.2ms | ActiveRecord: 0.9ms)
914
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
915
+  (5.6ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
916
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
917
+  (2.2ms) ROLLBACK
918
+  (0.1ms) BEGIN
919
+ -------------------------------------------------------------------------------
920
+ PushType::AssetsController::POST #create::with valid asset: test_0001_anonymous
921
+ -------------------------------------------------------------------------------
922
+ Processing by PushType::AssetsController#create as HTML
923
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc0f4924f98 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/l2/6_1m4pbj3tn6b5bvxd9mm7bh0000gn/T/image.png20141205-50606-d5n438>>}}
924
+  (0.2ms) SAVEPOINT active_record_1
925
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.259320"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.259320"]]
926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
927
+ Redirected to http://test.host/push_type/media
928
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
929
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
930
+  (6.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
931
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
932
+  (2.2ms) ROLLBACK
933
+  (0.2ms) BEGIN
934
+ -------------------------------------------------------------------------------
935
+ PushType::AssetsController::POST #create::with valid asset: test_0002_anonymous
936
+ -------------------------------------------------------------------------------
937
+ Processing by PushType::AssetsController#create as HTML
938
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc0f8f02650 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/l2/6_1m4pbj3tn6b5bvxd9mm7bh0000gn/T/image.png20141205-50606-15q6kql>>}}
939
+  (0.1ms) SAVEPOINT active_record_1
940
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.280475"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.280475"]]
941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
942
+ Redirected to http://test.host/push_type/media
943
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
944
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
945
+  (6.8ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
946
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
947
+  (2.1ms) ROLLBACK
948
+  (0.2ms) BEGIN
949
+ ----------------------------------------------------------------------------
950
+ PushType::UsersController::PUT #update::with valid user: test_0001_anonymous
951
+ ----------------------------------------------------------------------------
952
+  (0.2ms) SAVEPOINT active_record_1
953
+ PushType::User Exists (0.7ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
954
+ SQL (0.4ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.302727"], ["email", "joe-3@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.302727"]]
955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
956
+ Processing by PushType::UsersController#update as HTML
957
+ Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"d4e1a183-f666-45f7-b254-30f9c3c67b6f"}
958
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "d4e1a183-f666-45f7-b254-30f9c3c67b6f"]]
959
+  (0.2ms) SAVEPOINT active_record_1
960
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != 'd4e1a183-f666-45f7-b254-30f9c3c67b6f') LIMIT 1
961
+ SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = 'd4e1a183-f666-45f7-b254-30f9c3c67b6f' [["name", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.310845"]]
962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
963
+ Redirected to http://test.host/push_type/users
964
+ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)
965
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
966
+  (5.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
967
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
968
+  (2.1ms) ROLLBACK
969
+  (0.2ms) BEGIN
970
+ ----------------------------------------------------------------------------
971
+ PushType::UsersController::PUT #update::with valid user: test_0002_anonymous
972
+ ----------------------------------------------------------------------------
973
+  (0.2ms) SAVEPOINT active_record_1
974
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
975
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.328470"], ["email", "joe-4@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.328470"]]
976
+  (0.2ms) RELEASE SAVEPOINT active_record_1
977
+ Processing by PushType::UsersController#update as HTML
978
+ Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"8ea48298-bbb2-4eac-8d29-a9a0e84b0d50"}
979
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "8ea48298-bbb2-4eac-8d29-a9a0e84b0d50"]]
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != '8ea48298-bbb2-4eac-8d29-a9a0e84b0d50') LIMIT 1
982
+ SQL (0.3ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = '8ea48298-bbb2-4eac-8d29-a9a0e84b0d50' [["name", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.336537"]]
983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
984
+ Redirected to http://test.host/push_type/users
985
+ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)
986
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
987
+  (5.5ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
988
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
989
+  (2.1ms) ROLLBACK
990
+  (0.2ms) BEGIN
991
+ ----------------------------------------------------------------------------
992
+ PushType::UsersController::PUT #update::with valid user: test_0003_anonymous
993
+ ----------------------------------------------------------------------------
994
+  (0.2ms) SAVEPOINT active_record_1
995
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
996
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.354678"], ["email", "joe-5@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.354678"]]
997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
998
+ Processing by PushType::UsersController#update as HTML
999
+ Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"8fed6949-70c9-459e-97bd-7fe11f31a22c"}
1000
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "8fed6949-70c9-459e-97bd-7fe11f31a22c"]]
1001
+  (0.1ms) SAVEPOINT active_record_1
1002
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-5@example.com' AND "push_type_users"."id" != '8fed6949-70c9-459e-97bd-7fe11f31a22c') LIMIT 1
1003
+ SQL (0.3ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = '8fed6949-70c9-459e-97bd-7fe11f31a22c' [["name", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.359840"]]
1004
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1005
+ Redirected to http://test.host/push_type/users
1006
+ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
1007
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "8fed6949-70c9-459e-97bd-7fe11f31a22c"]]
1008
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1009
+  (6.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1010
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1011
+  (2.1ms) ROLLBACK
1012
+  (0.2ms) BEGIN
1013
+ ---------------------------------------------------------
1014
+ PushType::NodesController::GET #edit: test_0001_anonymous
1015
+ ---------------------------------------------------------
1016
+  (0.2ms) SAVEPOINT active_record_1
1017
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-26' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1018
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:27.382265"], ["slug", "foo-bar-26"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.382265"]]
1019
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t92a918d0963071328bb2ef64ec411e58
1020
+ SQL (0.5ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"], ["descendant_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"], ["generations", 0]]
1021
+  (0.7ms) UPDATE "push_type_nodes"
1022
+ SET "sort_order" = t.seq + -1
1023
+ FROM (
1024
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1025
+ FROM "push_type_nodes"
1026
+ WHERE "parent_id" IS NULL
1027
+ ) AS t
1028
+ WHERE "push_type_nodes"."id" = t.id
1029
+ 
1030
+ Page Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
1031
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
1032
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tb5a549b92568aa0f572cc479adfb0e77
1033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1034
+ Processing by PushType::NodesController#edit as HTML
1035
+ Parameters: {"id"=>"4a51f930-6d9f-417c-b907-7c16f8d62a39"}
1036
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
1037
+ PushType::Node Load (0.6ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '4a51f930-6d9f-417c-b907-7c16f8d62a39') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "4a51f930-6d9f-417c-b907-7c16f8d62a39"]]
1038
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
1039
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (14.2ms)
1040
+ Completed 200 OK in 33ms (Views: 30.4ms | ActiveRecord: 0.9ms)
1041
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1042
+  (7.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1043
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1044
+  (2.2ms) ROLLBACK
1045
+  (0.2ms) BEGIN
1046
+ ---------------------------------------------------------
1047
+ PushType::NodesController::GET #edit: test_0002_anonymous
1048
+ ---------------------------------------------------------
1049
+  (0.2ms) SAVEPOINT active_record_1
1050
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-27' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1051
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:27.446153"], ["slug", "foo-bar-27"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:27.446153"]]
1052
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS te6cca5b7634f7fb5ceedf2fd33833d1a
1053
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "49b105f1-c807-4618-9464-1fff731a8d5b"], ["descendant_id", "49b105f1-c807-4618-9464-1fff731a8d5b"], ["generations", 0]]
1054
+  (0.4ms) UPDATE "push_type_nodes"
1055
+ SET "sort_order" = t.seq + -1
1056
+ FROM (
1057
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1058
+ FROM "push_type_nodes"
1059
+ WHERE "parent_id" IS NULL
1060
+ ) AS t
1061
+ WHERE "push_type_nodes"."id" = t.id
1062
+
1063
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
1064
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
1065
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t05e6963783f70c941abd07a67b99a79c
1066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1067
+ Processing by PushType::NodesController#edit as HTML
1068
+ Parameters: {"id"=>"49b105f1-c807-4618-9464-1fff731a8d5b"}
1069
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
1070
+ PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '49b105f1-c807-4618-9464-1fff731a8d5b') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "49b105f1-c807-4618-9464-1fff731a8d5b"]]
1071
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
1072
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (15.9ms)
1073
+ Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.9ms)
1074
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1075
+  (8.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1076
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1077
+  (2.1ms) ROLLBACK
1078
+  (0.1ms) BEGIN
1079
+ ----------------------------------------------------------
1080
+ PushType::NodesController::GET #index: test_0001_anonymous
1081
+ ----------------------------------------------------------
1082
+  (0.2ms) SAVEPOINT active_record_1
1083
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-28' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1084
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.501681"], ["slug", "foo-bar-28"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.501681"]]
1085
+  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2d9a2a7bfee6a18c16008db1f9e163d1
1086
+ SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"], ["descendant_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"], ["generations", 0]]
1087
+  (0.5ms) UPDATE "push_type_nodes"
1088
+ SET "sort_order" = t.seq + -1
1089
+ FROM (
1090
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1091
+ FROM "push_type_nodes"
1092
+ WHERE "parent_id" IS NULL
1093
+ ) AS t
1094
+ WHERE "push_type_nodes"."id" = t.id
1095
+ 
1096
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"]]
1097
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"]]
1098
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t1803573d17e8f077a8c2e8d37f45d0b9
1099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1100
+  (0.1ms) SAVEPOINT active_record_1
1101
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-29' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1102
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.512728"], ["slug", "foo-bar-29"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.512728"]]
1103
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t191c4b8f56ddd26dce431a50585b4302
1104
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"], ["descendant_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"], ["generations", 0]]
1105
+  (0.4ms) UPDATE "push_type_nodes"
1106
+ SET "sort_order" = t.seq + -1
1107
+ FROM (
1108
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1109
+ FROM "push_type_nodes"
1110
+ WHERE "parent_id" IS NULL
1111
+ ) AS t
1112
+ WHERE "push_type_nodes"."id" = t.id
1113
+ 
1114
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"]]
1115
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"]]
1116
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t5b66e9b1fa929ed93ba7b79906c1e630
1117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1118
+  (0.1ms) SAVEPOINT active_record_1
1119
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-30' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1120
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.520784"], ["slug", "foo-bar-30"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.520784"]]
1121
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9965bd6319b0bce28ec32448b6e7050a
1122
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"], ["descendant_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"], ["generations", 0]]
1123
+  (0.9ms) UPDATE "push_type_nodes"
1124
+ SET "sort_order" = t.seq + -1
1125
+ FROM (
1126
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1127
+ FROM "push_type_nodes"
1128
+ WHERE "parent_id" IS NULL
1129
+ ) AS t
1130
+ WHERE "push_type_nodes"."id" = t.id
1131
+ 
1132
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"]]
1133
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"]]
1134
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t09b533d27842f842f16b5ffddb3206f4
1135
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1136
+  (0.2ms) SAVEPOINT active_record_1
1137
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-31' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1138
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.531972"], ["slug", "foo-bar-31"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.531972"]]
1139
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4ff93c12a6ba9800ccd0a8f793df5ff5
1140
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8738c630-fedd-4ae1-b16e-b358921d791a"], ["descendant_id", "8738c630-fedd-4ae1-b16e-b358921d791a"], ["generations", 0]]
1141
+  (0.4ms) UPDATE "push_type_nodes"
1142
+ SET "sort_order" = t.seq + -1
1143
+ FROM (
1144
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1145
+ FROM "push_type_nodes"
1146
+ WHERE "parent_id" IS NULL
1147
+ ) AS t
1148
+ WHERE "push_type_nodes"."id" = t.id
1149
+ 
1150
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8738c630-fedd-4ae1-b16e-b358921d791a"]]
1151
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8738c630-fedd-4ae1-b16e-b358921d791a"]]
1152
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t30ce127f5565b424c54b639628d3f67f
1153
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1154
+  (0.1ms) SAVEPOINT active_record_1
1155
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-32' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1156
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.540828"], ["slug", "foo-bar-32"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.540828"]]
1157
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t806b1991edb970e7ce11c75be44f285b
1158
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"], ["descendant_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"], ["generations", 0]]
1159
+  (0.5ms) UPDATE "push_type_nodes"
1160
+ SET "sort_order" = t.seq + -1
1161
+ FROM (
1162
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1163
+ FROM "push_type_nodes"
1164
+ WHERE "parent_id" IS NULL
1165
+ ) AS t
1166
+ WHERE "push_type_nodes"."id" = t.id
1167
+ 
1168
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"]]
1169
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"]]
1170
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t0b483ee29e577b28b35087b48d541153
1171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1172
+ Processing by PushType::NodesController#index as HTML
1173
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1174
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1175
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
1176
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "cce96cf1-41f4-49a7-b726-69f3fa445ab1"]]
1177
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8beb7b30-9ca2-422f-8643-cc3b40a8d823"]]
1178
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "57f2b77e-fd5b-4b4d-95e7-212e6bc4b312"]]
1179
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8738c630-fedd-4ae1-b16e-b358921d791a"]]
1180
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "d10cb890-8e0f-460e-a02b-62e7eaec838d"]]
1181
+  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
1182
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.5ms)
1183
+ Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 2.6ms)
1184
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1185
+  (5.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1186
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1187
+  (2.1ms) ROLLBACK
1188
+  (0.2ms) BEGIN
1189
+ ----------------------------------------------------------
1190
+ PushType::NodesController::GET #index: test_0002_anonymous
1191
+ ----------------------------------------------------------
1192
+  (0.2ms) SAVEPOINT active_record_1
1193
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-33' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1194
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.588275"], ["slug", "foo-bar-33"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.588275"]]
1195
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc479aa6aceb13a98c3cd0cce12296107
1196
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"], ["descendant_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"], ["generations", 0]]
1197
+  (0.4ms) UPDATE "push_type_nodes"
1198
+ SET "sort_order" = t.seq + -1
1199
+ FROM (
1200
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1201
+ FROM "push_type_nodes"
1202
+ WHERE "parent_id" IS NULL
1203
+ ) AS t
1204
+ WHERE "push_type_nodes"."id" = t.id
1205
+ 
1206
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "18ebb917-c702-47e2-8766-59bf02e08d0d"]]
1207
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"]]
1208
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tad03b951541f16170ce0da2ccc784749
1209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1210
+  (0.1ms) SAVEPOINT active_record_1
1211
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-34' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1212
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.596999"], ["slug", "foo-bar-34"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.596999"]]
1213
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t51c0ce63260ccbdd4d7b49af0bffe457
1214
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"], ["descendant_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"], ["generations", 0]]
1215
+  (0.9ms) UPDATE "push_type_nodes"
1216
+ SET "sort_order" = t.seq + -1
1217
+ FROM (
1218
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1219
+ FROM "push_type_nodes"
1220
+ WHERE "parent_id" IS NULL
1221
+ ) AS t
1222
+ WHERE "push_type_nodes"."id" = t.id
1223
+ 
1224
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "2365e7df-3251-4b47-bd14-3402c3b375a7"]]
1225
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"]]
1226
+  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS tf0c7b7afa30131775179b74003cbe782
1227
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1228
+  (0.1ms) SAVEPOINT active_record_1
1229
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-35' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1230
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.608133"], ["slug", "foo-bar-35"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.608133"]]
1231
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc713bebb2df893ceddd4bbcca297963a
1232
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "95130f50-c364-4f6c-9228-6be907b2d80e"], ["descendant_id", "95130f50-c364-4f6c-9228-6be907b2d80e"], ["generations", 0]]
1233
+  (0.6ms) UPDATE "push_type_nodes"
1234
+ SET "sort_order" = t.seq + -1
1235
+ FROM (
1236
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1237
+ FROM "push_type_nodes"
1238
+ WHERE "parent_id" IS NULL
1239
+ ) AS t
1240
+ WHERE "push_type_nodes"."id" = t.id
1241
+ 
1242
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "95130f50-c364-4f6c-9228-6be907b2d80e"]]
1243
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "95130f50-c364-4f6c-9228-6be907b2d80e"]]
1244
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tc3e9cb0b8e80bfa3a82f2933d4fd8a1f
1245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1246
+  (0.1ms) SAVEPOINT active_record_1
1247
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-36' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1248
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.618671"], ["slug", "foo-bar-36"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.618671"]]
1249
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t28d31b26146cb00e6cff49e854961ee1
1250
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0c417370-0ff7-4412-9e51-07318a88f694"], ["descendant_id", "0c417370-0ff7-4412-9e51-07318a88f694"], ["generations", 0]]
1251
+  (0.4ms) UPDATE "push_type_nodes"
1252
+ SET "sort_order" = t.seq + -1
1253
+ FROM (
1254
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1255
+ FROM "push_type_nodes"
1256
+ WHERE "parent_id" IS NULL
1257
+ ) AS t
1258
+ WHERE "push_type_nodes"."id" = t.id
1259
+ 
1260
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "0c417370-0ff7-4412-9e51-07318a88f694"]]
1261
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0c417370-0ff7-4412-9e51-07318a88f694"]]
1262
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t90c8a462d73f0d4550069abc46e3e48b
1263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1264
+  (0.1ms) SAVEPOINT active_record_1
1265
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-37' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1266
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:27.627848"], ["slug", "foo-bar-37"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:27.627848"]]
1267
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS ted955cd3c03bc580d1799e77bb3e2719
1268
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"], ["descendant_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"], ["generations", 0]]
1269
+  (0.5ms) UPDATE "push_type_nodes"
1270
+ SET "sort_order" = t.seq + -1
1271
+ FROM (
1272
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1273
+ FROM "push_type_nodes"
1274
+ WHERE "parent_id" IS NULL
1275
+ ) AS t
1276
+ WHERE "push_type_nodes"."id" = t.id
1277
+ 
1278
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"]]
1279
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"]]
1280
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t821bad8ae4e9af7d42db42ca5bab4fb2
1281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1282
+ Processing by PushType::NodesController#index as HTML
1283
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1284
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1285
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
1286
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "18ebb917-c702-47e2-8766-59bf02e08d0d"]]
1287
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2365e7df-3251-4b47-bd14-3402c3b375a7"]]
1288
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "95130f50-c364-4f6c-9228-6be907b2d80e"]]
1289
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0c417370-0ff7-4412-9e51-07318a88f694"]]
1290
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "76bdbb32-0e7a-42c8-8fdf-0267df05e1d0"]]
1291
+  (0.5ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
1292
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.6ms)
1293
+ Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.9ms)
1294
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1295
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1296
+  (8.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1297
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1298
+  (2.3ms) ROLLBACK
1299
+  (0.1ms) BEGIN
1300
+ --------------------------------------------------------------------------
1301
+ PushType::AssetsHelper::#asset_icon::with video asset: test_0001_anonymous
1302
+ --------------------------------------------------------------------------
1303
+  (0.2ms) SAVEPOINT active_record_1
1304
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.686497"], ["file_ext", "mp4"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "6"], ["mime_type", "video/mp4"], ["updated_at", "2014-12-05 21:35:27.686497"]]
1305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1306
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1307
+  (5.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1308
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1309
+  (2.0ms) ROLLBACK
1310
+  (0.2ms) BEGIN
1311
+ --------------------------------------------------------------------------------
1312
+ PushType::UsersController::POST #create::with in-valid user: test_0001_anonymous
1313
+ --------------------------------------------------------------------------------
1314
+ Processing by PushType::UsersController#create as HTML
1315
+ Parameters: {"user"=>{}}
1316
+  (0.2ms) SAVEPOINT active_record_1
1317
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1
1318
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1319
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
1320
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.9ms)
1321
+ Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.9ms)
1322
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1323
+  (6.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1324
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1325
+  (1.7ms) ROLLBACK
1326
+  (0.2ms) BEGIN
1327
+ --------------------------------------------------------------------------------
1328
+ PushType::UsersController::POST #create::with in-valid user: test_0002_anonymous
1329
+ --------------------------------------------------------------------------------
1330
+ Processing by PushType::UsersController#create as HTML
1331
+ Parameters: {"user"=>{}}
1332
+  (0.2ms) SAVEPOINT active_record_1
1333
+ PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1
1334
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1335
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
1336
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.3ms)
1337
+ Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.8ms)
1338
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1339
+  (5.5ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1340
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1341
+  (2.1ms) ROLLBACK
1342
+  (0.2ms) BEGIN
1343
+ --------------------------------------------------------------------------
1344
+ PushType::AssetsController::POST #create::asset count: test_0001_anonymous
1345
+ --------------------------------------------------------------------------
1346
+  (0.6ms) SELECT COUNT(*) FROM "push_type_assets"
1347
+ Processing by PushType::AssetsController#create as HTML
1348
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc0fb4c7610 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/l2/6_1m4pbj3tn6b5bvxd9mm7bh0000gn/T/image.png20141205-50606-1dy56no>>}}
1349
+  (0.2ms) SAVEPOINT active_record_1
1350
+ SQL (0.4ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.762610"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.762610"]]
1351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1352
+ Redirected to http://test.host/push_type/media
1353
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
1354
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
1355
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1356
+  (7.6ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1357
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1358
+  (2.0ms) ROLLBACK
1359
+  (0.1ms) BEGIN
1360
+ ---------------------------------------------------------
1361
+ PushType::UsersController::GET #edit: test_0001_anonymous
1362
+ ---------------------------------------------------------
1363
+  (0.2ms) SAVEPOINT active_record_1
1364
+ PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
1365
+ SQL (0.4ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.784927"], ["email", "joe-6@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.784927"]]
1366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1367
+ Processing by PushType::UsersController#edit as HTML
1368
+ Parameters: {"id"=>"3cb24305-4ccc-4daa-b837-763d67647501"}
1369
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "3cb24305-4ccc-4daa-b837-763d67647501"]]
1370
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
1371
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (3.2ms)
1372
+ Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
1373
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1374
+  (6.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1375
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1376
+  (2.2ms) ROLLBACK
1377
+  (0.1ms) BEGIN
1378
+ ---------------------------------------------------------
1379
+ PushType::UsersController::GET #edit: test_0002_anonymous
1380
+ ---------------------------------------------------------
1381
+  (0.2ms) SAVEPOINT active_record_1
1382
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
1383
+ SQL (0.6ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.813613"], ["email", "joe-7@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.813613"]]
1384
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1385
+ Processing by PushType::UsersController#edit as HTML
1386
+ Parameters: {"id"=>"54c54ac0-7cb2-462a-a449-7b1741736baa"}
1387
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "54c54ac0-7cb2-462a-a449-7b1741736baa"]]
1388
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms)
1389
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_form.html.haml (2.5ms)
1390
+ Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
1391
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1392
+  (6.2ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1393
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1394
+  (2.2ms) ROLLBACK
1395
+  (0.1ms) BEGIN
1396
+ ----------------------------------------------------------
1397
+ PushType::UsersController::GET #index: test_0001_anonymous
1398
+ ----------------------------------------------------------
1399
+  (0.1ms) SAVEPOINT active_record_1
1400
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
1401
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.841134"], ["email", "joe-8@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.841134"]]
1402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1403
+  (0.1ms) SAVEPOINT active_record_1
1404
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
1405
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.844433"], ["email", "joe-9@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.844433"]]
1406
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1407
+  (0.1ms) SAVEPOINT active_record_1
1408
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
1409
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.847830"], ["email", "joe-10@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.847830"]]
1410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1411
+  (0.1ms) SAVEPOINT active_record_1
1412
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
1413
+ SQL (0.2ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.850810"], ["email", "joe-11@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.850810"]]
1414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1415
+  (0.1ms) SAVEPOINT active_record_1
1416
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
1417
+ SQL (0.2ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.853454"], ["email", "joe-12@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.853454"]]
1418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1419
+ Processing by PushType::UsersController#index as HTML
1420
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count
1421
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" ORDER BY "push_type_users"."name" ASC LIMIT 30 OFFSET 0
1422
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (2.3ms)
1423
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
1424
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.6ms)
1425
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
1426
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.3ms)
1427
+  (0.4ms) SELECT COUNT(*) FROM "push_type_users"
1428
+ Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 1.1ms)
1429
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1430
+  (6.2ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1431
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1432
+  (2.1ms) ROLLBACK
1433
+  (0.1ms) BEGIN
1434
+ ----------------------------------------------------------
1435
+ PushType::UsersController::GET #index: test_0002_anonymous
1436
+ ----------------------------------------------------------
1437
+  (0.2ms) SAVEPOINT active_record_1
1438
+ PushType::User Exists (0.7ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
1439
+ SQL (0.4ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.891515"], ["email", "joe-13@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.891515"]]
1440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1441
+  (0.1ms) SAVEPOINT active_record_1
1442
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1443
+ SQL (0.2ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.894969"], ["email", "joe-14@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.894969"]]
1444
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1445
+  (0.1ms) SAVEPOINT active_record_1
1446
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1447
+ SQL (0.2ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.897895"], ["email", "joe-15@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.897895"]]
1448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1449
+  (0.1ms) SAVEPOINT active_record_1
1450
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1451
+ SQL (0.2ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.900649"], ["email", "joe-16@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.900649"]]
1452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1453
+  (0.1ms) SAVEPOINT active_record_1
1454
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
1455
+ SQL (0.2ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:27.903231"], ["email", "joe-17@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:27.903231"]]
1456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1457
+ Processing by PushType::UsersController#index as HTML
1458
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count
1459
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" ORDER BY "push_type_users"."name" ASC LIMIT 30 OFFSET 0
1460
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.6ms)
1461
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
1462
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
1463
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
1464
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/users/_user.html.haml (0.4ms)
1465
+  (0.3ms) SELECT COUNT(*) FROM "push_type_users"
1466
+ Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 1.1ms)
1467
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count
1468
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1469
+  (6.9ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1470
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1471
+  (2.2ms) ROLLBACK
1472
+  (0.1ms) BEGIN
1473
+ --------------------------------------------------------------------------
1474
+ PushType::AssetsHelper::#asset_icon::with audio asset: test_0001_anonymous
1475
+ --------------------------------------------------------------------------
1476
+  (0.2ms) SAVEPOINT active_record_1
1477
+ SQL (0.7ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.941280"], ["file_ext", "m3u"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "8"], ["mime_type", "audio/x-mpegurl"], ["updated_at", "2014-12-05 21:35:27.941280"]]
1478
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1479
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1480
+  (6.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1481
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1482
+  (1.9ms) ROLLBACK
1483
+  (0.1ms) BEGIN
1484
+ ------------------------------------------------------------------------------
1485
+ PushType::AssetsController::PUT #update::with valid asset: test_0001_anonymous
1486
+ ------------------------------------------------------------------------------
1487
+  (0.2ms) SAVEPOINT active_record_1
1488
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.961577"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.961577"]]
1489
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1490
+ Processing by PushType::AssetsController#update as HTML
1491
+ Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"7ec0888c-6938-4d4c-a3bb-a74105796e00"}
1492
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "7ec0888c-6938-4d4c-a3bb-a74105796e00"]]
1493
+  (0.1ms) SAVEPOINT active_record_1
1494
+ SQL (0.3ms) UPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '7ec0888c-6938-4d4c-a3bb-a74105796e00' [["description", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.967553"]]
1495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1496
+ Redirected to http://test.host/push_type/media
1497
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1498
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1499
+  (5.9ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1500
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1501
+  (2.2ms) ROLLBACK
1502
+  (0.2ms) BEGIN
1503
+ ------------------------------------------------------------------------------
1504
+ PushType::AssetsController::PUT #update::with valid asset: test_0002_anonymous
1505
+ ------------------------------------------------------------------------------
1506
+  (0.2ms) SAVEPOINT active_record_1
1507
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:27.985494"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:27.985494"]]
1508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1509
+ Processing by PushType::AssetsController#update as HTML
1510
+ Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"71e9334d-acad-4c83-9863-628da0de2333"}
1511
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "71e9334d-acad-4c83-9863-628da0de2333"]]
1512
+  (0.2ms) SAVEPOINT active_record_1
1513
+ SQL (0.4ms) UPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '71e9334d-acad-4c83-9863-628da0de2333' [["description", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:27.991359"]]
1514
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1515
+ Redirected to http://test.host/push_type/media
1516
+ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
1517
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1518
+  (5.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1519
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1520
+  (1.9ms) ROLLBACK
1521
+  (0.2ms) BEGIN
1522
+ ------------------------------------------------------------------------------
1523
+ PushType::AssetsController::PUT #update::with valid asset: test_0003_anonymous
1524
+ ------------------------------------------------------------------------------
1525
+  (0.2ms) SAVEPOINT active_record_1
1526
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.011057"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.011057"]]
1527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1528
+ Processing by PushType::AssetsController#update as HTML
1529
+ Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"c42f6deb-6cfb-495e-a10c-81be1ebdc936"}
1530
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "c42f6deb-6cfb-495e-a10c-81be1ebdc936"]]
1531
+  (0.1ms) SAVEPOINT active_record_1
1532
+ SQL (0.3ms) UPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = 'c42f6deb-6cfb-495e-a10c-81be1ebdc936' [["description", "Foo bar baz"], ["updated_at", "2014-12-05 21:35:28.017324"]]
1533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1534
+ Redirected to http://test.host/push_type/media
1535
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1536
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 LIMIT 1 [["id", "c42f6deb-6cfb-495e-a10c-81be1ebdc936"]]
1537
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1538
+  (8.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1539
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1540
+  (2.1ms) ROLLBACK
1541
+  (0.2ms) BEGIN
1542
+ -----------------------------------------------------------------------------
1543
+ PushType::UsersController::POST #create::with valid user: test_0001_anonymous
1544
+ -----------------------------------------------------------------------------
1545
+ Processing by PushType::UsersController#create as HTML
1546
+ Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-18@example.com"}}
1547
+  (0.2ms) SAVEPOINT active_record_1
1548
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
1549
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:28.045098"], ["email", "joe-18@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.045098"]]
1550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1551
+ Redirected to http://test.host/push_type/users
1552
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
1553
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1554
+  (6.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1555
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1556
+  (1.9ms) ROLLBACK
1557
+  (0.1ms) BEGIN
1558
+ -----------------------------------------------------------------------------
1559
+ PushType::UsersController::POST #create::with valid user: test_0002_anonymous
1560
+ -----------------------------------------------------------------------------
1561
+ Processing by PushType::UsersController#create as HTML
1562
+ Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-19@example.com"}}
1563
+  (0.2ms) SAVEPOINT active_record_1
1564
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
1565
+ SQL (0.5ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:28.065525"], ["email", "joe-19@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.065525"]]
1566
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1567
+ Redirected to http://test.host/push_type/users
1568
+ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
1569
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1570
+  (6.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1571
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1572
+  (2.3ms) ROLLBACK
1573
+  (0.2ms) BEGIN
1574
+ ----------------------------------------------------------------
1575
+ PushType::AssetsController::DELETE #destroy: test_0001_anonymous
1576
+ ----------------------------------------------------------------
1577
+  (0.2ms) SAVEPOINT active_record_1
1578
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.085925"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.085925"]]
1579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1580
+ Processing by PushType::AssetsController#destroy as HTML
1581
+ Parameters: {"id"=>"4b6f8de2-8550-4421-b930-ebf15943f326"}
1582
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "4b6f8de2-8550-4421-b930-ebf15943f326"]]
1583
+  (0.2ms) SAVEPOINT active_record_1
1584
+ SQL (0.3ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '4b6f8de2-8550-4421-b930-ebf15943f326' [["deleted_at", "2014-12-05 21:35:28.090468"], ["updated_at", "2014-12-05 21:35:28.091279"]]
1585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1586
+ Redirected to http://test.host/push_type/media
1587
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
1588
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1589
+  (5.6ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1590
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1591
+  (2.1ms) ROLLBACK
1592
+  (0.1ms) BEGIN
1593
+ ----------------------------------------------------------------
1594
+ PushType::AssetsController::DELETE #destroy: test_0002_anonymous
1595
+ ----------------------------------------------------------------
1596
+  (0.2ms) SAVEPOINT active_record_1
1597
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.110146"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.110146"]]
1598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1599
+ Processing by PushType::AssetsController#destroy as HTML
1600
+ Parameters: {"id"=>"e4d764ca-8e53-445b-88a4-14cda0376968"}
1601
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "e4d764ca-8e53-445b-88a4-14cda0376968"]]
1602
+  (0.1ms) SAVEPOINT active_record_1
1603
+ SQL (0.3ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = 'e4d764ca-8e53-445b-88a4-14cda0376968' [["deleted_at", "2014-12-05 21:35:28.114561"], ["updated_at", "2014-12-05 21:35:28.115080"]]
1604
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1605
+ Redirected to http://test.host/push_type/media
1606
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
1607
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1608
+  (6.2ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1609
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1610
+  (2.0ms) ROLLBACK
1611
+  (0.2ms) BEGIN
1612
+ ----------------------------------------------------------------
1613
+ PushType::AssetsController::DELETE #destroy: test_0003_anonymous
1614
+ ----------------------------------------------------------------
1615
+  (0.2ms) SAVEPOINT active_record_1
1616
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.134386"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.134386"]]
1617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1618
+ Processing by PushType::AssetsController#destroy as HTML
1619
+ Parameters: {"id"=>"16b3bad2-9361-4969-8149-9f675faf7fa8"}
1620
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "16b3bad2-9361-4969-8149-9f675faf7fa8"]]
1621
+  (0.1ms) SAVEPOINT active_record_1
1622
+ SQL (0.3ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = '16b3bad2-9361-4969-8149-9f675faf7fa8' [["deleted_at", "2014-12-05 21:35:28.139584"], ["updated_at", "2014-12-05 21:35:28.140151"]]
1623
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1624
+ Redirected to http://test.host/push_type/media
1625
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
1626
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 LIMIT 1 [["id", "16b3bad2-9361-4969-8149-9f675faf7fa8"]]
1627
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1628
+  (6.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1629
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1630
+  (2.1ms) ROLLBACK
1631
+  (0.2ms) BEGIN
1632
+ -------------------------------------------------------------------------------
1633
+ PushType::NodesController::PUT #update::with in-valid node: test_0001_anonymous
1634
+ -------------------------------------------------------------------------------
1635
+  (0.1ms) SAVEPOINT active_record_1
1636
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-38' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1637
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.162892"], ["slug", "foo-bar-38"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.162892"]]
1638
+  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4724bbd77d4a151dfe68549e62c1dc95
1639
+ SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"], ["descendant_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"], ["generations", 0]]
1640
+  (0.6ms) UPDATE "push_type_nodes"
1641
+ SET "sort_order" = t.seq + -1
1642
+ FROM (
1643
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1644
+ FROM "push_type_nodes"
1645
+ WHERE "parent_id" IS NULL
1646
+ ) AS t
1647
+ WHERE "push_type_nodes"."id" = t.id
1648
+ 
1649
+ Page Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
1650
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
1651
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tf1f537cdd72603e7fb9271c2ad7f12f2
1652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1653
+ Processing by PushType::NodesController#update as HTML
1654
+ Parameters: {"page"=>{"title"=>""}, "id"=>"4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"}
1655
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
1656
+  (0.2ms) SAVEPOINT active_record_1
1657
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-38' AND "push_type_nodes"."id" != '4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1658
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1659
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "4cb16cf6-db6a-4c83-8d9b-7be89abbe0ad"]]
1660
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
1661
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (12.5ms)
1662
+ Completed 200 OK in 25ms (Views: 17.9ms | ActiveRecord: 1.6ms)
1663
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1664
+  (6.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1665
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1666
+  (2.2ms) ROLLBACK
1667
+  (0.2ms) BEGIN
1668
+ -------------------------------------------------------------------------------
1669
+ PushType::NodesController::PUT #update::with in-valid node: test_0002_anonymous
1670
+ -------------------------------------------------------------------------------
1671
+  (0.2ms) SAVEPOINT active_record_1
1672
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-39' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1673
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.217660"], ["slug", "foo-bar-39"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.217660"]]
1674
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3a4ad39b850b51e6ac90f9da5846dd15
1675
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3b345baa-f211-4f95-8435-08bb728d381c"], ["descendant_id", "3b345baa-f211-4f95-8435-08bb728d381c"], ["generations", 0]]
1676
+  (0.9ms) UPDATE "push_type_nodes"
1677
+ SET "sort_order" = t.seq + -1
1678
+ FROM (
1679
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1680
+ FROM "push_type_nodes"
1681
+ WHERE "parent_id" IS NULL
1682
+ ) AS t
1683
+ WHERE "push_type_nodes"."id" = t.id
1684
+ 
1685
+ Page Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
1686
+ PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
1687
+  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t98d9c9c7236873ad15f65ce5e0aa6e6d
1688
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1689
+ Processing by PushType::NodesController#update as HTML
1690
+ Parameters: {"page"=>{"title"=>""}, "id"=>"3b345baa-f211-4f95-8435-08bb728d381c"}
1691
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
1692
+  (0.1ms) SAVEPOINT active_record_1
1693
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-39' AND "push_type_nodes"."id" != '3b345baa-f211-4f95-8435-08bb728d381c' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1694
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1695
+ PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '3b345baa-f211-4f95-8435-08bb728d381c') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "3b345baa-f211-4f95-8435-08bb728d381c"]]
1696
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
1697
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (15.5ms)
1698
+ Completed 200 OK in 27ms (Views: 22.1ms | ActiveRecord: 1.5ms)
1699
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1700
+  (6.2ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1701
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1702
+  (2.2ms) ROLLBACK
1703
+  (0.2ms) BEGIN
1704
+ ------------------------------------------------------------------------
1705
+ PushType::NodesController::POST #create::node count: test_0001_anonymous
1706
+ ------------------------------------------------------------------------
1707
+  (0.7ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page')
1708
+ Processing by PushType::NodesController#create as HTML
1709
+ Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-40"}}
1710
+  (0.2ms) SAVEPOINT active_record_1
1711
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-40' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1712
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.280624"], ["slug", "foo-bar-40"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.280624"]]
1713
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta2484a02839a1a39f065d3fefd63673e
1714
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "107e4eda-817c-4736-b0af-454f45004be7"], ["descendant_id", "107e4eda-817c-4736-b0af-454f45004be7"], ["generations", 0]]
1715
+  (0.9ms) UPDATE "push_type_nodes"
1716
+ SET "sort_order" = t.seq + -1
1717
+ FROM (
1718
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1719
+ FROM "push_type_nodes"
1720
+ WHERE "parent_id" IS NULL
1721
+ ) AS t
1722
+ WHERE "push_type_nodes"."id" = t.id
1723
+
1724
+ Page Load (0.6ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "107e4eda-817c-4736-b0af-454f45004be7"]]
1725
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "107e4eda-817c-4736-b0af-454f45004be7"]]
1726
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS td54ec3061dcd778f5aa27638679fa036
1727
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1728
+ Redirected to http://test.host/push_type/nodes
1729
+ Completed 302 Found in 14ms (ActiveRecord: 4.2ms)
1730
+  (0.5ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page')
1731
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1732
+  (6.9ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1733
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1734
+  (2.5ms) ROLLBACK
1735
+  (0.2ms) BEGIN
1736
+ --------------------------------------------------------------------------------------
1737
+ PushType::NodesController::POST #position::without reponsitioning: test_0001_anonymous
1738
+ --------------------------------------------------------------------------------------
1739
+  (0.2ms) SAVEPOINT active_record_1
1740
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-41' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1741
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.314574"], ["slug", "foo-bar-41"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.314574"]]
1742
+  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS t21c7753696fd2ebe90965ca7068ef108
1743
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "85ec16ce-a66d-4aca-90fa-62c087191392"], ["descendant_id", "85ec16ce-a66d-4aca-90fa-62c087191392"], ["generations", 0]]
1744
+  (0.4ms) UPDATE "push_type_nodes"
1745
+ SET "sort_order" = t.seq + -1
1746
+ FROM (
1747
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1748
+ FROM "push_type_nodes"
1749
+ WHERE "parent_id" IS NULL
1750
+ ) AS t
1751
+ WHERE "push_type_nodes"."id" = t.id
1752
+
1753
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "85ec16ce-a66d-4aca-90fa-62c087191392"]]
1754
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "85ec16ce-a66d-4aca-90fa-62c087191392"]]
1755
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t532de0ec8a9e153599e4e8213ed40c79
1756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1757
+  (0.1ms) SAVEPOINT active_record_1
1758
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-42' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1759
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.324283"], ["slug", "foo-bar-42"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.324283"]]
1760
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfa2051a3890b51a507d75211c2c5f8d9
1761
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"], ["descendant_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"], ["generations", 0]]
1762
+  (0.9ms) UPDATE "push_type_nodes"
1763
+ SET "sort_order" = t.seq + -1
1764
+ FROM (
1765
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1766
+ FROM "push_type_nodes"
1767
+ WHERE "parent_id" IS NULL
1768
+ ) AS t
1769
+ WHERE "push_type_nodes"."id" = t.id
1770
+
1771
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e9756094-52c9-4dad-af00-2cc563cf8a14"]]
1772
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"]]
1773
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tcc1b9ba88d028380c869d8ab8ec70201
1774
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1775
+  (0.2ms) SAVEPOINT active_record_1
1776
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-43' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1777
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.335217"], ["slug", "foo-bar-43"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.335217"]]
1778
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t456ba81c2693fd3011f5b63f30b4cd33
1779
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"], ["descendant_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"], ["generations", 0]]
1780
+  (0.4ms) UPDATE "push_type_nodes"
1781
+ SET "sort_order" = t.seq + -1
1782
+ FROM (
1783
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1784
+ FROM "push_type_nodes"
1785
+ WHERE "parent_id" IS NULL
1786
+ ) AS t
1787
+ WHERE "push_type_nodes"."id" = t.id
1788
+
1789
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"]]
1790
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"]]
1791
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t3f376f44734a6aa8280811ac29d74588
1792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1793
+  (0.1ms) SAVEPOINT active_record_1
1794
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-44' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1795
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.344062"], ["slug", "foo-bar-44"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.344062"]]
1796
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9fb485990034b27e33ef30b37fa4861b
1797
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "22863e37-33ad-4203-a5b9-b25add1fa385"], ["descendant_id", "22863e37-33ad-4203-a5b9-b25add1fa385"], ["generations", 0]]
1798
+  (0.5ms) UPDATE "push_type_nodes"
1799
+ SET "sort_order" = t.seq + -1
1800
+ FROM (
1801
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1802
+ FROM "push_type_nodes"
1803
+ WHERE "parent_id" IS NULL
1804
+ ) AS t
1805
+ WHERE "push_type_nodes"."id" = t.id
1806
+
1807
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "22863e37-33ad-4203-a5b9-b25add1fa385"]]
1808
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "22863e37-33ad-4203-a5b9-b25add1fa385"]]
1809
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t82fb7ea1e5f717c4508bf744677605eb
1810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1811
+  (0.1ms) SAVEPOINT active_record_1
1812
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-45' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1813
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.352783"], ["slug", "foo-bar-45"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.352783"]]
1814
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tee745e6d70ab77b485b7fd2bb0f89288
1815
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"], ["descendant_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"], ["generations", 0]]
1816
+  (0.7ms) UPDATE "push_type_nodes"
1817
+ SET "sort_order" = t.seq + -1
1818
+ FROM (
1819
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1820
+ FROM "push_type_nodes"
1821
+ WHERE "parent_id" IS NULL
1822
+ ) AS t
1823
+ WHERE "push_type_nodes"."id" = t.id
1824
+
1825
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"]]
1826
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"]]
1827
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tfb5c60884ebca86f39157abe630d8965
1828
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1829
+ Processing by PushType::NodesController#index as HTML
1830
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1831
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1832
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
1833
+  (0.4ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "85ec16ce-a66d-4aca-90fa-62c087191392"]]
1834
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e9756094-52c9-4dad-af00-2cc563cf8a14"]]
1835
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4974ba6d-be56-4dd3-8ac0-f3a5ea3e4e10"]]
1836
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "22863e37-33ad-4203-a5b9-b25add1fa385"]]
1837
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1bd75473-f86b-4ff4-8432-c2eae516b4d5"]]
1838
+  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
1839
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.5ms)
1840
+ Completed 200 OK in 20ms (Views: 17.0ms | ActiveRecord: 2.4ms)
1841
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0
1842
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1843
+  (8.8ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1844
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1845
+  (2.5ms) ROLLBACK
1846
+  (0.2ms) BEGIN
1847
+ --------------------------------------------------------------------------------------
1848
+ PushType::NodesController::POST #position::without reponsitioning: test_0002_anonymous
1849
+ --------------------------------------------------------------------------------------
1850
+  (0.2ms) SAVEPOINT active_record_1
1851
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-46' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1852
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.404496"], ["slug", "foo-bar-46"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.404496"]]
1853
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbf283f60fc7c86e95146e353daca9779
1854
+ SQL (0.5ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c27b760e-14a7-4202-b567-21a79d625cba"], ["descendant_id", "c27b760e-14a7-4202-b567-21a79d625cba"], ["generations", 0]]
1855
+  (0.4ms) UPDATE "push_type_nodes"
1856
+ SET "sort_order" = t.seq + -1
1857
+ FROM (
1858
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1859
+ FROM "push_type_nodes"
1860
+ WHERE "parent_id" IS NULL
1861
+ ) AS t
1862
+ WHERE "push_type_nodes"."id" = t.id
1863
+ 
1864
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c27b760e-14a7-4202-b567-21a79d625cba"]]
1865
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c27b760e-14a7-4202-b567-21a79d625cba"]]
1866
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t9f6693a500f0d95fc539ba06c98dc446
1867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1868
+  (0.1ms) SAVEPOINT active_record_1
1869
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-47' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1870
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.414796"], ["slug", "foo-bar-47"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.414796"]]
1871
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t51294c80c32d6523648ce757ded9e6a6
1872
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"], ["descendant_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"], ["generations", 0]]
1873
+  (0.4ms) UPDATE "push_type_nodes"
1874
+ SET "sort_order" = t.seq + -1
1875
+ FROM (
1876
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1877
+ FROM "push_type_nodes"
1878
+ WHERE "parent_id" IS NULL
1879
+ ) AS t
1880
+ WHERE "push_type_nodes"."id" = t.id
1881
+ 
1882
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"]]
1883
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"]]
1884
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tdd52288ded7980dff7809dc33f221ac2
1885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1886
+  (0.1ms) SAVEPOINT active_record_1
1887
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-48' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1888
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.423056"], ["slug", "foo-bar-48"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.423056"]]
1889
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t39088769f79c7a665fb829dcbfa6a6e0
1890
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "47d93ba8-5a21-482c-a063-5712c06979d7"], ["descendant_id", "47d93ba8-5a21-482c-a063-5712c06979d7"], ["generations", 0]]
1891
+  (0.5ms) UPDATE "push_type_nodes"
1892
+ SET "sort_order" = t.seq + -1
1893
+ FROM (
1894
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1895
+ FROM "push_type_nodes"
1896
+ WHERE "parent_id" IS NULL
1897
+ ) AS t
1898
+ WHERE "push_type_nodes"."id" = t.id
1899
+ 
1900
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "47d93ba8-5a21-482c-a063-5712c06979d7"]]
1901
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "47d93ba8-5a21-482c-a063-5712c06979d7"]]
1902
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t26d1b495189b84b8506fbde4981a7357
1903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1904
+  (0.1ms) SAVEPOINT active_record_1
1905
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-49' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1906
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.431071"], ["slug", "foo-bar-49"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.431071"]]
1907
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t566d834f93fcf1674a4dfcbe7e401aee
1908
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"], ["descendant_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"], ["generations", 0]]
1909
+  (0.5ms) UPDATE "push_type_nodes"
1910
+ SET "sort_order" = t.seq + -1
1911
+ FROM (
1912
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1913
+ FROM "push_type_nodes"
1914
+ WHERE "parent_id" IS NULL
1915
+ ) AS t
1916
+ WHERE "push_type_nodes"."id" = t.id
1917
+ 
1918
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"]]
1919
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"]]
1920
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS td32cb6c5612800a805256852cfcb7745
1921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1922
+  (0.1ms) SAVEPOINT active_record_1
1923
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-50' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1924
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-05 21:35:28.439784"], ["slug", "foo-bar-50"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2014-12-05 21:35:28.439784"]]
1925
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t38f55b7c3891ee179c0caba45f0095e2
1926
+ SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "225748da-e42e-46e9-8060-323733581998"], ["descendant_id", "225748da-e42e-46e9-8060-323733581998"], ["generations", 0]]
1927
+  (0.6ms) UPDATE "push_type_nodes"
1928
+ SET "sort_order" = t.seq + -1
1929
+ FROM (
1930
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1931
+ FROM "push_type_nodes"
1932
+ WHERE "parent_id" IS NULL
1933
+ ) AS t
1934
+ WHERE "push_type_nodes"."id" = t.id
1935
+ 
1936
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "225748da-e42e-46e9-8060-323733581998"]]
1937
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "225748da-e42e-46e9-8060-323733581998"]]
1938
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t504441af2ac405586ecd4f36341cc94f
1939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1940
+ Processing by PushType::NodesController#index as HTML
1941
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1942
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
1943
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
1944
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c27b760e-14a7-4202-b567-21a79d625cba"]]
1945
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "30294ef6-d3a4-4b1d-ba24-67cf36ea6c64"]]
1946
+  (0.2ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "47d93ba8-5a21-482c-a063-5712c06979d7"]]
1947
+  (0.4ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3e09508a-0d72-4fc0-8a8b-2ac448d95167"]]
1948
+  (0.3ms) SELECT "push_type_nodes"."id" FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "225748da-e42e-46e9-8060-323733581998"]]
1949
+  (0.4ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
1950
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (0.7ms)
1951
+ Completed 200 OK in 23ms (Views: 19.6ms | ActiveRecord: 2.6ms)
1952
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0
1953
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1954
+  (6.8ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1955
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1956
+  (2.2ms) ROLLBACK
1957
+  (0.2ms) BEGIN
1958
+ ---------------------------------------------------------------
1959
+ PushType::UsersController::DELETE #destroy: test_0001_anonymous
1960
+ ---------------------------------------------------------------
1961
+  (0.1ms) SAVEPOINT active_record_1
1962
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
1963
+ SQL (0.4ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:28.490747"], ["email", "joe-20@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.490747"]]
1964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1965
+ Processing by PushType::UsersController#destroy as HTML
1966
+ Parameters: {"id"=>"ae5241b7-4aee-4821-90e6-b9c10b80b3b8"}
1967
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "ae5241b7-4aee-4821-90e6-b9c10b80b3b8"]]
1968
+  (0.1ms) SAVEPOINT active_record_1
1969
+ SQL (0.2ms) DELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1 [["id", "ae5241b7-4aee-4821-90e6-b9c10b80b3b8"]]
1970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1971
+ Redirected to http://test.host/push_type/users
1972
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1973
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1974
+  (6.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1975
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1976
+  (2.2ms) ROLLBACK
1977
+  (0.2ms) BEGIN
1978
+ ---------------------------------------------------------------
1979
+ PushType::UsersController::DELETE #destroy: test_0002_anonymous
1980
+ ---------------------------------------------------------------
1981
+  (0.2ms) SAVEPOINT active_record_1
1982
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
1983
+ SQL (0.5ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:28.514395"], ["email", "joe-21@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.514395"]]
1984
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1985
+ Processing by PushType::UsersController#destroy as HTML
1986
+ Parameters: {"id"=>"ab32cb74-98ea-4b2c-adb0-7f6ea9c6cfa1"}
1987
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "ab32cb74-98ea-4b2c-adb0-7f6ea9c6cfa1"]]
1988
+  (0.2ms) SAVEPOINT active_record_1
1989
+ SQL (0.3ms) DELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1 [["id", "ab32cb74-98ea-4b2c-adb0-7f6ea9c6cfa1"]]
1990
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1991
+ Redirected to http://test.host/push_type/users
1992
+ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
1993
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
1994
+  (6.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
1995
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
1996
+  (2.2ms) ROLLBACK
1997
+  (0.2ms) BEGIN
1998
+ ---------------------------------------------------------------
1999
+ PushType::UsersController::DELETE #destroy: test_0003_anonymous
2000
+ ---------------------------------------------------------------
2001
+  (0.2ms) SAVEPOINT active_record_1
2002
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2003
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:28.537839"], ["email", "joe-22@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:28.537839"]]
2004
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2005
+ Processing by PushType::UsersController#destroy as HTML
2006
+ Parameters: {"id"=>"4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"}
2007
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"]]
2008
+  (0.1ms) SAVEPOINT active_record_1
2009
+ SQL (0.5ms) DELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1 [["id", "4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"]]
2010
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2011
+ Redirected to http://test.host/push_type/users
2012
+ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
2013
+ PushType::User Load (0.6ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "4f70f1ae-90b2-46eb-87fb-33c8c047e1e9"]]
2014
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2015
+  (6.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2016
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2017
+  (2.1ms) ROLLBACK
2018
+  (0.2ms) BEGIN
2019
+ --------------------------------------------------------------------------
2020
+ PushType::AssetsHelper::#asset_icon::with image asset: test_0001_anonymous
2021
+ --------------------------------------------------------------------------
2022
+  (0.1ms) SAVEPOINT active_record_1
2023
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.563666"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.563666"]]
2024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2025
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2026
+  (6.6ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2027
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2028
+  (2.3ms) ROLLBACK
2029
+  (0.2ms) BEGIN
2030
+ ---------------------------------------------------------
2031
+ PushType::AssetsController::GET #new: test_0001_anonymous
2032
+ ---------------------------------------------------------
2033
+ Processing by PushType::AssetsController#new as HTML
2034
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (10.8ms)
2035
+ Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.0ms)
2036
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2037
+  (7.9ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2038
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2039
+  (2.5ms) ROLLBACK
2040
+  (0.2ms) BEGIN
2041
+ ---------------------------------------------------------
2042
+ PushType::AssetsController::GET #new: test_0002_anonymous
2043
+ ---------------------------------------------------------
2044
+ Processing by PushType::AssetsController#new as HTML
2045
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (5.0ms)
2046
+ Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
2047
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2048
+  (6.8ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2049
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2050
+  (2.1ms) ROLLBACK
2051
+  (0.2ms) BEGIN
2052
+ ---------------------------------------------------------
2053
+ PushType::AssetsController::GET #new: test_0003_anonymous
2054
+ ---------------------------------------------------------
2055
+ Processing by PushType::AssetsController#new as HTML
2056
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (4.9ms)
2057
+ Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.0ms)
2058
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2059
+  (6.5ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2060
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2061
+  (2.2ms) ROLLBACK
2062
+  (0.1ms) BEGIN
2063
+ ---------------------------------------------------------------
2064
+ PushType::NodesController::DELETE #destroy: test_0001_anonymous
2065
+ ---------------------------------------------------------------
2066
+  (0.2ms) SAVEPOINT active_record_1
2067
+ PushType::Node Exists (0.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-51' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
2068
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.694803"], ["slug", "foo-bar-51"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.694803"]]
2069
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t55a59fc07b70cba191e1624d72aeb589
2070
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f272770e-892a-4318-8361-256bfcc043d5"], ["descendant_id", "f272770e-892a-4318-8361-256bfcc043d5"], ["generations", 0]]
2071
+  (0.4ms) UPDATE "push_type_nodes"
2072
+ SET "sort_order" = t.seq + -1
2073
+ FROM (
2074
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
2075
+ FROM "push_type_nodes"
2076
+ WHERE "parent_id" IS NULL
2077
+ ) AS t
2078
+ WHERE "push_type_nodes"."id" = t.id
2079
+ 
2080
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f272770e-892a-4318-8361-256bfcc043d5"]]
2081
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "f272770e-892a-4318-8361-256bfcc043d5"]]
2082
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t4bfb20510aed520972a3ba830d443014
2083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2084
+ Processing by PushType::NodesController#destroy as HTML
2085
+ Parameters: {"id"=>"f272770e-892a-4318-8361-256bfcc043d5"}
2086
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f272770e-892a-4318-8361-256bfcc043d5"]]
2087
+  (0.1ms) SAVEPOINT active_record_1
2088
+ SQL (0.5ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = 'f272770e-892a-4318-8361-256bfcc043d5' [["deleted_at", "2014-12-05 21:35:28.707217"], ["updated_at", "2014-12-05 21:35:28.707928"]]
2089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2090
+ Redirected to http://test.host/push_type/nodes
2091
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
2092
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2093
+  (7.6ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2094
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2095
+  (2.2ms) ROLLBACK
2096
+  (0.1ms) BEGIN
2097
+ ---------------------------------------------------------------
2098
+ PushType::NodesController::DELETE #destroy: test_0002_anonymous
2099
+ ---------------------------------------------------------------
2100
+  (0.2ms) SAVEPOINT active_record_1
2101
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-52' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
2102
+ SQL (0.4ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.733740"], ["slug", "foo-bar-52"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.733740"]]
2103
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS te554b465887f13c3e49ad613b856f1f4
2104
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"], ["descendant_id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"], ["generations", 0]]
2105
+  (0.5ms) UPDATE "push_type_nodes"
2106
+ SET "sort_order" = t.seq + -1
2107
+ FROM (
2108
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
2109
+ FROM "push_type_nodes"
2110
+ WHERE "parent_id" IS NULL
2111
+ ) AS t
2112
+ WHERE "push_type_nodes"."id" = t.id
2113
+
2114
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"]]
2115
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"]]
2116
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t4d95b8d544e913bf47923e7e5e32c4d6
2117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2118
+ Processing by PushType::NodesController#destroy as HTML
2119
+ Parameters: {"id"=>"8bb41e30-4596-425e-9ed5-c50198e2da3e"}
2120
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8bb41e30-4596-425e-9ed5-c50198e2da3e"]]
2121
+  (0.1ms) SAVEPOINT active_record_1
2122
+ SQL (0.4ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '8bb41e30-4596-425e-9ed5-c50198e2da3e' [["deleted_at", "2014-12-05 21:35:28.749117"], ["updated_at", "2014-12-05 21:35:28.749677"]]
2123
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2124
+ Redirected to http://test.host/push_type/nodes
2125
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
2126
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2127
+  (8.2ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2128
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2129
+  (2.6ms) ROLLBACK
2130
+  (0.2ms) BEGIN
2131
+ ---------------------------------------------------------------
2132
+ PushType::NodesController::DELETE #destroy: test_0003_anonymous
2133
+ ---------------------------------------------------------------
2134
+  (0.2ms) SAVEPOINT active_record_1
2135
+ PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-53' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
2136
+ SQL (0.5ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-05 21:35:28.774959"], ["slug", "foo-bar-53"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2014-12-05 21:35:28.774959"]]
2137
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tda604fe2f4be3b1cacfbfccedef1d999
2138
+ SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"], ["descendant_id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"], ["generations", 0]]
2139
+  (0.5ms) UPDATE "push_type_nodes"
2140
+ SET "sort_order" = t.seq + -1
2141
+ FROM (
2142
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
2143
+ FROM "push_type_nodes"
2144
+ WHERE "parent_id" IS NULL
2145
+ ) AS t
2146
+ WHERE "push_type_nodes"."id" = t.id
2147
+ 
2148
+ Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
2149
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
2150
+  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t6c565688d45bf1622b4ff6a06b7c58d9
2151
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2152
+ Processing by PushType::NodesController#destroy as HTML
2153
+ Parameters: {"id"=>"187dac6c-585f-49b9-bffd-d4d274e45d7d"}
2154
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
2155
+  (0.1ms) SAVEPOINT active_record_1
2156
+ SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '187dac6c-585f-49b9-bffd-d4d274e45d7d' [["deleted_at", "2014-12-05 21:35:28.802191"], ["updated_at", "2014-12-05 21:35:28.802882"]]
2157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2158
+ Redirected to http://test.host/push_type/nodes
2159
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
2160
+ Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "187dac6c-585f-49b9-bffd-d4d274e45d7d"]]
2161
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2162
+  (6.4ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2163
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2164
+  (2.3ms) ROLLBACK
2165
+  (0.1ms) BEGIN
2166
+ --------------------------------------------------------
2167
+ PushType::NodesController::GET #new: test_0001_anonymous
2168
+ --------------------------------------------------------
2169
+ Processing by PushType::NodesController#new as HTML
2170
+ Parameters: {"kind"=>"page"}
2171
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.2ms)
2172
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (15.4ms)
2173
+ Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.0ms)
2174
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2175
+  (7.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2176
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2177
+  (2.0ms) ROLLBACK
2178
+  (0.2ms) BEGIN
2179
+ --------------------------------------------------------
2180
+ PushType::NodesController::GET #new: test_0002_anonymous
2181
+ --------------------------------------------------------
2182
+ Processing by PushType::NodesController#new as HTML
2183
+ Parameters: {"kind"=>"page"}
2184
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.1ms)
2185
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (10.1ms)
2186
+ Completed 200 OK in 19ms (Views: 16.3ms | ActiveRecord: 0.0ms)
2187
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2188
+  (7.2ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2189
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2190
+  (2.2ms) ROLLBACK
2191
+  (0.1ms) BEGIN
2192
+ --------------------------------------------------------
2193
+ PushType::NodesController::GET #new: test_0003_anonymous
2194
+ --------------------------------------------------------
2195
+ Processing by PushType::NodesController#new as HTML
2196
+ Parameters: {"kind"=>"page"}
2197
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (0.1ms)
2198
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (10.8ms)
2199
+ Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.0ms)
2200
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2201
+  (6.3ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2202
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2203
+  (2.3ms) ROLLBACK
2204
+  (0.2ms) BEGIN
2205
+ -----------------------------------------------------------
2206
+ PushType::AssetsController::GET #index: test_0001_anonymous
2207
+ -----------------------------------------------------------
2208
+  (0.2ms) SAVEPOINT active_record_1
2209
+ SQL (0.6ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.937012"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.937012"]]
2210
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2211
+  (0.2ms) SAVEPOINT active_record_1
2212
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.942116"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.942116"]]
2213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2214
+  (0.2ms) SAVEPOINT active_record_1
2215
+ SQL (0.4ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.947416"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.947416"]]
2216
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2217
+  (0.1ms) SAVEPOINT active_record_1
2218
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.952012"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.952012"]]
2219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2220
+  (0.1ms) SAVEPOINT active_record_1
2221
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.956110"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.956110"]]
2222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2223
+ Processing by PushType::AssetsController#index as HTML
2224
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
2225
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL ORDER BY "push_type_assets"."created_at" DESC LIMIT 30 OFFSET 0
2226
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL
2227
+ Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 1.1ms)
2228
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2229
+  (7.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2230
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2231
+  (2.3ms) ROLLBACK
2232
+  (0.2ms) BEGIN
2233
+ -----------------------------------------------------------
2234
+ PushType::AssetsController::GET #index: test_0002_anonymous
2235
+ -----------------------------------------------------------
2236
+  (0.2ms) SAVEPOINT active_record_1
2237
+ SQL (0.5ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:28.998684"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:28.998684"]]
2238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2239
+  (0.1ms) SAVEPOINT active_record_1
2240
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:29.003471"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.003471"]]
2241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2242
+  (0.1ms) SAVEPOINT active_record_1
2243
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:29.007182"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.007182"]]
2244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2245
+  (0.1ms) SAVEPOINT active_record_1
2246
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:29.010762"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.010762"]]
2247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2248
+  (0.2ms) SAVEPOINT active_record_1
2249
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-05 21:35:29.014835"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["mime_type", "image/png"], ["updated_at", "2014-12-05 21:35:29.014835"]]
2250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2251
+ Processing by PushType::AssetsController#index as HTML
2252
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
2253
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL ORDER BY "push_type_assets"."created_at" DESC LIMIT 30 OFFSET 0
2254
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL
2255
+ Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 1.2ms)
2256
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count
2257
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2258
+  (6.7ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2259
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2260
+  (2.6ms) ROLLBACK
2261
+  (0.2ms) BEGIN
2262
+ ------------------------------------------------------------------------
2263
+ PushType::UsersController::POST #create::user count: test_0001_anonymous
2264
+ ------------------------------------------------------------------------
2265
+  (0.5ms) SELECT COUNT(*) FROM "push_type_users"
2266
+ Processing by PushType::UsersController#create as HTML
2267
+ Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-23@example.com"}}
2268
+  (0.2ms) SAVEPOINT active_record_1
2269
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-23@example.com' LIMIT 1
2270
+ SQL (0.3ms) INSERT INTO "push_type_users" ("created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-05 21:35:29.057213"], ["email", "joe-23@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:29.057213"]]
2271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2272
+ Redirected to http://test.host/push_type/users
2273
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
2274
+  (0.2ms) SELECT COUNT(*) FROM "push_type_users"
2275
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2276
+  (7.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2277
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2278
+  (2.3ms) ROLLBACK
2279
+  (0.1ms) BEGIN
2280
+ ---------------------------------------------------------------------
2281
+ PushType::AdminHelper::#ficon: test_0001_should return an <i> element
2282
+ ---------------------------------------------------------------------
2283
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2284
+  (6.8ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2285
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2286
+  (2.2ms) ROLLBACK
2287
+  (0.2ms) BEGIN
2288
+ ---------------------------------------------------------------
2289
+ PushType::AdminHelper::#ficon: test_0002_should return any text
2290
+ ---------------------------------------------------------------
2291
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2292
+  (8.6ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2293
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2294
+  (2.0ms) ROLLBACK
2295
+  (0.2ms) BEGIN
2296
+ ----------------------------------------------------------------------------------
2297
+ PushType::AssetsController::POST #create::with in-valid asset: test_0001_anonymous
2298
+ ----------------------------------------------------------------------------------
2299
+ Processing by PushType::AssetsController#create as HTML
2300
+ Parameters: {"asset"=>{}}
2301
+  (0.2ms) SAVEPOINT active_record_1
2302
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2303
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (3.2ms)
2304
+ Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.3ms)
2305
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2306
+  (8.0ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2307
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2308
+  (2.5ms) ROLLBACK
2309
+  (0.2ms) BEGIN
2310
+ ----------------------------------------------------------------------------------
2311
+ PushType::AssetsController::POST #create::with in-valid asset: test_0002_anonymous
2312
+ ----------------------------------------------------------------------------------
2313
+ Processing by PushType::AssetsController#create as HTML
2314
+ Parameters: {"asset"=>{}}
2315
+  (0.2ms) SAVEPOINT active_record_1
2316
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
2317
+ Rendered /Users/aaron/dev/push_type/admin/app/views/push_type/assets/_form.html.haml (4.4ms)
2318
+ Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms)
2319
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
2320
+  (6.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
2321
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL
2322
+  (2.4ms) ROLLBACK