push_type_auth 0.2.0.beta2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/push_type/authentication_methods.rb +10 -0
  3. data/test/dummy/config/initializers/push_type.rb +26 -8
  4. data/test/dummy/config/secrets.yml +2 -2
  5. data/test/dummy/db/migrate/{20150208150346_create_push_type_users.push_type.rb → 20150209204412_create_push_type_users.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20150208150347_create_push_type_nodes.push_type.rb → 20150209204413_create_push_type_nodes.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20150208150348_create_push_type_node_hierarchies.push_type.rb → 20150209204414_create_push_type_node_hierarchies.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20150208150349_create_push_type_assets.push_type.rb → 20150209204415_create_push_type_assets.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20150208150350_devise_extend_push_type_users.push_type_auth.rb → 20150209204416_devise_extend_push_type_users.push_type_auth.rb} +0 -0
  10. data/test/dummy/db/schema.rb +1 -1
  11. data/test/dummy/log/test.log +537 -533
  12. data/test/dummy/tmp/cache/assets/test/sass/{deb1394852fa60b8a5f9d5ea21f0c1f44e511075 → 0bf981301b6f8cfa0a13d38a3554eafaa08d4bc1}/foundation.scssc +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_accordion.scssc +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_alert-boxes.scssc +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_block-grid.scssc +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_breadcrumbs.scssc +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_button-groups.scssc +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_buttons.scssc +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_clearing.scssc +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_dropdown-buttons.scssc +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown.scssc +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_flex-video.scssc +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_forms.scssc +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_global.scssc +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_grid.scssc +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_icon-bar.scssc +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_inline-lists.scssc +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_joyride.scssc +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_keystrokes.scssc +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_labels.scssc +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_magellan.scssc +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_offcanvas.scssc +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_orbit.scssc +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_pagination.scssc +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_panels.scssc +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_pricing-tables.scssc +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_progress-bars.scssc +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_range-slider.scssc +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_reveal.scssc +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_side-nav.scssc +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_split-buttons.scssc +0 -0
  42. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_sub-nav.scssc +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_switches.scssc +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_tables.scssc +0 -0
  45. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_tabs.scssc +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_thumbs.scssc +0 -0
  47. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_tooltips.scssc +0 -0
  48. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_top-bar.scssc +0 -0
  49. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_type.scssc +0 -0
  50. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_visibility.scssc +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sass/9ffd013d383870261f2263c294cb3119536e8d59/_functions.scssc +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sprockets/{ac1b1f0c521a6acb5833209d7b18d888 → 03fbfd831772639fdac75dfe5fe9cf64} +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/{fd5e59fed8301f86b74e551534fce2b2 → 0ad373f2b4d9f428b6e58e76da4ec0b9} +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/{0b83e9e8467b82a0991df336697846e0 → 0be1680e56bd474e90098c85ed3613f1} +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/{969e05674f51d3b5b500e605e0292573 → 0c7d363f5622cc1f9d3584fdea9a45a8} +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/0e01ae9de0f3914c8317853aedd9ace4 +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/{55d7985953b175268932d2f7e50f64e0 → 0e97b69ac6f777e5725c5faa99228b8b} +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sprockets/{67d67f783372c9b99e2ff84c12d38dfb → 11d0db644738c3eeb74a1b4821e17387} +0 -0
  59. data/test/dummy/tmp/cache/assets/test/sprockets/147cd256ded8a7797a230bd1f27db96a +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sprockets/{7326e3e660754d56c46671c7347c5e97 → 1821710663a22c38d025f3600144b386} +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sprockets/{bbfc8dec2c2cc07cf4c1708597316a77 → 1956e934d0761e89293cf096aef2ad04} +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sprockets/{d2215e57429ecae68a054210e665d787 → 2196fdacd39bb9f5c4e3755b86d84888} +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sprockets/23c10c485dbe7ea46614928874120ecf +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/{1da46bb361bbd7b80dc66e5737dbf2a7 → 257233cf9d7cbb01dd74d0fefd6a9384} +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/{d9e5382620928a6b4a8cd70bdac10aa3 → 27d0805c68db0e1ea5335f4ad7273237} +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/{2c745da65bdbc8ebb88b6bce026972b9 → 2929961e63046a72db4e8d82548a8f31} +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/{a721a930039ed66bd3f092ab1e9c8de6 → 312dcc14683b058a2ecb35f844b45deb} +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/488d63b20534d2642d48b86b5a267a3b +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/{fada546ecac912f7782a46cf40ec29af → 57531b6d66c8c471ca21a68cde85f198} +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/{1505f3ddd93d7be2405c81d84a45cbfb → 5c694af01dab7474cace85e2e37233af} +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/{b3d0193a1439465426a4d051a161291d → 5eb2ada2e9af19cdbe5cb8750ce801df} +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/{ba87909b8d71ddaedd84c3f6c00dce72 → 6245a5f4c9368169ba2cab2de39b1316} +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/{81ba6a364949bd4ffe2732ae5745012d → 633ffb1bd470dc99106053fe08ffcef3} +0 -0
  74. data/test/dummy/tmp/cache/assets/test/sprockets/{00ae61e049df7e5570b8c57835868cfe → 6450b2170b90777c94faa92d8913b5af} +0 -0
  75. data/test/dummy/tmp/cache/assets/test/sprockets/{b76beafa9aef0c7a18bf63fe612ecd17 → 64550cb088f2a8bd25da69f8e7623a7a} +0 -0
  76. data/test/dummy/tmp/cache/assets/test/sprockets/{0a01f1c3288f982772ed595695292767 → 6afb6cb0462c9dab19086aa6c02e619a} +0 -0
  77. data/test/dummy/tmp/cache/assets/test/sprockets/{f4b5b11e7111666c7eac22f943308692 → 6b75e75e7b682e7c5633d02f5441f61c} +0 -0
  78. data/test/dummy/tmp/cache/assets/test/sprockets/6c7542a3718ad8d161e94f4816f01ccb +0 -0
  79. data/test/dummy/tmp/cache/assets/test/sprockets/{d8daf6c8e5df881485c0e1139a275f6d → 6ffb1f074155829dca88c57f3730a9c3} +0 -0
  80. data/test/dummy/tmp/cache/assets/test/sprockets/{f66bf7665e75e4d537977c71a5e39a4e → 720b83386eaf5707c1535472e36ba7fb} +0 -0
  81. data/test/dummy/tmp/cache/assets/test/sprockets/{a590260912e62280bb115dd52a953b18 → 756b24d1d6762675f2f3d781313c59b6} +0 -0
  82. data/test/dummy/tmp/cache/assets/test/sprockets/7925f8f38f5165ad9d36a7d73dd00c06 +0 -0
  83. data/test/dummy/tmp/cache/assets/test/sprockets/{7f0b91f5fa71c52d3cbe1f108fb7c942 → 7cd04ce7e67cb693aa31bd3e03199ecd} +0 -0
  84. data/test/dummy/tmp/cache/assets/test/sprockets/{fa7e1f9a13f606e2603a17f8e00aa32a → 8b83fd34df285c871e41af1e2c3efda9} +0 -0
  85. data/test/dummy/tmp/cache/assets/test/sprockets/8d531fdb806de0724337e0b80e253914 +0 -0
  86. data/test/dummy/tmp/cache/assets/test/sprockets/8df98e9b5189ffce4cf77a33533416a6 +0 -0
  87. data/test/dummy/tmp/cache/assets/test/sprockets/{6d21cd96abbcb6506d99fb93e8a11196 → 93f1c8b2c57b6a34ce6be7a69af2eeab} +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/{b771c2de3967bda011cf04e0979497cf → 9850ccc5ff77cfe44eef6c931be25fa2} +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/{7ea9d575b03f8effb678d4dcedf3d079 → a656594778473574f77b201837cc446f} +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/a9b8decaa2942e8913458c9f35da2693 +0 -0
  91. data/test/dummy/tmp/cache/assets/test/sprockets/{b657c356e24f45a8b92d4f4da9ff361d → aab84c1f5c24fa406a94eac09d22b2a4} +0 -0
  92. data/test/dummy/tmp/cache/assets/test/sprockets/{cb761fc7bfc4c192abf5c946f863ab1e → ab6e14fb85dc2ad554e941848018ed3f} +0 -0
  93. data/test/dummy/tmp/cache/assets/test/sprockets/{987bf17b1a3915d5c6d95ebda01e8f49 → ac6920ecb59148769117dba39b8bb574} +0 -0
  94. data/test/dummy/tmp/cache/assets/test/sprockets/{161b66dc0b76d65e577b5465f86cb767 → ae854557f47e184d242c2d046b212fda} +0 -0
  95. data/test/dummy/tmp/cache/assets/test/sprockets/{2a00ce050c10f75691b820576ec3aefd → b05f3b842ea70a8728bdfc77fe0c3a37} +0 -0
  96. data/test/dummy/tmp/cache/assets/test/sprockets/{c2b59fd99edc4b53754f7cb4e160452f → b762effbcb1d2a5c2e967b26de0b8e2a} +0 -0
  97. data/test/dummy/tmp/cache/assets/test/sprockets/{81e2498e0e1457dd93b47780ae28fc03 → bb38dd1514d70d46cc209c23beacf4ae} +0 -0
  98. data/test/dummy/tmp/cache/assets/test/sprockets/c206fbd33f49ab785c6ddf4bcffd3b93 +0 -0
  99. data/test/dummy/tmp/cache/assets/test/sprockets/{bd5b45287cfdac63ed7199b7982da02f → c8e888c4098e2f3e7e08e7aad9233bd9} +0 -0
  100. data/test/dummy/tmp/cache/assets/test/sprockets/{f5fcab9d313889bf6d14a05040aff5bc → d829c1f5535262183eb4dbd3717fadbe} +0 -0
  101. data/test/dummy/tmp/cache/assets/test/sprockets/df90022afc0d52f16bc498be20a5967d +0 -0
  102. data/test/dummy/tmp/cache/assets/test/sprockets/e6e78e14e8c962d31e6148ca56230af9 +0 -0
  103. data/test/dummy/tmp/cache/assets/test/sprockets/{090f2c9bc57f8e73105a98a800051354 → ec01e589b2029448373e8112cfd62b6a} +0 -0
  104. data/test/dummy/tmp/cache/assets/test/sprockets/edd24c59de6c00e4e68dbbdf2775984a +0 -0
  105. data/test/dummy/tmp/cache/assets/test/sprockets/f7cf86568d1c692cb0a565614f282572 +0 -0
  106. data/test/dummy/tmp/cache/assets/test/sprockets/{897553ff72f546645e24e94feec75255 → faa4ce8149d6e520b0a0855bfd8853e0} +0 -0
  107. data/test/dummy/tmp/cache/assets/test/sprockets/{d3921fc37cc437f0933c4dee9d089fd8 → fb4793fb33ff5da9202b3b44e1997140} +0 -0
  108. data/test/dummy/tmp/cache/assets/test/sprockets/{a970f64c67051f35069f45d8dad113a5 → fba226eba4fa5dba560496c64a18009c} +0 -0
  109. metadata +194 -194
  110. data/test/dummy/tmp/cache/assets/test/sass/356cbb24ba380fa6c5255d546317e2ce23ea8cd6/_functions.scssc +0 -0
  111. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_dropdown.scssc +0 -0
  112. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_forms.scssc +0 -0
  113. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_icon-bar.scssc +0 -0
  114. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_panels.scssc +0 -0
  115. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_reveal.scssc +0 -0
  116. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_switches.scssc +0 -0
  117. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_top-bar.scssc +0 -0
  118. data/test/dummy/tmp/cache/assets/test/sprockets/959fa77a7302a3002d5fb1394575117b +0 -0
  119. data/test/dummy/tmp/cache/assets/test/sprockets/a6453a78eb0c813a0b69a12cb7c4ab2c +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f2a5fdc1bde1bc85d434fdecdfed1b793da979c
4
- data.tar.gz: 2e78c239b02680dd2161f466c20406b189aee83f
3
+ metadata.gz: 3c6a06c96f22f6d095b46e4e5c7655f68e8bab8f
4
+ data.tar.gz: f634cee9b5fccc13ae1dadc00a227d1050ce3383
5
5
  SHA512:
6
- metadata.gz: 035356aa218f4b03bb2ab222b84a16de5347b851f094de05b08c7255bd57a75955e3a3c00606b952f22a50bd91413eea1d6edaedd6672410c4aef5fabf10fc35
7
- data.tar.gz: 169e330ed55272d417d367bc5af06f57b83c19e0ae92945eb17754096a75c56f6e91ae81448a85496abd2395f2409803452514f569925b927092e58a3cbe4ace
6
+ metadata.gz: af3749c59e96eade1349ff5b068b7fe1bd3acbece026db42c471f9015a95b568e8e510c8ac563b2fbaa6b8885fbc4e55c40c712a302a0e95d4b03a5795b5ad14
7
+ data.tar.gz: 670951c5d40c9b5451a28f561934ba2cf84f418e23982b7ee5b7fa83d0e8f4abebee2fd1b60bd8f4023105549f994bdf2e75bf8ac676622e566827beb553b0b9
@@ -6,5 +6,15 @@ module PushType
6
6
  before_filter :authenticate_user!
7
7
  end
8
8
 
9
+ protected
10
+
11
+ def authenticate_user!
12
+ if user_signed_in?
13
+ super
14
+ else
15
+ redirect_to push_type.new_user_session_path, alert: t('devise.failure.unauthenticated')
16
+ end
17
+ end
18
+
9
19
  end
10
20
  end
@@ -1,15 +1,33 @@
1
1
  PushType.setup do |config|
2
2
 
3
- #config.root_nodes = :all
3
+ config.root_nodes = :all
4
4
 
5
- #config.home_slug = 'home'
5
+ config.unexposed_nodes = []
6
6
 
7
- #config.unexposed_nodes = []
7
+ config.home_slug = 'home'
8
8
 
9
- #config.media_styles = {
10
- # large: '1024x1024>',
11
- # medium: '512x512>',
12
- # small: '256x256>'
13
- #}
9
+ config.media_styles = {
10
+ large: '1024x1024>',
11
+ medium: '512x512>',
12
+ small: '256x256>'
13
+ }
14
+
15
+ # Dragonfly datastore configuration
16
+ config.dragonfly_datastore = :file
17
+ config.dragonfly_datastore_options = {
18
+ root_path: Rails.root.join('public/system/dragonfly', Rails.env),
19
+ server_root: Rails.root.join('public')
20
+ }
21
+
22
+ # For S3 storage, remember to add to Gemfile:
23
+ # gem 'dragonfly-s3_data_store'
24
+ # config.dragonfly_datastore = :s3
25
+ # config.dragonfly_datastore_options = {
26
+ # bucket_name: ENV['S3_BUCKET'],
27
+ # access_key_id: ENV['S3_ACCESS_KEY_ID'],
28
+ # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
29
+ # }
30
+
31
+ # config.dragonfly_secret = '7105267e532219f79cf110ab9e969330a898721c33c7a7541c943838977194ca'
14
32
 
15
33
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: e431d741ccdd4c229c3d28663c955b4105ce9b53f9ccaa632ac147a435f9deab12432872701f9dabdd753db9ae4096a523da2802fb652aed570b82514a19dc17
14
+ secret_key_base: 5389eb8761fccac00a2d471847c6ccdefe7921d64c54332e245c2339e397551f725405c17b3b55abe2d3819a51baa2d56b6ba6c662b7687d45d0a51c3e3917de
15
15
 
16
16
  test:
17
- secret_key_base: ef2e4510a2cbc8f614308397e31e437540fe61d37241ec0277d7a0643f35d2462a30d72d7f4f398fcab778a4a188b774f627f4aeaab8eb2799559b8906a28eab
17
+ secret_key_base: a13c9d05e29950ab123a1bea9de3e9503fde683d710ce7d2a6146adb922060edee001e730ee4a772992ee883e1f7ee8b3915a1c1fc3fddbeddfa8b96f4e2e3cd
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150208150350) do
14
+ ActiveRecord::Schema.define(version: 20150209204416) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -1,47 +1,47 @@
1
-  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20150208150346)
4
+ Migrating to CreatePushTypeUsers (20150209204412)
5
5
   (0.1ms) BEGIN
6
6
  SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.1ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp, "updated_at" timestamp)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150346"]]
7
+  (2.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp, "updated_at" timestamp)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204412"]]
9
9
   (0.5ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150208150347)
10
+ Migrating to CreatePushTypeNodes (20150209204413)
11
11
   (0.1ms) BEGIN
12
-  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "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.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150347"]]
12
+  (2.2ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "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.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204413"]]
14
14
   (0.3ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150208150348)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150209204414)
16
16
   (0.1ms) BEGIN
17
-  (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (0.9ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
-  (0.5ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150348"]]
17
+  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
+  (0.7ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (0.6ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204414"]]
21
21
   (0.3ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150208150349)
22
+ Migrating to CreatePushTypeAssets (20150209204415)
23
23
   (0.1ms) BEGIN
24
24
   (1.9ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150349"]]
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204415"]]
26
26
   (0.3ms) COMMIT
27
- Migrating to DeviseExtendPushTypeUsers (20150208150350)
27
+ Migrating to DeviseExtendPushTypeUsers (20150209204416)
28
28
   (0.1ms) BEGIN
29
-  (2.5ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
29
+  (2.7ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
30
30
   (0.1ms) ALTER TABLE "push_type_users" ADD "reset_password_token" character varying
31
31
   (0.1ms) ALTER TABLE "push_type_users" ADD "reset_password_sent_at" timestamp
32
32
   (0.1ms) ALTER TABLE "push_type_users" ADD "remember_created_at" timestamp
33
-  (2.1ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
33
+  (2.2ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
34
34
   (0.2ms) ALTER TABLE "push_type_users" ADD "current_sign_in_at" timestamp
35
35
   (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
36
-  (0.2ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
36
+  (0.1ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
37
37
   (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_ip" character varying
38
38
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_token" character varying
39
39
   (0.2ms) ALTER TABLE "push_type_users" ADD "confirmed_at" timestamp
40
40
   (0.2ms) ALTER TABLE "push_type_users" ADD "confirmation_sent_at" timestamp
41
-  (0.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
42
-  (0.5ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
43
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150350"]]
44
-  (0.9ms) COMMIT
41
+  (0.7ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
42
+  (0.7ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
43
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204416"]]
44
+  (0.7ms) COMMIT
45
45
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
46
46
   (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
47
47
  FROM pg_constraint c
@@ -93,783 +93,787 @@ ORDER BY c.conname
93
93
 
94
94
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
95
95
   (0.4ms) ALTER TABLE "schema_migrations" 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;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL
96
-  (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
97
-  (7.1ms) TRUNCATE TABLE "push_type_nodes", "push_type_node_hierarchies", "push_type_assets", "push_type_users" RESTART IDENTITY CASCADE;
98
-  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
96
+  (0.9ms)  SELECT schemaname || '.' || tablename
97
+ FROM pg_tables
98
+ WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
99
+ 
100
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
101
+  (7.3ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets", "public"."push_type_users" RESTART IDENTITY CASCADE;
102
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
103
+  (0.1ms) BEGIN
104
+ ---------------------------------------------------------------------------------
105
+ PushType::ProfilesController::PUT #update::with invalid user: test_0001_anonymous
106
+ ---------------------------------------------------------------------------------
107
+  (0.1ms) SAVEPOINT active_record_1
108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109
+  (0.1ms) SAVEPOINT active_record_1
110
+  (0.1ms) SAVEPOINT active_record_2
111
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
112
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
113
+ SQL (0.7ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-1@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:16.900780"], ["confirmed_at", "2015-02-09 20:44:16.900914"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:16.910651"], ["updated_at", "2015-02-09 20:44:16.910651"]]
114
+  (0.1ms) RELEASE SAVEPOINT active_record_2
115
+ Processing by PushType::ProfilesController#update as HTML
116
+ Parameters: {"user"=>{"name"=>""}}
117
+ 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", "79d45bbe-164b-4fc2-b0ce-250c692a3361"]]
118
+  (0.1ms) SAVEPOINT active_record_2
119
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-1@example.com' AND "push_type_users"."id" != '79d45bbe-164b-4fc2-b0ce-250c692a3361') LIMIT 1
120
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
121
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (12.7ms)
122
+ Completed 200 OK in 6044ms (Views: 6030.0ms | ActiveRecord: 0.7ms)
123
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
124
+  (0.2ms) ROLLBACK
99
125
   (0.1ms) BEGIN
100
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
101
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
102
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "582c2e3221fa98c9f333bfda4bb1e487b9c3ff0108617e350b5355b74929b285"]]
103
- SQL (0.6ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-1@example.com"], ["created_at", "2015-02-08 15:03:51.358831"], ["updated_at", "2015-02-08 15:03:51.358831"], ["confirmation_token", "582c2e3221fa98c9f333bfda4bb1e487b9c3ff0108617e350b5355b74929b285"], ["confirmation_sent_at", "2015-02-08 15:03:51.531694"]]
104
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (3.3ms)
126
+ ---------------------------------------------------------------------------------
127
+ PushType::ProfilesController::PUT #update::with invalid user: test_0002_anonymous
128
+ ---------------------------------------------------------------------------------
129
+  (0.0ms) SAVEPOINT active_record_1
130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131
+  (0.0ms) SAVEPOINT active_record_1
132
+  (0.1ms) SAVEPOINT active_record_2
133
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
134
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
135
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:22.964353"], ["confirmed_at", "2015-02-09 20:44:22.964487"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:22.966532"], ["updated_at", "2015-02-09 20:44:22.966532"]]
136
+  (0.1ms) RELEASE SAVEPOINT active_record_2
137
+ Processing by PushType::ProfilesController#update as HTML
138
+ Parameters: {"user"=>{"name"=>""}}
139
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "344511c1-6e25-4a43-b099-4ffc33bf7039"]]
140
+  (0.1ms) SAVEPOINT active_record_2
141
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-2@example.com' AND "push_type_users"."id" != '344511c1-6e25-4a43-b099-4ffc33bf7039') LIMIT 1
142
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
143
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (4.5ms)
144
+ Completed 200 OK in 20ms (Views: 14.7ms | ActiveRecord: 0.6ms)
145
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
146
+  (0.1ms) ROLLBACK
147
+  (0.1ms) BEGIN
148
+ ------------------------------------------------------------------------------------
149
+ PushType::ConfirmationsController::PUT #update::with valid user: test_0001_anonymous
150
+ ------------------------------------------------------------------------------------
151
+  (0.1ms) SAVEPOINT active_record_1
152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
153
+  (0.1ms) SAVEPOINT active_record_1
154
+  (0.1ms) SAVEPOINT active_record_2
155
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
156
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
157
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "1b58e1dec4bce0e66689a591dfb93cf9c10e75c727b978aa5d59d733991e9646"]]
158
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-3@example.com"], ["created_at", "2015-02-09 20:44:22.995864"], ["updated_at", "2015-02-09 20:44:22.995864"], ["confirmation_token", "1b58e1dec4bce0e66689a591dfb93cf9c10e75c727b978aa5d59d733991e9646"], ["confirmation_sent_at", "2015-02-09 20:44:23.166965"]]
159
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.5ms)
105
160
 
106
- Devise::Mailer#confirmation_instructions: processed outbound mail in 190.2ms
161
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 83.3ms
107
162
 
108
- Sent mail to joe-1@example.com (7.3ms)
109
- Date: Sun, 08 Feb 2015 15:03:51 +0000
163
+ Sent mail to joe-3@example.com (4.6ms)
164
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
110
165
  From: please-change-me-at-config-initializers-devise@example.com
111
166
  Reply-To: please-change-me-at-config-initializers-devise@example.com
112
- To: joe-1@example.com
113
- Message-ID: <54d77ad7b37d3_185d3fd58d065bec45588@Aarons-iMac.local.mail>
167
+ To: joe-3@example.com
168
+ Message-ID: <54d91c273f5b4_2a843fd7f8465be4390d8@Aarons-iMac.local.mail>
114
169
  Subject: Confirmation instructions
115
170
  Mime-Version: 1.0
116
171
  Content-Type: text/html;
117
172
  charset=UTF-8
118
173
  Content-Transfer-Encoding: 7bit
119
174
 
120
- <p>Welcome joe-1@example.com!</p>
175
+ <p>Welcome joe-3@example.com!</p>
121
176
 
122
177
  <p>You can confirm your account email through the link below:</p>
123
178
 
124
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=dzzyovatH7GBwVBGBEcm">Confirm my account</a></p>
179
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=jiRJ4FkLhsDeZfmGTGHn">Confirm my account</a></p>
125
180
 
126
-  (6.1ms) COMMIT
127
-  (0.1ms) BEGIN
128
- --------------------------------------------------------------------------------------------------
129
- PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0001_anonymous
130
- --------------------------------------------------------------------------------------------------
131
-  (0.1ms) SAVEPOINT active_record_1
132
-  (0.1ms) RELEASE SAVEPOINT active_record_1
133
-  (0.1ms) SAVEPOINT active_record_1
134
- Processing by PushType::ConfirmationsController#show as HTML
135
- Parameters: {"confirmation_token"=>"invalid"}
136
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "7ea5d54cc162c2e72d901f5de63486e83a424fba857436824dadc72cb5ff789f"]]
137
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "7ea5d54cc162c2e72d901f5de63486e83a424fba857436824dadc72cb5ff789f"]]
138
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (5.1ms)
139
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (13.7ms)
140
- Completed 200 OK in 9677ms (Views: 9672.3ms | ActiveRecord: 0.4ms)
181
+  (0.1ms) RELEASE SAVEPOINT active_record_2
182
+ Processing by PushType::ConfirmationsController#update as HTML
183
+ Parameters: {"user"=>{"confirmation_token"=>"jiRJ4FkLhsDeZfmGTGHn", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
184
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "1b58e1dec4bce0e66689a591dfb93cf9c10e75c727b978aa5d59d733991e9646"]]
185
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != '86afa32c-2283-4225-9bda-41c990cc5676') LIMIT 1
186
+  (0.1ms) SAVEPOINT active_record_2
187
+ SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "encrypted_password" = $2, "confirmed_at" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = $5 [["confirmation_token", nil], ["encrypted_password", "$2a$04$xvP0JxZlEA40GfvI0sLc1uQt87NAMxpf0qDwL2W.qWq5Rbx8fdZo."], ["confirmed_at", "2015-02-09 20:44:23.268599"], ["updated_at", "2015-02-09 20:44:23.269104"], ["id", "86afa32c-2283-4225-9bda-41c990cc5676"]]
188
+  (0.1ms) RELEASE SAVEPOINT active_record_2
189
+  (0.1ms) SAVEPOINT active_record_2
190
+ SQL (0.2ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-02-09 20:44:23.270923"], ["current_sign_in_at", "2015-02-09 20:44:23.270923"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-02-09 20:44:23.271680"], ["id", "86afa32c-2283-4225-9bda-41c990cc5676"]]
191
+  (0.1ms) RELEASE SAVEPOINT active_record_2
192
+ Redirected to http://test.host/push_type/
193
+ Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
194
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "86afa32c-2283-4225-9bda-41c990cc5676"]]
141
195
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
142
196
   (0.1ms) ROLLBACK
143
197
   (0.1ms) BEGIN
144
- --------------------------------------------------------------------------------------------------
145
- PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0002_anonymous
146
- --------------------------------------------------------------------------------------------------
147
-  (0.0ms) SAVEPOINT active_record_1
148
-  (0.0ms) RELEASE SAVEPOINT active_record_1
198
+ ------------------------------------------------------------------------------------
199
+ PushType::ConfirmationsController::PUT #update::with valid user: test_0002_anonymous
200
+ ------------------------------------------------------------------------------------
149
201
   (0.0ms) SAVEPOINT active_record_1
150
- Processing by PushType::ConfirmationsController#show as HTML
151
- Parameters: {"confirmation_token"=>"invalid"}
152
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "7ea5d54cc162c2e72d901f5de63486e83a424fba857436824dadc72cb5ff789f"]]
153
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "7ea5d54cc162c2e72d901f5de63486e83a424fba857436824dadc72cb5ff789f"]]
154
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.8ms)
155
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (5.6ms)
156
- Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.3ms)
157
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
158
-  (0.1ms) ROLLBACK
159
-  (0.1ms) BEGIN
160
- --------------------------------------------------------------------------------------
161
- PushType::ConfirmationsController::PUT #update::with invalid user: test_0003_anonymous
162
- --------------------------------------------------------------------------------------
163
-  (0.1ms) SAVEPOINT active_record_1
164
202
   (0.0ms) RELEASE SAVEPOINT active_record_1
165
203
   (0.0ms) SAVEPOINT active_record_1
166
-  (0.0ms) SAVEPOINT active_record_2
167
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
168
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
169
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "c079c2fd099371d5e588716306672a5a16d896e2c1806cdf008a180d513faa16"]]
170
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["created_at", "2015-02-08 15:04:01.449116"], ["updated_at", "2015-02-08 15:04:01.449116"], ["confirmation_token", "c079c2fd099371d5e588716306672a5a16d896e2c1806cdf008a180d513faa16"], ["confirmation_sent_at", "2015-02-08 15:04:01.450100"]]
171
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.0ms)
204
+  (0.1ms) SAVEPOINT active_record_2
205
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
206
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
207
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ebc850e1d8e0a9fcb6f303869b4333258c448973b381080771fcbde17c1bded9"]]
208
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", "2015-02-09 20:44:23.278418"], ["updated_at", "2015-02-09 20:44:23.278418"], ["confirmation_token", "ebc850e1d8e0a9fcb6f303869b4333258c448973b381080771fcbde17c1bded9"], ["confirmation_sent_at", "2015-02-09 20:44:23.279293"]]
209
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.9ms)
172
210
 
173
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
211
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
174
212
 
175
- Sent mail to joe-2@example.com (1.6ms)
176
- Date: Sun, 08 Feb 2015 15:04:01 +0000
213
+ Sent mail to joe-4@example.com (1.5ms)
214
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
177
215
  From: please-change-me-at-config-initializers-devise@example.com
178
216
  Reply-To: please-change-me-at-config-initializers-devise@example.com
179
- To: joe-2@example.com
180
- Message-ID: <54d77ae16f170_185d3fd58d065bec456dd@Aarons-iMac.local.mail>
217
+ To: joe-4@example.com
218
+ Message-ID: <54d91c2745488_2a843fd7f8465be439199@Aarons-iMac.local.mail>
181
219
  Subject: Confirmation instructions
182
220
  Mime-Version: 1.0
183
221
  Content-Type: text/html;
184
222
  charset=UTF-8
185
223
  Content-Transfer-Encoding: 7bit
186
224
 
187
- <p>Welcome joe-2@example.com!</p>
225
+ <p>Welcome joe-4@example.com!</p>
188
226
 
189
227
  <p>You can confirm your account email through the link below:</p>
190
228
 
191
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=WxBktCrvA4V_SyF6itty">Confirm my account</a></p>
229
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=zxZYwzG73-2DkoZJVhB7">Confirm my account</a></p>
192
230
 
193
231
   (0.1ms) RELEASE SAVEPOINT active_record_2
194
232
  Processing by PushType::ConfirmationsController#update as HTML
195
- Parameters: {"user"=>{"confirmation_token"=>"WxBktCrvA4V_SyF6itty", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
196
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "c079c2fd099371d5e588716306672a5a16d896e2c1806cdf008a180d513faa16"]]
197
- 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" != 'dcb1f4b0-79c1-4a89-83b2-c77796ea6268') LIMIT 1
198
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.9ms)
199
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (9.9ms)
200
- Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.5ms)
233
+ Parameters: {"user"=>{"confirmation_token"=>"zxZYwzG73-2DkoZJVhB7", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
234
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ebc850e1d8e0a9fcb6f303869b4333258c448973b381080771fcbde17c1bded9"]]
235
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != '0e5ffbff-e942-47ae-a7b7-bba78e002612') LIMIT 1
236
+  (0.1ms) SAVEPOINT active_record_2
237
+ SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "encrypted_password" = $2, "confirmed_at" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = $5 [["confirmation_token", nil], ["encrypted_password", "$2a$04$HW5MNadbSWQzyssyPZT7lOESnKQ3uRfKQPmPagGfmJAatyxSC6AJa"], ["confirmed_at", "2015-02-09 20:44:23.289799"], ["updated_at", "2015-02-09 20:44:23.290160"], ["id", "0e5ffbff-e942-47ae-a7b7-bba78e002612"]]
238
+  (0.1ms) RELEASE SAVEPOINT active_record_2
239
+  (0.1ms) SAVEPOINT active_record_2
240
+ SQL (0.1ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-02-09 20:44:23.291363"], ["current_sign_in_at", "2015-02-09 20:44:23.291363"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-02-09 20:44:23.291989"], ["id", "0e5ffbff-e942-47ae-a7b7-bba78e002612"]]
241
+  (0.1ms) RELEASE SAVEPOINT active_record_2
242
+ Redirected to http://test.host/push_type/
243
+ Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
201
244
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
202
245
   (0.1ms) ROLLBACK
203
246
   (0.1ms) BEGIN
204
- --------------------------------------------------------------------------------------
205
- PushType::ConfirmationsController::PUT #update::with invalid user: test_0002_anonymous
206
- --------------------------------------------------------------------------------------
207
-  (0.0ms) SAVEPOINT active_record_1
208
-  (0.0ms) RELEASE SAVEPOINT active_record_1
209
-  (0.0ms) SAVEPOINT active_record_1
247
+ -----------------------------------------------------------
248
+ PushType::UsersController::PUT #invite: test_0003_anonymous
249
+ -----------------------------------------------------------
250
+  (0.1ms) SAVEPOINT active_record_1
251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
252
+  (0.1ms) SAVEPOINT active_record_1
210
253
   (0.1ms) SAVEPOINT active_record_2
211
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
212
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
213
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "6ab98159fa799404f63c96be697bbd42d5d27efa34ab5baf55825f142715d2d1"]]
214
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-3@example.com"], ["created_at", "2015-02-08 15:04:01.477209"], ["updated_at", "2015-02-08 15:04:01.477209"], ["confirmation_token", "6ab98159fa799404f63c96be697bbd42d5d27efa34ab5baf55825f142715d2d1"], ["confirmation_sent_at", "2015-02-08 15:04:01.478175"]]
215
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.1ms)
254
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
255
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
256
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.297903"], ["confirmed_at", "2015-02-09 20:44:23.298011"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.299602"], ["updated_at", "2015-02-09 20:44:23.299602"]]
257
+  (0.1ms) RELEASE SAVEPOINT active_record_2
258
+  (0.1ms) SAVEPOINT active_record_2
259
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
260
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
261
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "4138e936236d33de6fbed8473b0fa4bb743e43d76a9809f885821853269a029f"]]
262
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["created_at", "2015-02-09 20:44:23.302518"], ["updated_at", "2015-02-09 20:44:23.302518"], ["confirmation_token", "4138e936236d33de6fbed8473b0fa4bb743e43d76a9809f885821853269a029f"], ["confirmation_sent_at", "2015-02-09 20:44:23.303612"]]
263
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.9ms)
216
264
 
217
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.1ms
265
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
218
266
 
219
- Sent mail to joe-3@example.com (1.5ms)
220
- Date: Sun, 08 Feb 2015 15:04:01 +0000
267
+ Sent mail to joe-6@example.com (1.5ms)
268
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
221
269
  From: please-change-me-at-config-initializers-devise@example.com
222
270
  Reply-To: please-change-me-at-config-initializers-devise@example.com
223
- To: joe-3@example.com
224
- Message-ID: <54d77ae175ebd_185d3fd58d065bec457aa@Aarons-iMac.local.mail>
271
+ To: joe-6@example.com
272
+ Message-ID: <54d91c274b358_2a843fd7f8465be43926d@Aarons-iMac.local.mail>
225
273
  Subject: Confirmation instructions
226
274
  Mime-Version: 1.0
227
275
  Content-Type: text/html;
228
276
  charset=UTF-8
229
277
  Content-Transfer-Encoding: 7bit
230
278
 
231
- <p>Welcome joe-3@example.com!</p>
279
+ <p>Welcome joe-6@example.com!</p>
232
280
 
233
281
  <p>You can confirm your account email through the link below:</p>
234
282
 
235
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=oDxraB_oPWoxqX4xbWc5">Confirm my account</a></p>
283
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=yYdY9Xa3iDLGzLUPLrFh">Confirm my account</a></p>
236
284
 
237
-  (0.1ms) RELEASE SAVEPOINT active_record_2
238
- Processing by PushType::ConfirmationsController#update as HTML
239
- Parameters: {"user"=>{"confirmation_token"=>"oDxraB_oPWoxqX4xbWc5", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
240
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "6ab98159fa799404f63c96be697bbd42d5d27efa34ab5baf55825f142715d2d1"]]
241
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != '2ffe18e3-b8f5-4eb8-9f55-0664ca10bd88') LIMIT 1
242
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.8ms)
243
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.5ms)
244
- Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms)
245
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
246
-  (0.1ms) ROLLBACK
247
-  (0.1ms) BEGIN
248
- --------------------------------------------------------------------------------------
249
- PushType::ConfirmationsController::PUT #update::with invalid user: test_0001_anonymous
250
- --------------------------------------------------------------------------------------
251
-  (0.0ms) SAVEPOINT active_record_1
252
-  (0.0ms) RELEASE SAVEPOINT active_record_1
253
-  (0.0ms) SAVEPOINT active_record_1
285
+  (0.1ms) RELEASE SAVEPOINT active_record_2
286
+ Processing by PushType::UsersController#invite as HTML
287
+ Parameters: {"id"=>"cbff17f9-df32-482d-9ef8-69986a80c128"}
288
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "db39abd2-c231-419b-8ce9-daedc2c251f2"]]
289
+ PushType::User Load (0.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", "cbff17f9-df32-482d-9ef8-69986a80c128"]]
290
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "9159dc54fb9a387c0e71fc0d66f0a6bb2379653631773642abbbdfebf83ccff7"]]
254
291
   (0.1ms) SAVEPOINT active_record_2
255
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
256
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
257
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "c80c990c56919f293db7a8f9ac9fb08d5c9faca64458b131e918eb74fc57b082"]]
258
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", "2015-02-08 15:04:01.498681"], ["updated_at", "2015-02-08 15:04:01.498681"], ["confirmation_token", "c80c990c56919f293db7a8f9ac9fb08d5c9faca64458b131e918eb74fc57b082"], ["confirmation_sent_at", "2015-02-08 15:04:01.499581"]]
259
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.8ms)
292
+ SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmation_sent_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["confirmation_token", "9159dc54fb9a387c0e71fc0d66f0a6bb2379653631773642abbbdfebf83ccff7"], ["confirmation_sent_at", "2015-02-09 20:44:23.315216"], ["updated_at", "2015-02-09 20:44:23.315703"], ["id", "cbff17f9-df32-482d-9ef8-69986a80c128"]]
293
+  (0.1ms) RELEASE SAVEPOINT active_record_2
294
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.6ms)
260
295
 
261
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
296
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
262
297
 
263
- Sent mail to joe-4@example.com (1.5ms)
264
- Date: Sun, 08 Feb 2015 15:04:01 +0000
298
+ Sent mail to joe-6@example.com (1.4ms)
299
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
265
300
  From: please-change-me-at-config-initializers-devise@example.com
266
301
  Reply-To: please-change-me-at-config-initializers-devise@example.com
267
- To: joe-4@example.com
268
- Message-ID: <54d77ae17b0b8_185d3fd58d065bec458f5@Aarons-iMac.local.mail>
302
+ To: joe-6@example.com
303
+ Message-ID: <54d91c274e2cc_2a843fd7f8465be43935b@Aarons-iMac.local.mail>
269
304
  Subject: Confirmation instructions
270
305
  Mime-Version: 1.0
271
306
  Content-Type: text/html;
272
307
  charset=UTF-8
273
308
  Content-Transfer-Encoding: 7bit
274
309
 
275
- <p>Welcome joe-4@example.com!</p>
310
+ <p>Welcome joe-6@example.com!</p>
276
311
 
277
312
  <p>You can confirm your account email through the link below:</p>
278
313
 
279
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=sHsC9pVvjvV6pzfz64qy">Confirm my account</a></p>
314
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=B5ULU5pofv6j4ch_VUGv">Confirm my account</a></p>
280
315
 
316
+ Redirected to /push_type/users
317
+ Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
318
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
319
+  (0.1ms) ROLLBACK
320
+  (0.1ms) BEGIN
321
+ -----------------------------------------------------------
322
+ PushType::UsersController::PUT #invite: test_0002_anonymous
323
+ -----------------------------------------------------------
324
+  (0.1ms) SAVEPOINT active_record_1
325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
326
+  (0.1ms) SAVEPOINT active_record_1
327
+  (0.1ms) SAVEPOINT active_record_2
328
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
329
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
330
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.323783"], ["confirmed_at", "2015-02-09 20:44:23.323892"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.325868"], ["updated_at", "2015-02-09 20:44:23.325868"]]
281
331
   (0.1ms) RELEASE SAVEPOINT active_record_2
282
- Processing by PushType::ConfirmationsController#update as HTML
283
- Parameters: {"user"=>{"confirmation_token"=>"sHsC9pVvjvV6pzfz64qy", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
284
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "c80c990c56919f293db7a8f9ac9fb08d5c9faca64458b131e918eb74fc57b082"]]
285
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != '5d99843b-269f-4688-84b4-0b4a3088d287') LIMIT 1
286
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.9ms)
287
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (6.0ms)
288
- Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.4ms)
289
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
290
-  (0.1ms) ROLLBACK
291
-  (0.1ms) BEGIN
292
- ------------------------------------------------------------
293
- PushType::ProfilesController::GET #edit: test_0002_anonymous
294
- ------------------------------------------------------------
295
-  (0.1ms) SAVEPOINT active_record_1
296
-  (0.1ms) RELEASE SAVEPOINT active_record_1
297
-  (0.0ms) SAVEPOINT active_record_1
298
-  (0.1ms) SAVEPOINT active_record_2
299
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
300
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
301
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.520538"], ["confirmed_at", "2015-02-08 15:04:01.520659"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.522471"], ["updated_at", "2015-02-08 15:04:01.522471"]]
302
-  (0.1ms) RELEASE SAVEPOINT active_record_2
303
- Processing by PushType::ProfilesController#edit as HTML
304
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "71b9e419-26f5-4a44-9615-2b7bf183fcd0"]]
305
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (8.1ms)
306
- Completed 200 OK in 36ms (Views: 31.9ms | ActiveRecord: 0.2ms)
307
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
308
-  (0.1ms) ROLLBACK
309
-  (0.1ms) BEGIN
310
- ------------------------------------------------------------
311
- PushType::ProfilesController::GET #edit: test_0001_anonymous
312
- ------------------------------------------------------------
313
-  (0.1ms) SAVEPOINT active_record_1
314
-  (0.0ms) RELEASE SAVEPOINT active_record_1
315
-  (0.1ms) SAVEPOINT active_record_1
316
332
   (0.1ms) SAVEPOINT active_record_2
317
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
318
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
319
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.565403"], ["confirmed_at", "2015-02-08 15:04:01.565527"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.567484"], ["updated_at", "2015-02-08 15:04:01.567484"]]
320
-  (0.1ms) RELEASE SAVEPOINT active_record_2
321
- Processing by PushType::ProfilesController#edit as HTML
322
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "dd509fe0-cde8-4c72-8114-4f4c01400b0b"]]
323
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (4.5ms)
324
- Completed 200 OK in 17ms (Views: 14.3ms | ActiveRecord: 0.2ms)
325
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
326
-  (0.1ms) ROLLBACK
327
-  (0.1ms) BEGIN
328
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
329
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
330
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "8a4d6a088a8e8ad9ebfdef0e586a591d592d5037498557e5436f340dcd8f0fd3"]]
331
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["created_at", "2015-02-08 15:04:01.591227"], ["updated_at", "2015-02-08 15:04:01.591227"], ["confirmation_token", "8a4d6a088a8e8ad9ebfdef0e586a591d592d5037498557e5436f340dcd8f0fd3"], ["confirmation_sent_at", "2015-02-08 15:04:01.592150"]]
332
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.8ms)
333
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
334
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
335
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "9b750632a174d0f4c30de8606ee1fe0be8c3102fe08a5412c5b6814089b03caa"]]
336
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["created_at", "2015-02-09 20:44:23.329101"], ["updated_at", "2015-02-09 20:44:23.329101"], ["confirmation_token", "9b750632a174d0f4c30de8606ee1fe0be8c3102fe08a5412c5b6814089b03caa"], ["confirmation_sent_at", "2015-02-09 20:44:23.329947"]]
337
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.1ms)
333
338
 
334
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
339
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
335
340
 
336
- Sent mail to joe-7@example.com (1.6ms)
337
- Date: Sun, 08 Feb 2015 15:04:01 +0000
341
+ Sent mail to joe-8@example.com (1.5ms)
342
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
338
343
  From: please-change-me-at-config-initializers-devise@example.com
339
344
  Reply-To: please-change-me-at-config-initializers-devise@example.com
340
- To: joe-7@example.com
341
- Message-ID: <54d77ae191ad1_185d3fd58d065bec45963@Aarons-iMac.local.mail>
345
+ To: joe-8@example.com
346
+ Message-ID: <54d91c2751aa0_2a843fd7f8465be4394fc@Aarons-iMac.local.mail>
342
347
  Subject: Confirmation instructions
343
348
  Mime-Version: 1.0
344
349
  Content-Type: text/html;
345
350
  charset=UTF-8
346
351
  Content-Transfer-Encoding: 7bit
347
352
 
348
- <p>Welcome joe-7@example.com!</p>
353
+ <p>Welcome joe-8@example.com!</p>
349
354
 
350
355
  <p>You can confirm your account email through the link below:</p>
351
356
 
352
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=xXPM82GAE81eNBc18YZH">Confirm my account</a></p>
357
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=badj6GyWVZwanx_zHfxK">Confirm my account</a></p>
353
358
 
354
-  (0.3ms) COMMIT
355
-  (0.1ms) BEGIN
356
- -------------------------------------------------------------------------------
357
- PushType::ProfilesController::PUT #update::with valid user: test_0002_anonymous
358
- -------------------------------------------------------------------------------
359
-  (0.1ms) SAVEPOINT active_record_1
360
-  (0.1ms) RELEASE SAVEPOINT active_record_1
361
-  (0.1ms) SAVEPOINT active_record_1
362
-  (0.1ms) SAVEPOINT active_record_2
363
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
364
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
365
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.604090"], ["confirmed_at", "2015-02-08 15:04:01.604211"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.605884"], ["updated_at", "2015-02-08 15:04:01.605884"]]
366
-  (0.1ms) RELEASE SAVEPOINT active_record_2
367
- Processing by PushType::ProfilesController#update as HTML
368
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
369
- 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", "566abe0e-4e98-408e-99d7-d5c6ca6187b6"]]
370
-  (0.1ms) SAVEPOINT active_record_2
371
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-8@example.com' AND "push_type_users"."id" != '566abe0e-4e98-408e-99d7-d5c6ca6187b6') LIMIT 1
372
- SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-02-08 15:04:01.613427"], ["id", "566abe0e-4e98-408e-99d7-d5c6ca6187b6"]]
373
359
   (0.1ms) RELEASE SAVEPOINT active_record_2
374
- Redirected to http://test.host/push_type/profile/edit
375
- Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
360
+ Processing by PushType::UsersController#invite as HTML
361
+ Parameters: {"id"=>"8ca048f0-9f3d-48b3-8140-4fca332ab671"}
362
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "5a82ff56-da61-4594-8823-b1ad2fcb757b"]]
363
+ PushType::User Load (0.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", "8ca048f0-9f3d-48b3-8140-4fca332ab671"]]
364
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ab6185d8142b754a89e8fc5ab92bb7c97e538a21dc9e1a6b08e10560573aab86"]]
365
+  (0.1ms) SAVEPOINT active_record_2
366
+ SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmation_sent_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["confirmation_token", "ab6185d8142b754a89e8fc5ab92bb7c97e538a21dc9e1a6b08e10560573aab86"], ["confirmation_sent_at", "2015-02-09 20:44:23.340477"], ["updated_at", "2015-02-09 20:44:23.340958"], ["id", "8ca048f0-9f3d-48b3-8140-4fca332ab671"]]
367
+  (0.1ms) RELEASE SAVEPOINT active_record_2
368
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.6ms)
369
+
370
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
371
+
372
+ Sent mail to joe-8@example.com (1.4ms)
373
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
374
+ From: please-change-me-at-config-initializers-devise@example.com
375
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
376
+ To: joe-8@example.com
377
+ Message-ID: <54d91c275449a_2a843fd7f8465be43953@Aarons-iMac.local.mail>
378
+ Subject: Confirmation instructions
379
+ Mime-Version: 1.0
380
+ Content-Type: text/html;
381
+ charset=UTF-8
382
+ Content-Transfer-Encoding: 7bit
383
+
384
+ <p>Welcome joe-8@example.com!</p>
385
+
386
+ <p>You can confirm your account email through the link below:</p>
387
+
388
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=Tp5smBKgHQgjufm4ewhx">Confirm my account</a></p>
389
+
390
+ Redirected to /push_type/users
391
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
376
392
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
377
393
   (0.1ms) ROLLBACK
378
394
   (0.1ms) BEGIN
379
- -------------------------------------------------------------------------------
380
- PushType::ProfilesController::PUT #update::with valid user: test_0001_anonymous
381
- -------------------------------------------------------------------------------
395
+ -----------------------------------------------------------
396
+ PushType::UsersController::PUT #invite: test_0001_anonymous
397
+ -----------------------------------------------------------
382
398
   (0.1ms) SAVEPOINT active_record_1
383
399
   (0.1ms) RELEASE SAVEPOINT active_record_1
384
400
   (0.1ms) SAVEPOINT active_record_1
385
401
   (0.1ms) SAVEPOINT active_record_2
386
402
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
387
403
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
388
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.619063"], ["confirmed_at", "2015-02-08 15:04:01.619171"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.620707"], ["updated_at", "2015-02-08 15:04:01.620707"]]
404
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.348554"], ["confirmed_at", "2015-02-09 20:44:23.348663"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.350250"], ["updated_at", "2015-02-09 20:44:23.350250"]]
389
405
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
- Processing by PushType::ProfilesController#update as HTML
391
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
392
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "8c653689-2bcc-4fc9-8ace-9f9dfec9154d"]]
393
-  (0.1ms) SAVEPOINT active_record_2
394
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-9@example.com' AND "push_type_users"."id" != '8c653689-2bcc-4fc9-8ace-9f9dfec9154d') LIMIT 1
395
- SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-02-08 15:04:01.627568"], ["id", "8c653689-2bcc-4fc9-8ace-9f9dfec9154d"]]
396
-  (0.1ms) RELEASE SAVEPOINT active_record_2
397
- Redirected to http://test.host/push_type/profile/edit
398
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
399
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "8c653689-2bcc-4fc9-8ace-9f9dfec9154d"]]
400
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
401
-  (0.1ms) ROLLBACK
402
-  (0.1ms) BEGIN
403
- -------------------------------------------------------------------------------
404
- PushType::ProfilesController::PUT #update::with valid user: test_0003_anonymous
405
- -------------------------------------------------------------------------------
406
-  (0.0ms) SAVEPOINT active_record_1
407
-  (0.0ms) RELEASE SAVEPOINT active_record_1
408
-  (0.0ms) SAVEPOINT active_record_1
409
406
   (0.1ms) SAVEPOINT active_record_2
410
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
407
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
411
408
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
412
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.633561"], ["confirmed_at", "2015-02-08 15:04:01.633667"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.635178"], ["updated_at", "2015-02-08 15:04:01.635178"]]
413
-  (0.1ms) RELEASE SAVEPOINT active_record_2
414
- Processing by PushType::ProfilesController#update as HTML
415
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
416
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "8b9613dc-3cf0-4ccb-bae1-a8433ed52600"]]
417
-  (0.1ms) SAVEPOINT active_record_2
418
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-10@example.com' AND "push_type_users"."id" != '8b9613dc-3cf0-4ccb-bae1-a8433ed52600') LIMIT 1
419
- SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-02-08 15:04:01.642049"], ["id", "8b9613dc-3cf0-4ccb-bae1-a8433ed52600"]]
420
-  (0.1ms) RELEASE SAVEPOINT active_record_2
421
- Redirected to http://test.host/push_type/profile/edit
422
- Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
423
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
424
-  (0.1ms) ROLLBACK
425
-  (0.1ms) BEGIN
426
- ------------------------------------------------------------------------------------------------
427
- PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0001_anonymous
428
- ------------------------------------------------------------------------------------------------
429
-  (0.1ms) SAVEPOINT active_record_1
430
-  (0.1ms) RELEASE SAVEPOINT active_record_1
431
-  (0.1ms) SAVEPOINT active_record_1
432
-  (0.1ms) SAVEPOINT active_record_2
433
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
434
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
435
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "01c76d25c3a4ef088dcdb139c01a226acd94445a8eb360b1d6b8b7d7425c9527"]]
436
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", "2015-02-08 15:04:01.651992"], ["updated_at", "2015-02-08 15:04:01.651992"], ["confirmation_token", "01c76d25c3a4ef088dcdb139c01a226acd94445a8eb360b1d6b8b7d7425c9527"], ["confirmation_sent_at", "2015-02-08 15:04:01.652874"]]
409
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "65781538ca65fe62ff3126974139bd995246ab2eb884e6cf28ee69487ebcb03b"]]
410
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", "2015-02-09 20:44:23.353088"], ["updated_at", "2015-02-09 20:44:23.353088"], ["confirmation_token", "65781538ca65fe62ff3126974139bd995246ab2eb884e6cf28ee69487ebcb03b"], ["confirmation_sent_at", "2015-02-09 20:44:23.353909"]]
437
411
  Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.8ms)
438
412
 
439
413
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
440
414
 
441
- Sent mail to joe-11@example.com (1.5ms)
442
- Date: Sun, 08 Feb 2015 15:04:01 +0000
415
+ Sent mail to joe-10@example.com (1.7ms)
416
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
443
417
  From: please-change-me-at-config-initializers-devise@example.com
444
418
  Reply-To: please-change-me-at-config-initializers-devise@example.com
445
- To: joe-11@example.com
446
- Message-ID: <54d77ae1a0758_185d3fd58d065bec4603e@Aarons-iMac.local.mail>
419
+ To: joe-10@example.com
420
+ Message-ID: <54d91c2757755_2a843fd7f8465be43967f@Aarons-iMac.local.mail>
447
421
  Subject: Confirmation instructions
448
422
  Mime-Version: 1.0
449
423
  Content-Type: text/html;
450
424
  charset=UTF-8
451
425
  Content-Transfer-Encoding: 7bit
452
426
 
453
- <p>Welcome joe-11@example.com!</p>
427
+ <p>Welcome joe-10@example.com!</p>
454
428
 
455
429
  <p>You can confirm your account email through the link below:</p>
456
430
 
457
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=TsAxi5vQVJhhSEuh8FTF">Confirm my account</a></p>
431
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=nJ7tMnYW9FVgHAk4oFCG">Confirm my account</a></p>
458
432
 
459
433
   (0.1ms) RELEASE SAVEPOINT active_record_2
460
- Processing by PushType::ConfirmationsController#show as HTML
461
- Parameters: {"confirmation_token"=>"TsAxi5vQVJhhSEuh8FTF"}
462
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "01c76d25c3a4ef088dcdb139c01a226acd94445a8eb360b1d6b8b7d7425c9527"]]
463
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.9ms)
464
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.7ms)
465
- Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms)
466
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
467
-  (0.1ms) ROLLBACK
468
-  (0.1ms) BEGIN
469
- ------------------------------------------------------------------------------------------------
470
- PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0002_anonymous
471
- ------------------------------------------------------------------------------------------------
472
-  (0.1ms) SAVEPOINT active_record_1
473
-  (0.0ms) RELEASE SAVEPOINT active_record_1
474
-  (0.0ms) SAVEPOINT active_record_1
434
+ Processing by PushType::UsersController#invite as HTML
435
+ Parameters: {"id"=>"5bf8e58c-bd6a-4fdb-a89b-52d55a4f9058"}
436
+ PushType::User Load (0.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", "a9717656-41c2-429b-92ff-1f14372abdd2"]]
437
+ PushType::User Load (0.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", "5bf8e58c-bd6a-4fdb-a89b-52d55a4f9058"]]
438
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "a77c4da04f02e0259b97d82f94908304efd72723371166e25e8288a76f5ccffe"]]
475
439
   (0.1ms) SAVEPOINT active_record_2
476
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
477
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
478
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ba3d0b2c232d41d2509aa652e5bf5a741fe0629eccdd37a6dbd5e264790b40a6"]]
479
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", "2015-02-08 15:04:01.671754"], ["updated_at", "2015-02-08 15:04:01.671754"], ["confirmation_token", "ba3d0b2c232d41d2509aa652e5bf5a741fe0629eccdd37a6dbd5e264790b40a6"], ["confirmation_sent_at", "2015-02-08 15:04:01.672626"]]
480
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.8ms)
440
+ SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmation_sent_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["confirmation_token", "a77c4da04f02e0259b97d82f94908304efd72723371166e25e8288a76f5ccffe"], ["confirmation_sent_at", "2015-02-09 20:44:23.365124"], ["updated_at", "2015-02-09 20:44:23.365484"], ["id", "5bf8e58c-bd6a-4fdb-a89b-52d55a4f9058"]]
441
+  (0.1ms) RELEASE SAVEPOINT active_record_2
442
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.6ms)
481
443
 
482
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
444
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
483
445
 
484
- Sent mail to joe-12@example.com (1.5ms)
485
- Date: Sun, 08 Feb 2015 15:04:01 +0000
446
+ Sent mail to joe-10@example.com (1.5ms)
447
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
486
448
  From: please-change-me-at-config-initializers-devise@example.com
487
449
  Reply-To: please-change-me-at-config-initializers-devise@example.com
488
- To: joe-12@example.com
489
- Message-ID: <54d77ae1a54b0_185d3fd58d065bec461bb@Aarons-iMac.local.mail>
450
+ To: joe-10@example.com
451
+ Message-ID: <54d91c275a4bf_2a843fd7f8465be439772@Aarons-iMac.local.mail>
490
452
  Subject: Confirmation instructions
491
453
  Mime-Version: 1.0
492
454
  Content-Type: text/html;
493
455
  charset=UTF-8
494
456
  Content-Transfer-Encoding: 7bit
495
457
 
496
- <p>Welcome joe-12@example.com!</p>
458
+ <p>Welcome joe-10@example.com!</p>
497
459
 
498
460
  <p>You can confirm your account email through the link below:</p>
499
461
 
500
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=NpNseeSq2FacCtzBMYR5">Confirm my account</a></p>
462
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=dtD2BzdejVEinqxuuXCQ">Confirm my account</a></p>
501
463
 
502
-  (0.1ms) RELEASE SAVEPOINT active_record_2
503
- Processing by PushType::ConfirmationsController#show as HTML
504
- Parameters: {"confirmation_token"=>"NpNseeSq2FacCtzBMYR5"}
505
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ba3d0b2c232d41d2509aa652e5bf5a741fe0629eccdd37a6dbd5e264790b40a6"]]
506
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.9ms)
507
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.3ms)
508
- Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms)
464
+ Redirected to /push_type/users
465
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
509
466
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
510
467
   (0.1ms) ROLLBACK
511
468
   (0.1ms) BEGIN
512
- ---------------------------------------------------------------------------------
513
- PushType::ProfilesController::PUT #update::with invalid user: test_0002_anonymous
514
- ---------------------------------------------------------------------------------
469
+ ------------------------------------------------------------
470
+ PushType::ProfilesController::GET #edit: test_0001_anonymous
471
+ ------------------------------------------------------------
515
472
   (0.1ms) SAVEPOINT active_record_1
516
473
   (0.1ms) RELEASE SAVEPOINT active_record_1
517
474
   (0.1ms) SAVEPOINT active_record_1
518
475
   (0.1ms) SAVEPOINT active_record_2
519
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
520
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
521
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.690289"], ["confirmed_at", "2015-02-08 15:04:01.690404"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.692105"], ["updated_at", "2015-02-08 15:04:01.692105"]]
476
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
477
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
478
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.373742"], ["confirmed_at", "2015-02-09 20:44:23.373852"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.375721"], ["updated_at", "2015-02-09 20:44:23.375721"]]
522
479
   (0.1ms) RELEASE SAVEPOINT active_record_2
523
- Processing by PushType::ProfilesController#update as HTML
524
- Parameters: {"user"=>{"name"=>""}}
525
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "57452365-f1e7-4e7a-9a77-70363f82f578"]]
480
+ Processing by PushType::ProfilesController#edit as HTML
481
+ PushType::User Load (0.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", "613a37bd-b5e7-40c3-88f5-4426a14ab217"]]
482
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (4.5ms)
483
+ Completed 200 OK in 85ms (Views: 83.1ms | ActiveRecord: 0.1ms)
484
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
485
+  (0.1ms) ROLLBACK
486
+  (0.1ms) BEGIN
487
+ ------------------------------------------------------------
488
+ PushType::ProfilesController::GET #edit: test_0002_anonymous
489
+ ------------------------------------------------------------
490
+  (0.0ms) SAVEPOINT active_record_1
491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
492
+  (0.0ms) SAVEPOINT active_record_1
526
493
   (0.1ms) SAVEPOINT active_record_2
527
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-13@example.com' AND "push_type_users"."id" != '57452365-f1e7-4e7a-9a77-70363f82f578') LIMIT 1
528
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
529
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (4.4ms)
530
- Completed 200 OK in 19ms (Views: 14.5ms | ActiveRecord: 0.5ms)
531
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
532
-  (0.1ms) ROLLBACK
533
-  (0.1ms) BEGIN
534
- ---------------------------------------------------------------------------------
535
- PushType::ProfilesController::PUT #update::with invalid user: test_0001_anonymous
536
- ---------------------------------------------------------------------------------
537
-  (0.1ms) SAVEPOINT active_record_1
538
-  (0.0ms) RELEASE SAVEPOINT active_record_1
539
-  (0.0ms) SAVEPOINT active_record_1
540
-  (0.1ms) SAVEPOINT active_record_2
541
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
542
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
543
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.716617"], ["confirmed_at", "2015-02-08 15:04:01.716732"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.718373"], ["updated_at", "2015-02-08 15:04:01.718373"]]
544
-  (0.1ms) RELEASE SAVEPOINT active_record_2
545
- Processing by PushType::ProfilesController#update as HTML
546
- Parameters: {"user"=>{"name"=>""}}
547
- PushType::User Load (0.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", "add190bf-aed6-4226-9fcc-74eaf98adb38"]]
548
-  (0.1ms) SAVEPOINT active_record_2
549
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-14@example.com' AND "push_type_users"."id" != 'add190bf-aed6-4226-9fcc-74eaf98adb38') LIMIT 1
550
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
551
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (5.0ms)
552
- Completed 200 OK in 20ms (Views: 15.6ms | ActiveRecord: 0.5ms)
494
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
495
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
496
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.466541"], ["confirmed_at", "2015-02-09 20:44:23.466657"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.468331"], ["updated_at", "2015-02-09 20:44:23.468331"]]
497
+  (0.1ms) RELEASE SAVEPOINT active_record_2
498
+ Processing by PushType::ProfilesController#edit as HTML
499
+ PushType::User Load (0.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", "fa6ae11b-93a2-4849-ae26-7155e687c19e"]]
500
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (4.2ms)
501
+ Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 0.1ms)
553
502
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
554
503
   (0.1ms) ROLLBACK
555
504
   (0.1ms) BEGIN
556
- ------------------------------------------------------------------------------------
557
- PushType::ConfirmationsController::PUT #update::with valid user: test_0001_anonymous
558
- ------------------------------------------------------------------------------------
505
+ --------------------------------------------------------------------------------------
506
+ PushType::ConfirmationsController::PUT #update::with invalid user: test_0003_anonymous
507
+ --------------------------------------------------------------------------------------
559
508
   (0.1ms) SAVEPOINT active_record_1
560
509
   (0.1ms) RELEASE SAVEPOINT active_record_1
561
510
   (0.1ms) SAVEPOINT active_record_1
562
511
   (0.1ms) SAVEPOINT active_record_2
563
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
564
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
565
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "33c9b9ea6da626e6146d3c3701f851cd19792880dffca609a51bb05a73612c0b"]]
566
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", "2015-02-08 15:04:01.747951"], ["updated_at", "2015-02-08 15:04:01.747951"], ["confirmation_token", "33c9b9ea6da626e6146d3c3701f851cd19792880dffca609a51bb05a73612c0b"], ["confirmation_sent_at", "2015-02-08 15:04:01.748903"]]
512
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
513
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
514
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5034c93a269f54cb99441c49e98bb35c408d410fe5876f402473d967aa741842"]]
515
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["created_at", "2015-02-09 20:44:23.493093"], ["updated_at", "2015-02-09 20:44:23.493093"], ["confirmation_token", "5034c93a269f54cb99441c49e98bb35c408d410fe5876f402473d967aa741842"], ["confirmation_sent_at", "2015-02-09 20:44:23.494036"]]
567
516
  Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.0ms)
568
517
 
569
518
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
570
519
 
571
- Sent mail to joe-15@example.com (1.5ms)
572
- Date: Sun, 08 Feb 2015 15:04:01 +0000
520
+ Sent mail to joe-13@example.com (1.5ms)
521
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
573
522
  From: please-change-me-at-config-initializers-devise@example.com
574
523
  Reply-To: please-change-me-at-config-initializers-devise@example.com
575
- To: joe-15@example.com
576
- Message-ID: <54d77ae1b7f40_185d3fd58d065bec4622e@Aarons-iMac.local.mail>
524
+ To: joe-13@example.com
525
+ Message-ID: <54d91c2779c34_2a843fd7f8465be43987b@Aarons-iMac.local.mail>
577
526
  Subject: Confirmation instructions
578
527
  Mime-Version: 1.0
579
528
  Content-Type: text/html;
580
529
  charset=UTF-8
581
530
  Content-Transfer-Encoding: 7bit
582
531
 
583
- <p>Welcome joe-15@example.com!</p>
532
+ <p>Welcome joe-13@example.com!</p>
584
533
 
585
534
  <p>You can confirm your account email through the link below:</p>
586
535
 
587
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=6k4PRKeFRTKDYGMNBRVs">Confirm my account</a></p>
536
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=sLpPJtrwxqvmf6DT9DvJ">Confirm my account</a></p>
588
537
 
589
538
   (0.1ms) RELEASE SAVEPOINT active_record_2
590
539
  Processing by PushType::ConfirmationsController#update as HTML
591
- Parameters: {"user"=>{"confirmation_token"=>"6k4PRKeFRTKDYGMNBRVs", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
592
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "33c9b9ea6da626e6146d3c3701f851cd19792880dffca609a51bb05a73612c0b"]]
593
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-15@example.com' AND "push_type_users"."id" != '188af7e5-f18c-47c1-9b2d-fa0f9d914a06') LIMIT 1
540
+ Parameters: {"user"=>{"confirmation_token"=>"sLpPJtrwxqvmf6DT9DvJ", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
541
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5034c93a269f54cb99441c49e98bb35c408d410fe5876f402473d967aa741842"]]
542
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-13@example.com' AND "push_type_users"."id" != '60849f52-3a91-4e10-8e5b-8753ee7e5fc7') LIMIT 1
543
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (4.9ms)
544
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (12.6ms)
545
+ Completed 200 OK in 19ms (Views: 16.3ms | ActiveRecord: 0.4ms)
546
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
547
+  (0.1ms) ROLLBACK
548
+  (0.1ms) BEGIN
549
+ --------------------------------------------------------------------------------------
550
+ PushType::ConfirmationsController::PUT #update::with invalid user: test_0002_anonymous
551
+ --------------------------------------------------------------------------------------
552
+  (0.1ms) SAVEPOINT active_record_1
553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
554
+  (0.0ms) SAVEPOINT active_record_1
594
555
   (0.1ms) SAVEPOINT active_record_2
595
- SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "encrypted_password" = $2, "confirmed_at" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = $5 [["confirmation_token", nil], ["encrypted_password", "$2a$04$UeP50A13.qvqK3e2IORIAOKs/7SLCxaanmXQL4a1Q7pZRECFheBae"], ["confirmed_at", "2015-02-08 15:04:01.759623"], ["updated_at", "2015-02-08 15:04:01.759979"], ["id", "188af7e5-f18c-47c1-9b2d-fa0f9d914a06"]]
596
-  (0.1ms) RELEASE SAVEPOINT active_record_2
597
-  (0.1ms) SAVEPOINT active_record_2
598
- SQL (0.2ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-02-08 15:04:01.761475"], ["current_sign_in_at", "2015-02-08 15:04:01.761475"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-02-08 15:04:01.762316"], ["id", "188af7e5-f18c-47c1-9b2d-fa0f9d914a06"]]
599
-  (0.1ms) RELEASE SAVEPOINT active_record_2
600
- Redirected to http://test.host/push_type/
601
- Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
602
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "188af7e5-f18c-47c1-9b2d-fa0f9d914a06"]]
603
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
604
-  (0.1ms) ROLLBACK
605
-  (0.1ms) BEGIN
606
- ------------------------------------------------------------------------------------
607
- PushType::ConfirmationsController::PUT #update::with valid user: test_0002_anonymous
608
- ------------------------------------------------------------------------------------
609
-  (0.0ms) SAVEPOINT active_record_1
610
-  (0.0ms) RELEASE SAVEPOINT active_record_1
611
-  (0.0ms) SAVEPOINT active_record_1
612
-  (0.1ms) SAVEPOINT active_record_2
613
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
614
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
615
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "be489c4e48a0f096cf6d281edbda6c56e46ad586a26e18a3c2831f7ecc08a93c"]]
616
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", "2015-02-08 15:04:01.769214"], ["updated_at", "2015-02-08 15:04:01.769214"], ["confirmation_token", "be489c4e48a0f096cf6d281edbda6c56e46ad586a26e18a3c2831f7ecc08a93c"], ["confirmation_sent_at", "2015-02-08 15:04:01.770032"]]
617
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.9ms)
556
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
557
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
558
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ab69ac2275e595941a883d73f207ae37a4610c2bbec8e73546db44ca1cfbf4f5"]]
559
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", "2015-02-09 20:44:23.524911"], ["updated_at", "2015-02-09 20:44:23.524911"], ["confirmation_token", "ab69ac2275e595941a883d73f207ae37a4610c2bbec8e73546db44ca1cfbf4f5"], ["confirmation_sent_at", "2015-02-09 20:44:23.525807"]]
560
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.8ms)
618
561
 
619
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
562
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
620
563
 
621
- Sent mail to joe-16@example.com (1.5ms)
622
- Date: Sun, 08 Feb 2015 15:04:01 +0000
564
+ Sent mail to joe-14@example.com (1.5ms)
565
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
623
566
  From: please-change-me-at-config-initializers-devise@example.com
624
567
  Reply-To: please-change-me-at-config-initializers-devise@example.com
625
- To: joe-16@example.com
626
- Message-ID: <54d77ae1bd122_185d3fd58d065bec463b@Aarons-iMac.local.mail>
568
+ To: joe-14@example.com
569
+ Message-ID: <54d91c2781734_2a843fd7f8465be4399b6@Aarons-iMac.local.mail>
627
570
  Subject: Confirmation instructions
628
571
  Mime-Version: 1.0
629
572
  Content-Type: text/html;
630
573
  charset=UTF-8
631
574
  Content-Transfer-Encoding: 7bit
632
575
 
633
- <p>Welcome joe-16@example.com!</p>
576
+ <p>Welcome joe-14@example.com!</p>
634
577
 
635
578
  <p>You can confirm your account email through the link below:</p>
636
579
 
637
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=yBbgv-4iyaq5m3zA5HMB">Confirm my account</a></p>
580
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=N5MPPCnzsQJux-GKd7jz">Confirm my account</a></p>
638
581
 
639
-  (0.1ms) RELEASE SAVEPOINT active_record_2
640
- Processing by PushType::ConfirmationsController#update as HTML
641
- Parameters: {"user"=>{"confirmation_token"=>"yBbgv-4iyaq5m3zA5HMB", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
642
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "be489c4e48a0f096cf6d281edbda6c56e46ad586a26e18a3c2831f7ecc08a93c"]]
643
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-16@example.com' AND "push_type_users"."id" != '5ea74e45-574f-4e84-9467-ce0f6dc31bb3') LIMIT 1
644
-  (0.1ms) SAVEPOINT active_record_2
645
- SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "encrypted_password" = $2, "confirmed_at" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = $5 [["confirmation_token", nil], ["encrypted_password", "$2a$04$7XHI8HzsavkFGe1XhCeOIu.6e3HbjEfpCxsVkb79lZvDQliWmzuUq"], ["confirmed_at", "2015-02-08 15:04:01.780705"], ["updated_at", "2015-02-08 15:04:01.781046"], ["id", "5ea74e45-574f-4e84-9467-ce0f6dc31bb3"]]
646
-  (0.1ms) RELEASE SAVEPOINT active_record_2
647
-  (0.1ms) SAVEPOINT active_record_2
648
- SQL (0.1ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-02-08 15:04:01.782285"], ["current_sign_in_at", "2015-02-08 15:04:01.782285"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-02-08 15:04:01.782862"], ["id", "5ea74e45-574f-4e84-9467-ce0f6dc31bb3"]]
649
-  (0.1ms) RELEASE SAVEPOINT active_record_2
650
- Redirected to http://test.host/push_type/
651
- Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
652
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
653
-  (0.1ms) ROLLBACK
654
-  (0.1ms) BEGIN
655
- -----------------------------------------------------------
656
- PushType::UsersController::PUT #invite: test_0001_anonymous
657
- -----------------------------------------------------------
658
-  (0.1ms) SAVEPOINT active_record_1
659
-  (0.1ms) RELEASE SAVEPOINT active_record_1
660
-  (0.1ms) SAVEPOINT active_record_1
661
-  (0.1ms) SAVEPOINT active_record_2
662
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
663
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
664
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.789047"], ["confirmed_at", "2015-02-08 15:04:01.789160"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.790823"], ["updated_at", "2015-02-08 15:04:01.790823"]]
665
582
   (0.1ms) RELEASE SAVEPOINT active_record_2
583
+ Processing by PushType::ConfirmationsController#update as HTML
584
+ Parameters: {"user"=>{"confirmation_token"=>"N5MPPCnzsQJux-GKd7jz", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
585
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ab69ac2275e595941a883d73f207ae37a4610c2bbec8e73546db44ca1cfbf4f5"]]
586
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-14@example.com' AND "push_type_users"."id" != 'e5481b30-8b92-45f2-a069-d854bb6bddb7') LIMIT 1
587
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.7ms)
588
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.3ms)
589
+ Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.3ms)
590
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
591
+  (0.1ms) ROLLBACK
592
+  (0.1ms) BEGIN
593
+ --------------------------------------------------------------------------------------
594
+ PushType::ConfirmationsController::PUT #update::with invalid user: test_0001_anonymous
595
+ --------------------------------------------------------------------------------------
596
+  (0.1ms) SAVEPOINT active_record_1
597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
598
+  (0.0ms) SAVEPOINT active_record_1
666
599
   (0.1ms) SAVEPOINT active_record_2
667
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
668
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
669
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "e3d79f2501ecc30a7e50fc53488a8fc3c576f3ca5a7ed557b86ddf4475473082"]]
670
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", "2015-02-08 15:04:01.793867"], ["updated_at", "2015-02-08 15:04:01.793867"], ["confirmation_token", "e3d79f2501ecc30a7e50fc53488a8fc3c576f3ca5a7ed557b86ddf4475473082"], ["confirmation_sent_at", "2015-02-08 15:04:01.794720"]]
671
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.0ms)
600
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
601
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
602
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "c921ecc9bc9d5bd8a0d99d7d7640761c2e899c66b08ff2639b1777dabb8c7437"]]
603
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", "2015-02-09 20:44:23.545801"], ["updated_at", "2015-02-09 20:44:23.545801"], ["confirmation_token", "c921ecc9bc9d5bd8a0d99d7d7640761c2e899c66b08ff2639b1777dabb8c7437"], ["confirmation_sent_at", "2015-02-09 20:44:23.546705"]]
604
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.8ms)
672
605
 
673
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
606
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
674
607
 
675
- Sent mail to joe-18@example.com (1.5ms)
676
- Date: Sun, 08 Feb 2015 15:04:01 +0000
608
+ Sent mail to joe-15@example.com (1.5ms)
609
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
677
610
  From: please-change-me-at-config-initializers-devise@example.com
678
611
  Reply-To: please-change-me-at-config-initializers-devise@example.com
679
- To: joe-18@example.com
680
- Message-ID: <54d77ae1c31ef_185d3fd58d065bec46452@Aarons-iMac.local.mail>
612
+ To: joe-15@example.com
613
+ Message-ID: <54d91c27868a3_2a843fd7f8465be44006f@Aarons-iMac.local.mail>
681
614
  Subject: Confirmation instructions
682
615
  Mime-Version: 1.0
683
616
  Content-Type: text/html;
684
617
  charset=UTF-8
685
618
  Content-Transfer-Encoding: 7bit
686
619
 
687
- <p>Welcome joe-18@example.com!</p>
620
+ <p>Welcome joe-15@example.com!</p>
688
621
 
689
622
  <p>You can confirm your account email through the link below:</p>
690
623
 
691
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=Lg33LskxtgQr4iK-DcaP">Confirm my account</a></p>
624
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=pggcwEvx9Mm6G_XD1Z81">Confirm my account</a></p>
692
625
 
693
626
   (0.1ms) RELEASE SAVEPOINT active_record_2
694
- Processing by PushType::UsersController#invite as HTML
695
- Parameters: {"id"=>"efebb41e-bafb-43f1-8340-c4440db75612"}
696
- PushType::User Load (0.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", "68a78e69-fc81-4145-b68f-b965eae488a0"]]
697
- PushType::User Load (0.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", "efebb41e-bafb-43f1-8340-c4440db75612"]]
698
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "2f731f48b809732f87a93e93ce0507b5d279050e7e72c079721be5e1c8ebabaf"]]
699
-  (0.1ms) SAVEPOINT active_record_2
700
- SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmation_sent_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["confirmation_token", "2f731f48b809732f87a93e93ce0507b5d279050e7e72c079721be5e1c8ebabaf"], ["confirmation_sent_at", "2015-02-08 15:04:01.805966"], ["updated_at", "2015-02-08 15:04:01.806337"], ["id", "efebb41e-bafb-43f1-8340-c4440db75612"]]
701
-  (0.1ms) RELEASE SAVEPOINT active_record_2
627
+ Processing by PushType::ConfirmationsController#update as HTML
628
+ Parameters: {"user"=>{"confirmation_token"=>"pggcwEvx9Mm6G_XD1Z81", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
629
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "c921ecc9bc9d5bd8a0d99d7d7640761c2e899c66b08ff2639b1777dabb8c7437"]]
630
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-15@example.com' AND "push_type_users"."id" != 'aa22b5f9-5cbf-42fb-835b-cbf8ea6710bd') LIMIT 1
631
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.7ms)
632
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.5ms)
633
+ Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.4ms)
634
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
635
+  (0.1ms) ROLLBACK
636
+  (0.1ms) BEGIN
637
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
638
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
639
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "8fdc36b85fd0557335b182869a40361cd176937c52618c84fd42aa47dded7159"]]
640
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", "2015-02-09 20:44:23.566426"], ["updated_at", "2015-02-09 20:44:23.566426"], ["confirmation_token", "8fdc36b85fd0557335b182869a40361cd176937c52618c84fd42aa47dded7159"], ["confirmation_sent_at", "2015-02-09 20:44:23.567312"]]
702
641
  Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.7ms)
703
642
 
704
643
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
705
644
 
706
- Sent mail to joe-18@example.com (1.6ms)
707
- Date: Sun, 08 Feb 2015 15:04:01 +0000
645
+ Sent mail to joe-16@example.com (1.6ms)
646
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
708
647
  From: please-change-me-at-config-initializers-devise@example.com
709
648
  Reply-To: please-change-me-at-config-initializers-devise@example.com
710
- To: joe-18@example.com
711
- Message-ID: <54d77ae1c60c2_185d3fd58d065bec4657d@Aarons-iMac.local.mail>
649
+ To: joe-16@example.com
650
+ Message-ID: <54d91c278b8dc_2a843fd7f8465be44016@Aarons-iMac.local.mail>
712
651
  Subject: Confirmation instructions
713
652
  Mime-Version: 1.0
714
653
  Content-Type: text/html;
715
654
  charset=UTF-8
716
655
  Content-Transfer-Encoding: 7bit
717
656
 
718
- <p>Welcome joe-18@example.com!</p>
657
+ <p>Welcome joe-16@example.com!</p>
719
658
 
720
659
  <p>You can confirm your account email through the link below:</p>
721
660
 
722
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=k2TmVy9xyHsAZpkx5zE5">Confirm my account</a></p>
661
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=wujmJHQf3dncrV_qzpf8">Confirm my account</a></p>
723
662
 
724
- Redirected to /push_type/users
725
- Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
726
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
727
-  (0.1ms) ROLLBACK
663
+  (0.4ms) COMMIT
728
664
   (0.1ms) BEGIN
729
- -----------------------------------------------------------
730
- PushType::UsersController::PUT #invite: test_0002_anonymous
731
- -----------------------------------------------------------
732
-  (0.1ms) SAVEPOINT active_record_1
733
-  (0.0ms) RELEASE SAVEPOINT active_record_1
734
-  (0.1ms) SAVEPOINT active_record_1
735
-  (0.1ms) SAVEPOINT active_record_2
736
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
737
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
738
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.814568"], ["confirmed_at", "2015-02-08 15:04:01.814679"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.816327"], ["updated_at", "2015-02-08 15:04:01.816327"]]
739
-  (0.1ms) RELEASE SAVEPOINT active_record_2
740
-  (0.1ms) SAVEPOINT active_record_2
741
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
742
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
743
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "b4b72f1bcfc890d0e55ce9691548470288978d3c7ca88d45a3a5de75ac5c1df2"]]
744
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", "2015-02-08 15:04:01.819169"], ["updated_at", "2015-02-08 15:04:01.819169"], ["confirmation_token", "b4b72f1bcfc890d0e55ce9691548470288978d3c7ca88d45a3a5de75ac5c1df2"], ["confirmation_sent_at", "2015-02-08 15:04:01.820006"]]
665
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
666
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
667
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "229fa67d09fcc5b7f5a46a63cbeb4557ee39a89f8e7b712893ddb9e442f888df"]]
668
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", "2015-02-09 20:44:23.576273"], ["updated_at", "2015-02-09 20:44:23.576273"], ["confirmation_token", "229fa67d09fcc5b7f5a46a63cbeb4557ee39a89f8e7b712893ddb9e442f888df"], ["confirmation_sent_at", "2015-02-09 20:44:23.577178"]]
745
669
  Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.0ms)
746
670
 
747
671
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
748
672
 
749
- Sent mail to joe-20@example.com (1.5ms)
750
- Date: Sun, 08 Feb 2015 15:04:01 +0000
673
+ Sent mail to joe-17@example.com (1.6ms)
674
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
751
675
  From: please-change-me-at-config-initializers-devise@example.com
752
676
  Reply-To: please-change-me-at-config-initializers-devise@example.com
753
- To: joe-20@example.com
754
- Message-ID: <54d77ae1c9482_185d3fd58d065bec46650@Aarons-iMac.local.mail>
677
+ To: joe-17@example.com
678
+ Message-ID: <54d91c278e08f_2a843fd7f8465be44024e@Aarons-iMac.local.mail>
755
679
  Subject: Confirmation instructions
756
680
  Mime-Version: 1.0
757
681
  Content-Type: text/html;
758
682
  charset=UTF-8
759
683
  Content-Transfer-Encoding: 7bit
760
684
 
761
- <p>Welcome joe-20@example.com!</p>
685
+ <p>Welcome joe-17@example.com!</p>
762
686
 
763
687
  <p>You can confirm your account email through the link below:</p>
764
688
 
765
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=X6bRvSRzHzgjTu7xwWXW">Confirm my account</a></p>
689
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=buuER_ELSCdFyzx_4sXz">Confirm my account</a></p>
766
690
 
767
-  (0.1ms) RELEASE SAVEPOINT active_record_2
768
- Processing by PushType::UsersController#invite as HTML
769
- Parameters: {"id"=>"907e6f1d-4372-4fda-a01c-a18cff78966c"}
770
- PushType::User Load (0.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", "1de8f8b2-00d2-4edd-b04b-18cfbf423bb1"]]
771
- PushType::User Load (0.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", "907e6f1d-4372-4fda-a01c-a18cff78966c"]]
772
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "dfad694d5589852d2c79658f32f0a61c5f2a5a70f427752fa96cfc1d756b12da"]]
691
+  (0.3ms) COMMIT
692
+  (0.1ms) BEGIN
693
+ ------------------------------------------------------------------------------------------------
694
+ PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0001_anonymous
695
+ ------------------------------------------------------------------------------------------------
696
+  (0.1ms) SAVEPOINT active_record_1
697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
698
+  (0.0ms) SAVEPOINT active_record_1
773
699
   (0.1ms) SAVEPOINT active_record_2
774
- SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmation_sent_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["confirmation_token", "dfad694d5589852d2c79658f32f0a61c5f2a5a70f427752fa96cfc1d756b12da"], ["confirmation_sent_at", "2015-02-08 15:04:01.830699"], ["updated_at", "2015-02-08 15:04:01.831178"], ["id", "907e6f1d-4372-4fda-a01c-a18cff78966c"]]
775
-  (0.1ms) RELEASE SAVEPOINT active_record_2
776
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.6ms)
700
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
701
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
702
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "4ec50273acff67e16bfc167e405c4f934bec6bd1bedf61d38361e56693d2fdf1"]]
703
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", "2015-02-09 20:44:23.591387"], ["updated_at", "2015-02-09 20:44:23.591387"], ["confirmation_token", "4ec50273acff67e16bfc167e405c4f934bec6bd1bedf61d38361e56693d2fdf1"], ["confirmation_sent_at", "2015-02-09 20:44:23.592288"]]
704
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.5ms)
777
705
 
778
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
706
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.4ms
779
707
 
780
- Sent mail to joe-20@example.com (1.5ms)
781
- Date: Sun, 08 Feb 2015 15:04:01 +0000
708
+ Sent mail to joe-18@example.com (1.5ms)
709
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
782
710
  From: please-change-me-at-config-initializers-devise@example.com
783
711
  Reply-To: please-change-me-at-config-initializers-devise@example.com
784
- To: joe-20@example.com
785
- Message-ID: <54d77ae1cc03b_185d3fd58d065bec467b1@Aarons-iMac.local.mail>
712
+ To: joe-18@example.com
713
+ Message-ID: <54d91c2791dcd_2a843fd7f8465be4403d2@Aarons-iMac.local.mail>
786
714
  Subject: Confirmation instructions
787
715
  Mime-Version: 1.0
788
716
  Content-Type: text/html;
789
717
  charset=UTF-8
790
718
  Content-Transfer-Encoding: 7bit
791
719
 
792
- <p>Welcome joe-20@example.com!</p>
720
+ <p>Welcome joe-18@example.com!</p>
793
721
 
794
722
  <p>You can confirm your account email through the link below:</p>
795
723
 
796
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=5m56CK8ugpSQUfRwRpp6">Confirm my account</a></p>
724
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=2nwkyCA2vz_JWPpYRxju">Confirm my account</a></p>
797
725
 
798
- Redirected to /push_type/users
799
- Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
726
+  (0.1ms) RELEASE SAVEPOINT active_record_2
727
+ Processing by PushType::ConfirmationsController#show as HTML
728
+ Parameters: {"confirmation_token"=>"2nwkyCA2vz_JWPpYRxju"}
729
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "4ec50273acff67e16bfc167e405c4f934bec6bd1bedf61d38361e56693d2fdf1"]]
730
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.9ms)
731
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.4ms)
732
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms)
800
733
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
801
734
   (0.1ms) ROLLBACK
802
735
   (0.1ms) BEGIN
803
- -----------------------------------------------------------
804
- PushType::UsersController::PUT #invite: test_0003_anonymous
805
- -----------------------------------------------------------
736
+ ------------------------------------------------------------------------------------------------
737
+ PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0002_anonymous
738
+ ------------------------------------------------------------------------------------------------
806
739
   (0.1ms) SAVEPOINT active_record_1
807
740
   (0.0ms) RELEASE SAVEPOINT active_record_1
808
741
   (0.0ms) SAVEPOINT active_record_1
809
742
   (0.1ms) SAVEPOINT active_record_2
810
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
811
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
812
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["confirmation_sent_at", "2015-02-08 15:04:01.839033"], ["confirmed_at", "2015-02-08 15:04:01.839144"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-08 15:04:01.840926"], ["updated_at", "2015-02-08 15:04:01.840926"]]
813
-  (0.1ms) RELEASE SAVEPOINT active_record_2
814
-  (0.1ms) SAVEPOINT active_record_2
815
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
816
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
817
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "f4038c4678e0616c69f87060c732b7290fc39812329e495b8dece986ad48781a"]]
818
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["created_at", "2015-02-08 15:04:01.843851"], ["updated_at", "2015-02-08 15:04:01.843851"], ["confirmation_token", "f4038c4678e0616c69f87060c732b7290fc39812329e495b8dece986ad48781a"], ["confirmation_sent_at", "2015-02-08 15:04:01.844693"]]
743
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
744
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
745
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "87db0d6c3cac85312b074aa2f5b9ee557f425e69325fa11a67483b7ede98291d"]]
746
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", "2015-02-09 20:44:23.611841"], ["updated_at", "2015-02-09 20:44:23.611841"], ["confirmation_token", "87db0d6c3cac85312b074aa2f5b9ee557f425e69325fa11a67483b7ede98291d"], ["confirmation_sent_at", "2015-02-09 20:44:23.612745"]]
819
747
  Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.0ms)
820
748
 
821
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
749
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
822
750
 
823
- Sent mail to joe-22@example.com (1.5ms)
824
- Date: Sun, 08 Feb 2015 15:04:01 +0000
751
+ Sent mail to joe-19@example.com (1.5ms)
752
+ Date: Mon, 09 Feb 2015 20:44:23 +0000
825
753
  From: please-change-me-at-config-initializers-devise@example.com
826
754
  Reply-To: please-change-me-at-config-initializers-devise@example.com
827
- To: joe-22@example.com
828
- Message-ID: <54d77ae1cf4ea_185d3fd58d065bec468ed@Aarons-iMac.local.mail>
755
+ To: joe-19@example.com
756
+ Message-ID: <54d91c2796b80_2a843fd7f8465be4404f9@Aarons-iMac.local.mail>
829
757
  Subject: Confirmation instructions
830
758
  Mime-Version: 1.0
831
759
  Content-Type: text/html;
832
760
  charset=UTF-8
833
761
  Content-Transfer-Encoding: 7bit
834
762
 
835
- <p>Welcome joe-22@example.com!</p>
763
+ <p>Welcome joe-19@example.com!</p>
836
764
 
837
765
  <p>You can confirm your account email through the link below:</p>
838
766
 
839
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=_7jZkNXLiQsg5istksx3">Confirm my account</a></p>
767
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=MtCLNC795vCsG9xBNF8L">Confirm my account</a></p>
840
768
 
769
+  (0.1ms) RELEASE SAVEPOINT active_record_2
770
+ Processing by PushType::ConfirmationsController#show as HTML
771
+ Parameters: {"confirmation_token"=>"MtCLNC795vCsG9xBNF8L"}
772
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "87db0d6c3cac85312b074aa2f5b9ee557f425e69325fa11a67483b7ede98291d"]]
773
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (3.0ms)
774
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.9ms)
775
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
776
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
777
+  (0.1ms) ROLLBACK
778
+  (0.1ms) BEGIN
779
+ --------------------------------------------------------------------------------------------------
780
+ PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0001_anonymous
781
+ --------------------------------------------------------------------------------------------------
782
+  (0.1ms) SAVEPOINT active_record_1
783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
784
+  (0.0ms) SAVEPOINT active_record_1
785
+ Processing by PushType::ConfirmationsController#show as HTML
786
+ Parameters: {"confirmation_token"=>"invalid"}
787
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5e03f58ab7a9e45e5b53cb11d04a61cb89280f33f75b7f3593b25f24b7c91a89"]]
788
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5e03f58ab7a9e45e5b53cb11d04a61cb89280f33f75b7f3593b25f24b7c91a89"]]
789
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (2.8ms)
790
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (7.1ms)
791
+ Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.2ms)
792
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
793
+  (0.1ms) ROLLBACK
794
+  (0.1ms) BEGIN
795
+ --------------------------------------------------------------------------------------------------
796
+ PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0002_anonymous
797
+ --------------------------------------------------------------------------------------------------
798
+  (0.0ms) SAVEPOINT active_record_1
799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
800
+  (0.0ms) SAVEPOINT active_record_1
801
+ Processing by PushType::ConfirmationsController#show as HTML
802
+ Parameters: {"confirmation_token"=>"invalid"}
803
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5e03f58ab7a9e45e5b53cb11d04a61cb89280f33f75b7f3593b25f24b7c91a89"]]
804
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5e03f58ab7a9e45e5b53cb11d04a61cb89280f33f75b7f3593b25f24b7c91a89"]]
805
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/shared/_links.html.erb (3.0ms)
806
+ Rendered /Users/aaron/dev/push_type_split/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (5.4ms)
807
+ Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.2ms)
808
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
809
+  (0.1ms) ROLLBACK
810
+  (0.1ms) BEGIN
811
+ -------------------------------------------------------------------------------
812
+ PushType::ProfilesController::PUT #update::with valid user: test_0002_anonymous
813
+ -------------------------------------------------------------------------------
814
+  (0.1ms) SAVEPOINT active_record_1
815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
816
+  (0.0ms) SAVEPOINT active_record_1
817
+  (0.1ms) SAVEPOINT active_record_2
818
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
819
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
820
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.659588"], ["confirmed_at", "2015-02-09 20:44:23.659704"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.661682"], ["updated_at", "2015-02-09 20:44:23.661682"]]
821
+  (0.1ms) RELEASE SAVEPOINT active_record_2
822
+ Processing by PushType::ProfilesController#update as HTML
823
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
824
+ PushType::User Load (0.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", "5ffbdd84-98ce-47cc-a0c7-990c35836542"]]
825
+  (0.1ms) SAVEPOINT active_record_2
826
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-20@example.com' AND "push_type_users"."id" != '5ffbdd84-98ce-47cc-a0c7-990c35836542') LIMIT 1
827
+ SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-02-09 20:44:23.668431"], ["id", "5ffbdd84-98ce-47cc-a0c7-990c35836542"]]
841
828
   (0.1ms) RELEASE SAVEPOINT active_record_2
842
- Processing by PushType::UsersController#invite as HTML
843
- Parameters: {"id"=>"3dcb43e7-7ae7-4348-a0ec-f4c579bf6aab"}
844
- PushType::User Load (0.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", "d331c0e5-7486-4575-89d1-60a85e66a276"]]
845
- PushType::User Load (0.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", "3dcb43e7-7ae7-4348-a0ec-f4c579bf6aab"]]
846
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "b09a7781de6f81f461bdf5d6af6ae83a1352c3a16b5f27fea82c9d2f6abb3be9"]]
847
-  (0.1ms) SAVEPOINT active_record_2
848
- SQL (0.2ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmation_sent_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["confirmation_token", "b09a7781de6f81f461bdf5d6af6ae83a1352c3a16b5f27fea82c9d2f6abb3be9"], ["confirmation_sent_at", "2015-02-08 15:04:01.855258"], ["updated_at", "2015-02-08 15:04:01.855583"], ["id", "3dcb43e7-7ae7-4348-a0ec-f4c579bf6aab"]]
849
-  (0.1ms) RELEASE SAVEPOINT active_record_2
850
- Rendered /Users/aaron/dev/push_type_split/auth/app/views/devise/mailer/confirmation_instructions.html.erb (1.7ms)
851
-
852
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
853
-
854
- Sent mail to joe-22@example.com (1.5ms)
855
- Date: Sun, 08 Feb 2015 15:04:01 +0000
856
- From: please-change-me-at-config-initializers-devise@example.com
857
- Reply-To: please-change-me-at-config-initializers-devise@example.com
858
- To: joe-22@example.com
859
- Message-ID: <54d77ae1d1f90_185d3fd58d065bec469ba@Aarons-iMac.local.mail>
860
- Subject: Confirmation instructions
861
- Mime-Version: 1.0
862
- Content-Type: text/html;
863
- charset=UTF-8
864
- Content-Transfer-Encoding: 7bit
865
-
866
- <p>Welcome joe-22@example.com!</p>
867
-
868
- <p>You can confirm your account email through the link below:</p>
869
-
870
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=Y3yhyf8PCqPvzwQiCo1t">Confirm my account</a></p>
871
-
872
- Redirected to /push_type/users
873
- Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
829
+ Redirected to http://test.host/push_type/profile/edit
830
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
874
831
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
875
832
   (0.1ms) ROLLBACK
833
+  (0.1ms) BEGIN
834
+ -------------------------------------------------------------------------------
835
+ PushType::ProfilesController::PUT #update::with valid user: test_0001_anonymous
836
+ -------------------------------------------------------------------------------
837
+  (0.0ms) SAVEPOINT active_record_1
838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
839
+  (0.0ms) SAVEPOINT active_record_1
840
+  (0.1ms) SAVEPOINT active_record_2
841
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
842
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
843
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.673241"], ["confirmed_at", "2015-02-09 20:44:23.673347"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.674969"], ["updated_at", "2015-02-09 20:44:23.674969"]]
844
+  (0.1ms) RELEASE SAVEPOINT active_record_2
845
+ Processing by PushType::ProfilesController#update as HTML
846
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
847
+ PushType::User Load (0.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", "7d9ea463-669e-41b4-b763-01f0c61b4422"]]
848
+  (0.1ms) SAVEPOINT active_record_2
849
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-21@example.com' AND "push_type_users"."id" != '7d9ea463-669e-41b4-b763-01f0c61b4422') LIMIT 1
850
+ SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-02-09 20:44:23.681981"], ["id", "7d9ea463-669e-41b4-b763-01f0c61b4422"]]
851
+  (0.1ms) RELEASE SAVEPOINT active_record_2
852
+ Redirected to http://test.host/push_type/profile/edit
853
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
854
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "7d9ea463-669e-41b4-b763-01f0c61b4422"]]
855
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
856
+  (0.1ms) ROLLBACK
857
+  (0.1ms) BEGIN
858
+ -------------------------------------------------------------------------------
859
+ PushType::ProfilesController::PUT #update::with valid user: test_0003_anonymous
860
+ -------------------------------------------------------------------------------
861
+  (0.1ms) SAVEPOINT active_record_1
862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
863
+  (0.0ms) SAVEPOINT active_record_1
864
+  (0.1ms) SAVEPOINT active_record_2
865
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
866
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
867
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["confirmation_sent_at", "2015-02-09 20:44:23.687650"], ["confirmed_at", "2015-02-09 20:44:23.687756"], ["confirmation_token", "Generated account"], ["created_at", "2015-02-09 20:44:23.689364"], ["updated_at", "2015-02-09 20:44:23.689364"]]
868
+  (0.1ms) RELEASE SAVEPOINT active_record_2
869
+ Processing by PushType::ProfilesController#update as HTML
870
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
871
+ PushType::User Load (0.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", "6f36bee7-f66e-42f0-b80d-6815dfd5c16a"]]
872
+  (0.1ms) SAVEPOINT active_record_2
873
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-22@example.com' AND "push_type_users"."id" != '6f36bee7-f66e-42f0-b80d-6815dfd5c16a') LIMIT 1
874
+ SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-02-09 20:44:23.696003"], ["id", "6f36bee7-f66e-42f0-b80d-6815dfd5c16a"]]
875
+  (0.1ms) RELEASE SAVEPOINT active_record_2
876
+ Redirected to http://test.host/push_type/profile/edit
877
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
878
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
879
+  (0.1ms) ROLLBACK