push_type_auth 0.10.0.beta.3 → 0.10.0.beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/push_type/auth_controller.rb +17 -0
  3. data/app/helpers/push_type/auth_helper.rb +5 -0
  4. data/app/views/layouts/push_type/auth.html.erb +1 -1
  5. data/config/initializers/devise.rb +3 -0
  6. data/config/routes.rb +1 -1
  7. data/test/controllers/push_type/auth_controller_test.rb +7 -0
  8. data/test/dummy/config/initializers/push_type.rb +1 -1
  9. data/test/dummy/config/secrets.yml +2 -2
  10. data/test/dummy/db/migrate/{20161116222934_create_push_type_users.push_type.rb → 20161117154613_create_push_type_users.push_type.rb} +0 -0
  11. data/test/dummy/db/migrate/{20161116222935_create_push_type_nodes.push_type.rb → 20161117154614_create_push_type_nodes.push_type.rb} +0 -0
  12. data/test/dummy/db/migrate/{20161116222936_create_push_type_node_hierarchies.push_type.rb → 20161117154615_create_push_type_node_hierarchies.push_type.rb} +0 -0
  13. data/test/dummy/db/migrate/{20161116222937_create_push_type_assets.push_type.rb → 20161117154616_create_push_type_assets.push_type.rb} +0 -0
  14. data/test/dummy/db/migrate/{20161116222938_add_field_store_default_values.push_type.rb → 20161117154617_add_field_store_default_values.push_type.rb} +0 -0
  15. data/test/dummy/db/migrate/{20161116222939_drop_legacy_push_type_taxonomies.push_type.rb → 20161117154618_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  16. data/test/dummy/db/migrate/{20161116222940_devise_extend_push_type_users.push_type_auth.rb → 20161117154619_devise_extend_push_type_users.push_type_auth.rb} +0 -0
  17. data/test/dummy/db/schema.rb +1 -1
  18. data/test/dummy/log/test.log +850 -850
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-u/-uA3ner0KC5JP2cgDrCF-EW4eJJjbbrSXo0mid0Lkpc.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3O/3OSvESZHwsmJZcTIspnlF01U6ojhEQ9ieu_dNmSP4fM.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{V9/V9XX7NKrCzek7x0LkT1EvQUSTtan_LUz5QALLNnIlbU.cache → Cu/Cu95HOeuYx3eBsNSNUQmudIe3mzpg8Ec_3qGXhoFL64.cache} +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{cu → Cu}/cuPU9xIfihBdB1wVF4O7YtxB9Ml2l2aUIZTdRa89yJs.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{VB/VBVng99IosX1kRHfzQTbDhYKGtX6hszL9epabLWLpBk.cache → K3/K3vx_EKfCpzmIdo7jrOa_5R0vjJPnmTjBtH56Wsdt6w.cache} +0 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{rh/rhGb9rt8pwubOFOL3GS5uV87LghkNa5k9yt8ZLosPoI.cache → Pv/Pva-QI8VTid93HRJYYn0W7nrWgtNyy430BeLt2_qauE.cache} +0 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{pv → Pv}/pvK2qYi5PX3OV5hnjBsWcpBFRewHA5xGdRe1XS908kU.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{V-/V-FLQEYJVQK3ikzBTtQpVcIkI3DnEQmNdWAMJvbgrJM.cache → Q-/Q-B0KjMjeZvFEILBNwaZ3canWwqm1KdOv3vK7gxyGl4.cache} +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/V4/V4Z5NswvwJe0sjx2f-PpdeYMd_f9NrvkHNvGtWCId2s.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yg/Yg7x_SeJVjWObBMrvjJlYzt_NHDWapfLi8j9JsxtcIk.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Gr/Grj-J90RnjRlJaFuMZATJxGTvQZRDGD053IHnj8Y_Ro.cache → ZZ/ZZ7607am6Ae1GUHaDTN11SAKDGzTNAb_MfObVWfY6-c.cache} +0 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Zz → ZZ}/Zz4ooiEyGY1LWqg-z3eJ7TvTPBwNYgZ4i0gawFnxC3I.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Zz → ZZ}/zzMATx5AELoZwySbX4AyioljtaXA4azoqZQr3YwVscE.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Zw/ZWNd-UXV0xpgcmo0JjbKJN5tyYJ5EMVnkKK1FoN321Y.cache +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/c9/c91vSpII3Sqf5SqPgMSaVb7ztdOIRs8mA6JXFwwBnyE.cache +0 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dm/dmIWp3QDSff8nWm7N9Y3htzjHvHSFC_XC3CaVXDIrZM.cache +0 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/h6/H6n13_F6qgolR_b4bPWT5jrgAmT7OtEcZm6F32trMDg.cache +0 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{IU → iu}/IUrx_cz11W6a7Js_I-zzSgQEpw58K2zYnJsvznf71Pg.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{IU → iu}/iueRqT5f_OEnnwWdS4llGbZmYIG3GbfMUoCvqcj3Lww.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{IZ/IZaPz10rLofSI1i_15PuR05lJvrFSZZYgrIohGe4pEk.cache → jF/JfFY8lonU0I2AsjpzdVowD_AffLyeoyVuKpJsOYEcIo.cache} +0 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rc/RcIJ3oZ3acP0fYMMEQKIatsIvlZNjIcg8-q0pEJ8AiY.cache +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tL/TlKBfTWl0DYv-eJ_kRs8pmYqovVrqylGfemHNyQkJYY.cache +0 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{uH/uHzFE0QV-BXtlz0RhLwiGu4tbCeEhK-Ep89fXqlzZ4U.cache → tt/tt8CCaYLaRc8blfKCYrHNUSTlnXLkRDBgCbshaFbjbM.cache} +0 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uk/UKN7Zp2jICMXkcPuptMjtj-3Zf2lwQIr032GHSdlM-w.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{5L/5LDkBK_8_crN3At2JHpsVbdt6KxeUZF4xdrU4QWrQMY.cache → vn/vnS8iRHnjRA-xraHK0MkzVsrys1g7mm2NOoBd3dHSCg.cache} +0 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{XM → xM}/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache +0 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{XM → xM}/xM5dCtEPcOYxMSYPooGY0_4u2CGeuPmpv3UpjTL_fr0.cache +0 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{YI → yi}/YIwPgyIyY2ckKJBjv0IGN2eNWiG0R6cqt4K7JY3H5Sc.cache +0 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{YI → yi}/yict4FJOAq2YqQ0pSFNtz7mcoJXKPqQrgRP1O3o5Z0s.cache +0 -0
  48. metadata +61 -58
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c9ba786935e68d44e0b6e727ec74a73e9b27fe6
4
- data.tar.gz: 76b76eb8af26d7133de08e475e292b564c3ae285
3
+ metadata.gz: 9f2936f3adac3fafad870ff30bd1035c7a934407
4
+ data.tar.gz: 57d24f589ad62edb63c66a5552ac4952ecd2bf71
5
5
  SHA512:
6
- metadata.gz: e64ff974f5ffb1dc6b9075271cdb4248154b48ad159997cdc820064350845a9e1d2c7a377d5138abc7305426cf09dfd71cdd90033e0867bc1478ca013c364b6f
7
- data.tar.gz: 38a88f8dcc08e12dbd145339b1d11095ede5434d5c55a78a817c88139fc3629e7ebf268e1ea98387ee4b1b57c9f8561106078c41d319e9babdc471df38635489
6
+ metadata.gz: 3862c5f5f5cf64e884b162679d0a4457448b41fb285dd0168b89f7be8f028cb5775121115500ec659fb8270ca8ddaa530f1c5697604b4ffadb3a21af77328297
7
+ data.tar.gz: c8cb1bfa9a3d21014ff47aa567ab5bbc394530d2bad84b4ebd112587de76c489f610254db367a5e2adfbd67eef9c0941f9891a8b5680ea167a9ed1efd29cdc71
@@ -0,0 +1,17 @@
1
+ module PushType
2
+ class AuthController < ActionController::Base
3
+
4
+ include AuthHelper
5
+
6
+ protected
7
+
8
+ def after_sign_in_path_for(resource_or_scope)
9
+ stored_location_for(resource_or_scope) || push_type_admin.root_path
10
+ end
11
+
12
+ def after_sign_out_path_for(resource_or_scope)
13
+ push_type_admin.new_user_session_path
14
+ end
15
+
16
+ end
17
+ end
@@ -1,4 +1,9 @@
1
1
  module PushType
2
2
  module AuthHelper
3
+
4
+ def home_path
5
+ main_app.respond_to?(:home_node_path) ? main_app.home_node_path : '/'
6
+ end
7
+
3
8
  end
4
9
  end
@@ -22,7 +22,7 @@
22
22
  </ul>
23
23
  <section class="top-bar-section">
24
24
  <ul class="right">
25
- <%= content_tag :li, link_to(ficon(:home, 'Back to site'), main_app.home_path), :'data-no-turbolink' => true %>
25
+ <%= content_tag :li, link_to(ficon(:home, 'Back to site'), home_path), :'data-no-turbolink' => true %>
26
26
  </ul>
27
27
  </section>
28
28
  </nav>
@@ -253,6 +253,9 @@ Devise.setup do |config|
253
253
  # The router that invoked `devise_for`, in the example above, would be:
254
254
  config.router_name = :push_type_admin
255
255
 
256
+ # Ensure Devise's controllers inherit from the engine's controller
257
+ config.parent_controller = 'PushType::AuthController'
258
+
256
259
  # When using omniauth, Devise cannot automatically set Omniauth path,
257
260
  # so you need to do it manually. For the users scope, it would be:
258
261
  # config.omniauth_path_prefix = '/my_engine/users/auth'
data/config/routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  PushType::Admin::Engine.routes.draw do
2
2
 
3
- devise_for :users, class_name: "PushType::User"
3
+ devise_for :users, class_name: "PushType::User", path: '/'
4
4
  devise_scope :user do
5
5
  patch 'confirmation' => 'confirmations#update', as: :user_confirm
6
6
  end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ module PushType
4
+ class AuthControllerTest < ActionController::TestCase
5
+
6
+ end
7
+ end
@@ -45,6 +45,6 @@ PushType.setup do |config|
45
45
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
46
46
  # }
47
47
 
48
- # config.dragonfly_secret = 'af00b3daa1641624497a9f2a0ff92483d2b865e66a94e36ffa39063f1ce452f2'
48
+ # config.dragonfly_secret = 'bb6a27a93a85eefcff08407adfcfc8f4dea73338b2c5a6a57aa4bfda804bf876'
49
49
 
50
50
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 223131a28f12d469debaa9c5f6c5fb5528babfbd47e0db7381cacf80406c8b159ad8d10f64aebaee26330a3dc04727f1ef4bd06ba71e38879e5dbb9b55999eb2
14
+ secret_key_base: 449a1899c4fa64639d8c80d3163398d74fb2a5acfa2fcea9dd95718ea4b926732b6e1588fb58fa1316d814e295ede5940611d6ff742eb0db494f9ad41a993f4a
15
15
 
16
16
  test:
17
- secret_key_base: a31fd51ce98dbfce145a92c1810145ce224c6a95c36bfd32e4decd5da7db64ea5e7bcfc1b11eb3e620bc0b1e0e08ef189d2a2187c4f417351ae7ea9f6e12452d
17
+ secret_key_base: 5a798740dfe071f618662865b31706f74eec89e8a5aca990c40d189593979e2eedbb0c68cfb3db3ddcfd81f3533a6c7c156959a31d55f60017ec18f087e97c75
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20161116222940) do
13
+ ActiveRecord::Schema.define(version: 20161117154619) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -1,83 +1,83 @@
1
1
  ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
2
2
   (0.1ms) BEGIN
3
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-11-16 22:29:29 UTC], ["updated_at", 2016-11-16 22:29:29 UTC]]
4
-  (0.6ms) COMMIT
3
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-11-17 15:46:08 UTC], ["updated_at", 2016-11-17 15:46:08 UTC]]
4
+  (0.7ms) COMMIT
5
5
  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
6
   (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
7
7
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
8
   (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
9
9
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
10
   (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
11
-  (194.6ms) DROP DATABASE IF EXISTS "dummy_test"
12
-  (386.0ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
13
-  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
14
-  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
15
-  (0.2ms) SELECT pg_try_advisory_lock(2735718569030447490);
11
+  (199.3ms) DROP DATABASE IF EXISTS "dummy_test"
12
+  (403.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
13
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
14
+  (1.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
15
+  (0.1ms) SELECT pg_try_advisory_lock(2735718569030447490);
16
16
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
- Migrating to CreatePushTypeUsers (20161116222934)
17
+ Migrating to CreatePushTypeUsers (20161117154613)
18
18
   (0.1ms) BEGIN
19
- SQL (2.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
20
-  (2.2ms) CREATE TABLE "push_type_users" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
21
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161116222934"]]
22
-  (0.7ms) COMMIT
23
- Migrating to CreatePushTypeNodes (20161116222935)
19
+ SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
20
+  (2.1ms) CREATE TABLE "push_type_users" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
21
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161117154613"]]
22
+  (0.6ms) COMMIT
23
+ Migrating to CreatePushTypeNodes (20161117154614)
24
24
   (0.1ms) BEGIN
25
-  (2.3ms) CREATE TABLE "push_type_nodes" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
26
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161116222935"]]
25
+  (2.0ms) CREATE TABLE "push_type_nodes" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
26
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161117154614"]]
27
27
   (0.5ms) COMMIT
28
- Migrating to CreatePushTypeNodeHierarchies (20161116222936)
28
+ Migrating to CreatePushTypeNodeHierarchies (20161117154615)
29
29
   (0.1ms) BEGIN
30
-  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
31
-  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
30
+  (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
31
+  (0.8ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
32
32
   (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
33
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161116222936"]]
33
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161117154615"]]
34
34
   (0.4ms) COMMIT
35
- Migrating to CreatePushTypeAssets (20161116222937)
35
+ Migrating to CreatePushTypeAssets (20161117154616)
36
36
   (0.1ms) BEGIN
37
-  (2.0ms) CREATE TABLE "push_type_assets" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
38
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161116222937"]]
39
-  (0.4ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20161116222938)
37
+  (1.8ms) CREATE TABLE "push_type_assets" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161117154616"]]
39
+  (0.5ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20161117154617)
41
41
   (0.1ms) BEGIN
42
-  (0.3ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
42
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
43
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
44
-  (0.3ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
45
-  (0.2ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
-  (0.3ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
44
+  (0.2ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
45
+  (0.1ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
+  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
47
   (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
48
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
49
   (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161116222938"]]
51
-  (0.4ms) COMMIT
52
- Migrating to DropLegacyPushTypeTaxonomies (20161116222939)
50
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161117154617"]]
51
+  (0.6ms) COMMIT
52
+ Migrating to DropLegacyPushTypeTaxonomies (20161117154618)
53
53
   (0.1ms) BEGIN
54
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161116222939"]]
55
-  (0.3ms) COMMIT
56
- Migrating to DeviseExtendPushTypeUsers (20161116222940)
54
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161117154618"]]
55
+  (0.4ms) COMMIT
56
+ Migrating to DeviseExtendPushTypeUsers (20161117154619)
57
57
   (0.1ms) BEGIN
58
-  (3.4ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
58
+  (2.7ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
59
59
   (0.2ms) ALTER TABLE "push_type_users" ADD "reset_password_token" character varying
60
60
   (0.2ms) ALTER TABLE "push_type_users" ADD "reset_password_sent_at" timestamp
61
61
   (0.1ms) ALTER TABLE "push_type_users" ADD "remember_created_at" timestamp
62
-  (2.3ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
62
+  (2.2ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
63
63
   (0.2ms) ALTER TABLE "push_type_users" ADD "current_sign_in_at" timestamp
64
-  (0.2ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
64
+  (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
65
65
   (0.1ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
66
66
   (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_ip" character varying
67
67
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_token" character varying
68
68
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmed_at" timestamp
69
69
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_sent_at" timestamp
70
-  (0.7ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
71
-  (0.8ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
72
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161116222940"]]
73
-  (1.1ms) COMMIT
74
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
70
+  (0.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
71
+  (0.5ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
72
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161117154619"]]
73
+  (1.0ms) COMMIT
74
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
75
75
   (0.1ms) BEGIN
76
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-11-16 22:29:37 UTC], ["updated_at", 2016-11-16 22:29:37 UTC]]
77
-  (0.4ms) COMMIT
76
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-11-17 15:46:16 UTC], ["updated_at", 2016-11-17 15:46:16 UTC]]
77
+  (0.5ms) COMMIT
78
78
   (0.1ms) SELECT pg_advisory_unlock(2735718569030447490)
79
79
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
-  (1.8ms) 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
80
+  (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
81
81
  FROM pg_constraint c
82
82
  JOIN pg_class t1 ON c.conrelid = t1.oid
83
83
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -89,7 +89,7 @@ WHERE c.contype = 'f'
89
89
  AND t3.nspname = ANY (current_schemas(false))
90
90
  ORDER BY c.conname
91
91
  
92
-  (1.2ms) 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
92
+  (1.4ms) 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
93
93
  FROM pg_constraint c
94
94
  JOIN pg_class t1 ON c.conrelid = t1.oid
95
95
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -101,7 +101,7 @@ WHERE c.contype = 'f'
101
101
  AND t3.nspname = ANY (current_schemas(false))
102
102
  ORDER BY c.conname
103
103
  
104
-  (1.2ms) 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
104
+  (1.3ms) 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
105
105
  FROM pg_constraint c
106
106
  JOIN pg_class t1 ON c.conrelid = t1.oid
107
107
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -113,7 +113,7 @@ WHERE c.contype = 'f'
113
113
  AND t3.nspname = ANY (current_schemas(false))
114
114
  ORDER BY c.conname
115
115
  
116
-  (1.3ms) 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
116
+  (1.4ms) 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
117
117
  FROM pg_constraint c
118
118
  JOIN pg_class t1 ON c.conrelid = t1.oid
119
119
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -128,56 +128,141 @@ ORDER BY c.conname
128
128
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
129
129
  Creating scope :published. Overwriting existing method PushType::Node.published.
130
130
   (0.1ms) BEGIN
131
-  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" 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
131
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" 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
132
132
   (0.1ms) COMMIT
133
-  (0.9ms)  SELECT schemaname || '.' || tablename
133
+  (1.0ms)  SELECT schemaname || '.' || tablename
134
134
  FROM pg_tables
135
135
  WHERE
136
136
  tablename !~ '_prt_' AND
137
137
  tablename <> 'schema_migrations' AND
138
138
  schemaname = ANY (current_schemas(false))
139
139
  
140
-  (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
141
-  (9.1ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets", "public"."push_type_users" RESTART IDENTITY CASCADE;
140
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
141
+  (9.8ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets", "public"."push_type_users" RESTART IDENTITY CASCADE;
142
142
   (0.1ms) BEGIN
143
143
   (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
144
144
   (0.1ms) COMMIT
145
145
   (0.1ms) BEGIN
146
- ----------------------------------------------------------------------------------------------------
147
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
148
- ----------------------------------------------------------------------------------------------------
146
+ ------------------------------------------------------------------------------------------------------
147
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
148
+ ------------------------------------------------------------------------------------------------------
149
149
   (0.1ms) SAVEPOINT active_record_1
150
150
   (0.1ms) RELEASE SAVEPOINT active_record_1
151
151
   (0.1ms) SAVEPOINT active_record_1
152
-  (0.1ms) SAVEPOINT active_record_2
153
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
154
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
155
- SQL (1.0ms) 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", 2016-11-16 22:29:41 UTC], ["updated_at", 2016-11-16 22:29:41 UTC], ["confirmation_token", "T2-C8WuzQekkzGw8Cr-p"], ["confirmation_sent_at", 2016-11-16 22:29:41 UTC]]
156
-  (0.1ms) RELEASE SAVEPOINT active_record_2
157
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
158
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (4.7ms)
152
+ Processing by PushType::ConfirmationsController#show as HTML
153
+ Parameters: {"confirmation_token"=>"invalid"}
154
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
155
+ 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 $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
156
+ 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 $2 [["confirmation_token", "a168dc8277b63168238969053cff2c04941280886be3437deff95405123e07e0"], ["LIMIT", 1]]
157
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
158
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.3ms)
159
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (18.4ms)
159
160
  DEPRECATION WARNING on line 78 of /Users/aaron/.rvm/gems/ruby-2.3.1@push_type/gems/foundation-rails-5.5.3.2/vendor/assets/stylesheets/foundation/components/_top-bar.scss: #{} interpolation near operators will be simplified
160
161
  in a future version of Sass. To preserve the current behavior, use quotes:
161
162
 
162
163
  unquote("#{lower-bound($medium-range)}")
163
164
 
164
165
 
165
- Devise::Mailer#confirmation_instructions: processed outbound mail in 12636.8ms
166
- Sent mail to joe-1@example.com (11.5ms)
167
- Date: Wed, 16 Nov 2016 22:29:54 +0000
166
+ Completed 200 OK in 13468ms (Views: 13254.9ms | ActiveRecord: 3.3ms)
167
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
168
+  (0.2ms) ROLLBACK
169
+  (0.1ms) BEGIN
170
+ ------------------------------------------------------------------------------------------------------
171
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
172
+ ------------------------------------------------------------------------------------------------------
173
+  (0.1ms) SAVEPOINT active_record_1
174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
175
+  (0.0ms) SAVEPOINT active_record_1
176
+ Processing by PushType::ConfirmationsController#show as HTML
177
+ Parameters: {"confirmation_token"=>"invalid"}
178
+ 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 $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
179
+ 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 $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
180
+ 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 $2 [["confirmation_token", "a168dc8277b63168238969053cff2c04941280886be3437deff95405123e07e0"], ["LIMIT", 1]]
181
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
182
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
183
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.7ms)
184
+ Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.6ms)
185
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
186
+  (0.1ms) ROLLBACK
187
+  (0.1ms) BEGIN
188
+ --------------------------------------------------------
189
+ PushType::AuthenticationMethodsTest: test_0001_anonymous
190
+ --------------------------------------------------------
191
+  (0.1ms) SAVEPOINT active_record_1
192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
193
+  (0.0ms) SAVEPOINT active_record_1
194
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
195
+  (0.0ms) ROLLBACK
196
+  (0.1ms) BEGIN
197
+ --------------------------------------------------------
198
+ PushType::AuthenticationMethodsTest: test_0002_anonymous
199
+ --------------------------------------------------------
200
+  (0.1ms) SAVEPOINT active_record_1
201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
202
+  (0.0ms) SAVEPOINT active_record_1
203
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
204
+  (0.0ms) ROLLBACK
205
+  (0.1ms) BEGIN
206
+ ----------------------------------------------------------------------------
207
+ AuthenticatedApiControllerTest::unauthenticated request: test_0001_anonymous
208
+ ----------------------------------------------------------------------------
209
+  (0.0ms) SAVEPOINT active_record_1
210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
211
+  (0.0ms) SAVEPOINT active_record_1
212
+ Started GET "/api/nodes" for 127.0.0.1 at 2016-11-17 15:46:34 +0000
213
+ Processing by PushType::Api::NodesController#index as JSON
214
+ Filter chain halted as :authenticate_user! rendered or redirected
215
+ Completed 401 Unauthorized in 17ms (ActiveRecord: 0.0ms)
216
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
217
+  (0.1ms) ROLLBACK
218
+  (0.0ms) BEGIN
219
+ ----------------------------------------------------------------
220
+ PushType::AuthenticatableTest::rememberable: test_0001_anonymous
221
+ ----------------------------------------------------------------
222
+  (0.1ms) SAVEPOINT active_record_1
223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
224
+  (0.0ms) SAVEPOINT active_record_1
225
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
226
+  (0.1ms) ROLLBACK
227
+  (0.1ms) BEGIN
228
+ ---------------------------------------------------------------
229
+ PushType::AuthenticatableTest::recoverable: test_0001_anonymous
230
+ ---------------------------------------------------------------
231
+  (0.1ms) SAVEPOINT active_record_1
232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
233
+  (0.0ms) SAVEPOINT active_record_1
234
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
235
+  (0.1ms) ROLLBACK
236
+  (0.2ms) BEGIN
237
+ ------------------------------------------------------------------------------------------
238
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
239
+ ------------------------------------------------------------------------------------------
240
+  (0.1ms) SAVEPOINT active_record_1
241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
242
+  (0.1ms) SAVEPOINT active_record_1
243
+  (0.1ms) SAVEPOINT active_record_2
244
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
245
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
246
+ SQL (1.0ms) 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", 2016-11-17 15:46:34 UTC], ["updated_at", 2016-11-17 15:46:34 UTC], ["confirmation_token", "SM8JydGKGRkuT11VDR4P"], ["confirmation_sent_at", 2016-11-17 15:46:34 UTC]]
247
+  (0.1ms) RELEASE SAVEPOINT active_record_2
248
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
249
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (1.0ms)
250
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 191.5ms
251
+ Sent mail to joe-1@example.com (9.9ms)
252
+ Date: Thu, 17 Nov 2016 15:46:34 +0000
168
253
  From: pushtype@example.com
169
254
  Reply-To: pushtype@example.com
170
255
  To: joe-1@example.com
171
- Message-ID: <582cdde25143a_32783fe28d43f9b8844ee@Aarons-iMac.local.mail>
256
+ Message-ID: <582dd0dad154b_d4703fd50d43f9c82483a@Aarons-iMac.local.mail>
172
257
  Subject: [PushType] Confirm your account
173
258
  Mime-Version: 1.0
174
259
  Content-Type: multipart/alternative;
175
- boundary="--==_mimepart_582cdde24fb65_32783fe28d43f9b884365";
260
+ boundary="--==_mimepart_582dd0dad00f6_d4703fd50d43f9c824773";
176
261
  charset=UTF-8
177
262
  Content-Transfer-Encoding: 7bit
178
263
 
179
264
 
180
- ----==_mimepart_582cdde24fb65_32783fe28d43f9b884365
265
+ ----==_mimepart_582dd0dad00f6_d4703fd50d43f9c824773
181
266
  Content-Type: text/plain;
182
267
  charset=UTF-8
183
268
  Content-Transfer-Encoding: 7bit
@@ -193,11 +278,11 @@ To get started, confirm your account and set your own password by
193
278
  clicking the link below:
194
279
 
195
280
  Confirm my account
196
- ( http://localhost:3000/admin/users/confirmation.cd4f117d-29e0-407d-86b0-7f1ce14392b5?confirmation_token=T2-C8WuzQekkzGw8Cr-p )
281
+ ( http://localhost:3000/admin/confirmation.ad1375bc-f7d1-40d8-981e-864ff655e61d?confirmation_token=SM8JydGKGRkuT11VDR4P )
197
282
 
198
283
 
199
284
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
200
- ----==_mimepart_582cdde24fb65_32783fe28d43f9b884365
285
+ ----==_mimepart_582dd0dad00f6_d4703fd50d43f9c824773
201
286
  Content-Type: text/html;
202
287
  charset=UTF-8
203
288
  Content-Transfer-Encoding: 7bit
@@ -243,7 +328,7 @@ body {
243
328
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
244
329
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
245
330
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
246
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.cd4f117d-29e0-407d-86b0-7f1ce14392b5?confirmation_token=T2-C8WuzQekkzGw8Cr-p" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
331
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.ad1375bc-f7d1-40d8-981e-864ff655e61d?confirmation_token=SM8JydGKGRkuT11VDR4P" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
247
332
  </td>
248
333
  </tr>
249
334
  </table>
@@ -288,47 +373,48 @@ body {
288
373
  </body>
289
374
  </html>
290
375
 
291
- ----==_mimepart_582cdde24fb65_32783fe28d43f9b884365--
376
+ ----==_mimepart_582dd0dad00f6_d4703fd50d43f9c824773--
292
377
 
293
- Processing by PushType::ConfirmationsController#show as HTML
294
- Parameters: {"confirmation_token"=>"T2-C8WuzQekkzGw8Cr-p"}
295
- 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 $2 [["confirmation_token", "T2-C8WuzQekkzGw8Cr-p"], ["LIMIT", 1]]
378
+ Processing by PushType::ConfirmationsController#update as HTML
379
+ Parameters: {"user"=>{"confirmation_token"=>"SM8JydGKGRkuT11VDR4P", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
380
+ 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 $2 [["confirmation_token", "SM8JydGKGRkuT11VDR4P"], ["LIMIT", 1]]
381
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-1@example.com"], ["id", "ad1375bc-f7d1-40d8-981e-864ff655e61d"], ["LIMIT", 1]]
296
382
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
297
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.3ms)
298
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (23.0ms)
299
- Completed 200 OK in 37ms (Views: 31.7ms | ActiveRecord: 0.4ms)
300
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
301
-  (0.2ms) ROLLBACK
383
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.1ms)
384
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (9.1ms)
385
+ Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 0.5ms)
386
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
387
+  (0.1ms) ROLLBACK
302
388
   (0.1ms) BEGIN
303
- ----------------------------------------------------------------------------------------------------
304
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
305
- ----------------------------------------------------------------------------------------------------
306
-  (0.0ms) SAVEPOINT active_record_1
307
-  (0.0ms) RELEASE SAVEPOINT active_record_1
308
-  (0.0ms) SAVEPOINT active_record_1
389
+ ------------------------------------------------------------------------------------------
390
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
391
+ ------------------------------------------------------------------------------------------
392
+  (0.1ms) SAVEPOINT active_record_1
393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
394
+  (0.1ms) SAVEPOINT active_record_1
309
395
   (0.1ms) SAVEPOINT active_record_2
310
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
311
396
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
312
- SQL (0.3ms) 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", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "Sda5mT5CA-VhKy3rVmrm"], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
397
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
398
+ 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-2@example.com"], ["created_at", 2016-11-17 15:46:34 UTC], ["updated_at", 2016-11-17 15:46:34 UTC], ["confirmation_token", "_eixzM1GBg3gggbU2xzx"], ["confirmation_sent_at", 2016-11-17 15:46:34 UTC]]
313
399
   (0.1ms) RELEASE SAVEPOINT active_record_2
314
400
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
315
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
316
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
317
- Sent mail to joe-2@example.com (3.6ms)
318
- Date: Wed, 16 Nov 2016 22:29:54 +0000
401
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
402
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
403
+ Sent mail to joe-2@example.com (4.2ms)
404
+ Date: Thu, 17 Nov 2016 15:46:34 +0000
319
405
  From: pushtype@example.com
320
406
  Reply-To: pushtype@example.com
321
407
  To: joe-2@example.com
322
- Message-ID: <582cdde26700a_32783fe28d43f9b88474b@Aarons-iMac.local.mail>
408
+ Message-ID: <582dd0dae5577_d4703fd50d43f9c8251ab@Aarons-iMac.local.mail>
323
409
  Subject: [PushType] Confirm your account
324
410
  Mime-Version: 1.0
325
411
  Content-Type: multipart/alternative;
326
- boundary="--==_mimepart_582cdde266b4c_32783fe28d43f9b88462";
412
+ boundary="--==_mimepart_582dd0dae4fef_d4703fd50d43f9c8250bc";
327
413
  charset=UTF-8
328
414
  Content-Transfer-Encoding: 7bit
329
415
 
330
416
 
331
- ----==_mimepart_582cdde266b4c_32783fe28d43f9b88462
417
+ ----==_mimepart_582dd0dae4fef_d4703fd50d43f9c8250bc
332
418
  Content-Type: text/plain;
333
419
  charset=UTF-8
334
420
  Content-Transfer-Encoding: 7bit
@@ -344,11 +430,11 @@ To get started, confirm your account and set your own password by
344
430
  clicking the link below:
345
431
 
346
432
  Confirm my account
347
- ( http://localhost:3000/admin/users/confirmation.a3fa999f-6b93-40c1-bf6b-c8c9783a6799?confirmation_token=Sda5mT5CA-VhKy3rVmrm )
433
+ ( http://localhost:3000/admin/confirmation.694e526d-3bbd-44b6-bbd6-6f7d8c4ec3b7?confirmation_token=_eixzM1GBg3gggbU2xzx )
348
434
 
349
435
 
350
436
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
351
- ----==_mimepart_582cdde266b4c_32783fe28d43f9b88462
437
+ ----==_mimepart_582dd0dae4fef_d4703fd50d43f9c8250bc
352
438
  Content-Type: text/html;
353
439
  charset=UTF-8
354
440
  Content-Transfer-Encoding: 7bit
@@ -394,7 +480,7 @@ body {
394
480
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
395
481
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
396
482
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
397
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.a3fa999f-6b93-40c1-bf6b-c8c9783a6799?confirmation_token=Sda5mT5CA-VhKy3rVmrm" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
483
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.694e526d-3bbd-44b6-bbd6-6f7d8c4ec3b7?confirmation_token=_eixzM1GBg3gggbU2xzx" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
398
484
  </td>
399
485
  </tr>
400
486
  </table>
@@ -439,88 +525,48 @@ body {
439
525
  </body>
440
526
  </html>
441
527
 
442
- ----==_mimepart_582cdde266b4c_32783fe28d43f9b88462--
528
+ ----==_mimepart_582dd0dae4fef_d4703fd50d43f9c8250bc--
443
529
 
444
- Processing by PushType::ConfirmationsController#show as HTML
445
- Parameters: {"confirmation_token"=>"Sda5mT5CA-VhKy3rVmrm"}
446
- 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 $2 [["confirmation_token", "Sda5mT5CA-VhKy3rVmrm"], ["LIMIT", 1]]
530
+ Processing by PushType::ConfirmationsController#update as HTML
531
+ Parameters: {"user"=>{"confirmation_token"=>"_eixzM1GBg3gggbU2xzx", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
532
+ 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 $2 [["confirmation_token", "_eixzM1GBg3gggbU2xzx"], ["LIMIT", 1]]
533
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-2@example.com"], ["id", "694e526d-3bbd-44b6-bbd6-6f7d8c4ec3b7"], ["LIMIT", 1]]
447
534
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
448
535
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
449
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
450
- Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
451
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
452
-  (0.1ms) ROLLBACK
453
-  (0.1ms) BEGIN
454
- -----------------------------------------------------------
455
- PushType::ApiAuthenticationMethodsTest: test_0001_anonymous
456
- -----------------------------------------------------------
457
-  (0.1ms) SAVEPOINT active_record_1
458
-  (0.1ms) RELEASE SAVEPOINT active_record_1
459
-  (0.1ms) SAVEPOINT active_record_1
536
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.9ms)
537
+ Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.4ms)
460
538
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
461
539
   (0.1ms) ROLLBACK
462
540
   (0.1ms) BEGIN
463
- -----------------------------------------------------------
464
- PushType::ApiAuthenticationMethodsTest: test_0004_anonymous
465
- -----------------------------------------------------------
466
-  (0.0ms) SAVEPOINT active_record_1
467
-  (0.0ms) RELEASE SAVEPOINT active_record_1
468
-  (0.0ms) SAVEPOINT active_record_1
469
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
470
-  (0.0ms) ROLLBACK
471
-  (0.1ms) BEGIN
472
- -----------------------------------------------------------
473
- PushType::ApiAuthenticationMethodsTest: test_0002_anonymous
474
- -----------------------------------------------------------
475
-  (0.0ms) SAVEPOINT active_record_1
476
-  (0.0ms) RELEASE SAVEPOINT active_record_1
477
-  (0.0ms) SAVEPOINT active_record_1
478
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
479
-  (0.0ms) ROLLBACK
480
-  (0.1ms) BEGIN
481
- -----------------------------------------------------------
482
- PushType::ApiAuthenticationMethodsTest: test_0003_anonymous
483
- -----------------------------------------------------------
484
-  (0.1ms) SAVEPOINT active_record_1
485
-  (0.0ms) RELEASE SAVEPOINT active_record_1
541
+ ------------------------------------------------------------------------------------------
542
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
543
+ ------------------------------------------------------------------------------------------
486
544
   (0.0ms) SAVEPOINT active_record_1
487
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
488
-  (0.0ms) ROLLBACK
489
-  (0.1ms) BEGIN
490
- ----------------------------------------------------------------------
491
- PushType::Admin::UsersControllerTest::PUT #invite: test_0001_anonymous
492
- ----------------------------------------------------------------------
493
-  (0.1ms) SAVEPOINT active_record_1
494
-  (0.0ms) RELEASE SAVEPOINT active_record_1
545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
495
546
   (0.0ms) SAVEPOINT active_record_1
496
547
   (0.1ms) SAVEPOINT active_record_2
497
548
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-3@example.com"], ["LIMIT", 1]]
498
549
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-3@example.com"], ["LIMIT", 1]]
499
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-3@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:54 UTC], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
500
-  (0.1ms) RELEASE SAVEPOINT active_record_2
501
-  (0.1ms) SAVEPOINT active_record_2
502
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-4@example.com"], ["LIMIT", 1]]
503
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-4@example.com"], ["LIMIT", 1]]
504
- 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-4@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "_p5fhGyK8P7vftmPHBra"], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
550
+ 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", 2016-11-17 15:46:34 UTC], ["updated_at", 2016-11-17 15:46:34 UTC], ["confirmation_token", "5Eu7hYJvHHFQyxYwqxHJ"], ["confirmation_sent_at", 2016-11-17 15:46:34 UTC]]
505
551
   (0.1ms) RELEASE SAVEPOINT active_record_2
506
552
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
507
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.5ms)
508
- Devise::Mailer#confirmation_instructions: processed outbound mail in 4.1ms
509
- Sent mail to joe-4@example.com (4.2ms)
510
- Date: Wed, 16 Nov 2016 22:29:54 +0000
553
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
554
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.1ms
555
+ Sent mail to joe-3@example.com (3.5ms)
556
+ Date: Thu, 17 Nov 2016 15:46:35 +0000
511
557
  From: pushtype@example.com
512
558
  Reply-To: pushtype@example.com
513
- To: joe-4@example.com
514
- Message-ID: <582cdde276349_32783fe28d43f9b88505d@Aarons-iMac.local.mail>
559
+ To: joe-3@example.com
560
+ Message-ID: <582dd0dbfe0_d4703fd50d43f9c82544a@Aarons-iMac.local.mail>
515
561
  Subject: [PushType] Confirm your account
516
562
  Mime-Version: 1.0
517
563
  Content-Type: multipart/alternative;
518
- boundary="--==_mimepart_582cdde275cdd_32783fe28d43f9b884960";
564
+ boundary="--==_mimepart_582dd0dbb99_d4703fd50d43f9c82534c";
519
565
  charset=UTF-8
520
566
  Content-Transfer-Encoding: 7bit
521
567
 
522
568
 
523
- ----==_mimepart_582cdde275cdd_32783fe28d43f9b884960
569
+ ----==_mimepart_582dd0dbb99_d4703fd50d43f9c82534c
524
570
  Content-Type: text/plain;
525
571
  charset=UTF-8
526
572
  Content-Transfer-Encoding: 7bit
@@ -536,11 +582,11 @@ To get started, confirm your account and set your own password by
536
582
  clicking the link below:
537
583
 
538
584
  Confirm my account
539
- ( http://localhost:3000/admin/users/confirmation.2257d566-0459-4662-84ec-6c82bbc27c1c?confirmation_token=_p5fhGyK8P7vftmPHBra )
585
+ ( http://localhost:3000/admin/confirmation.cf334ef9-de0a-477b-92e3-6ba27dfebaab?confirmation_token=5Eu7hYJvHHFQyxYwqxHJ )
540
586
 
541
587
 
542
588
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
543
- ----==_mimepart_582cdde275cdd_32783fe28d43f9b884960
589
+ ----==_mimepart_582dd0dbb99_d4703fd50d43f9c82534c
544
590
  Content-Type: text/html;
545
591
  charset=UTF-8
546
592
  Content-Transfer-Encoding: 7bit
@@ -586,7 +632,7 @@ body {
586
632
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
587
633
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
588
634
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
589
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.2257d566-0459-4662-84ec-6c82bbc27c1c?confirmation_token=_p5fhGyK8P7vftmPHBra" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
635
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.cf334ef9-de0a-477b-92e3-6ba27dfebaab?confirmation_token=5Eu7hYJvHHFQyxYwqxHJ" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
590
636
  </td>
591
637
  </tr>
592
638
  </table>
@@ -631,32 +677,95 @@ body {
631
677
  </body>
632
678
  </html>
633
679
 
634
- ----==_mimepart_582cdde275cdd_32783fe28d43f9b884960--
680
+ ----==_mimepart_582dd0dbb99_d4703fd50d43f9c82534c--
635
681
 
636
- Processing by PushType::Admin::UsersController#invite as HTML
637
- Parameters: {"id"=>"2257d566-0459-4662-84ec-6c82bbc27c1c"}
638
- 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 $2 [["id", "317ad30e-9960-4250-9457-1dc6d5305c3b"], ["LIMIT", 1]]
639
- 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 $2 [["id", "2257d566-0459-4662-84ec-6c82bbc27c1c"], ["LIMIT", 1]]
682
+ Processing by PushType::ConfirmationsController#update as HTML
683
+ Parameters: {"user"=>{"confirmation_token"=>"5Eu7hYJvHHFQyxYwqxHJ", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
684
+ 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 $2 [["confirmation_token", "5Eu7hYJvHHFQyxYwqxHJ"], ["LIMIT", 1]]
685
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-3@example.com"], ["id", "cf334ef9-de0a-477b-92e3-6ba27dfebaab"], ["LIMIT", 1]]
686
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
687
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
688
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
689
+ Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.4ms)
690
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
691
+  (0.1ms) ROLLBACK
692
+  (0.0ms) BEGIN
693
+ -----------------------------------------------------------------------
694
+ PushType::Admin::ProfilesControllerTest::GET #edit: test_0001_anonymous
695
+ -----------------------------------------------------------------------
696
+  (0.1ms) SAVEPOINT active_record_1
697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
698
+  (0.1ms) SAVEPOINT active_record_1
699
+  (0.1ms) SAVEPOINT active_record_2
700
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-4@example.com"], ["LIMIT", 1]]
701
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-4@example.com"], ["LIMIT", 1]]
702
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", 2016-11-17 15:46:35 UTC], ["updated_at", 2016-11-17 15:46:35 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:35 UTC], ["confirmation_sent_at", 2016-11-17 15:46:35 UTC]]
703
+  (0.1ms) RELEASE SAVEPOINT active_record_2
704
+ Processing by PushType::Admin::ProfilesController#edit as HTML
705
+ 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 $2 [["id", "112cf427-e66b-4da3-872e-6404e95ce1a2"], ["LIMIT", 1]]
706
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
707
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (5.7ms)
708
+ Completed 200 OK in 23ms (Views: 17.9ms | ActiveRecord: 0.2ms)
709
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
710
+  (0.1ms) ROLLBACK
711
+  (0.1ms) BEGIN
712
+ -----------------------------------------------------------------------
713
+ PushType::Admin::ProfilesControllerTest::GET #edit: test_0002_anonymous
714
+ -----------------------------------------------------------------------
715
+  (0.1ms) SAVEPOINT active_record_1
716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
717
+  (0.1ms) SAVEPOINT active_record_1
718
+  (0.1ms) SAVEPOINT active_record_2
719
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
720
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
721
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["created_at", 2016-11-17 15:46:35 UTC], ["updated_at", 2016-11-17 15:46:35 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:35 UTC], ["confirmation_sent_at", 2016-11-17 15:46:35 UTC]]
722
+  (0.1ms) RELEASE SAVEPOINT active_record_2
723
+ Processing by PushType::Admin::ProfilesController#edit as HTML
724
+ 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 $2 [["id", "345bd74f-0d12-4e7a-8fe2-2c4b080712a4"], ["LIMIT", 1]]
725
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
726
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (1.8ms)
727
+ Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.2ms)
728
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
729
+  (0.1ms) ROLLBACK
730
+  (0.1ms) BEGIN
731
+ ----------------------------------------------------
732
+ PushType::InvitationMethodsTest: test_0001_anonymous
733
+ ----------------------------------------------------
734
+  (0.1ms) SAVEPOINT active_record_1
735
+  (0.1ms) RELEASE SAVEPOINT active_record_1
736
+  (0.0ms) SAVEPOINT active_record_1
737
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
738
+  (0.0ms) ROLLBACK
739
+  (0.0ms) BEGIN
740
+ ----------------------------------------------------------------------------------------------------
741
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
742
+ ----------------------------------------------------------------------------------------------------
743
+  (0.1ms) SAVEPOINT active_record_1
744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
745
+  (0.0ms) SAVEPOINT active_record_1
640
746
   (0.1ms) SAVEPOINT active_record_2
747
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
748
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
749
+ 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-6@example.com"], ["created_at", 2016-11-17 15:46:35 UTC], ["updated_at", 2016-11-17 15:46:35 UTC], ["confirmation_token", "d5kyX3nz9n641VXzhq-A"], ["confirmation_sent_at", 2016-11-17 15:46:35 UTC]]
641
750
   (0.1ms) RELEASE SAVEPOINT active_record_2
642
751
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
643
752
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
644
753
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
645
- Sent mail to joe-4@example.com (4.4ms)
646
- Date: Wed, 16 Nov 2016 22:29:54 +0000
754
+ Sent mail to joe-6@example.com (4.1ms)
755
+ Date: Thu, 17 Nov 2016 15:46:35 +0000
647
756
  From: pushtype@example.com
648
757
  Reply-To: pushtype@example.com
649
- To: joe-4@example.com
650
- Message-ID: <582cdde281a91_32783fe28d43f9b88539a@Aarons-iMac.local.mail>
758
+ To: joe-6@example.com
759
+ Message-ID: <582dd0db1b24e_d4703fd50d43f9c825796@Aarons-iMac.local.mail>
651
760
  Subject: [PushType] Confirm your account
652
761
  Mime-Version: 1.0
653
762
  Content-Type: multipart/alternative;
654
- boundary="--==_mimepart_582cdde28162e_32783fe28d43f9b885273";
763
+ boundary="--==_mimepart_582dd0db1ad53_d4703fd50d43f9c825635";
655
764
  charset=UTF-8
656
765
  Content-Transfer-Encoding: 7bit
657
766
 
658
767
 
659
- ----==_mimepart_582cdde28162e_32783fe28d43f9b885273
768
+ ----==_mimepart_582dd0db1ad53_d4703fd50d43f9c825635
660
769
  Content-Type: text/plain;
661
770
  charset=UTF-8
662
771
  Content-Transfer-Encoding: 7bit
@@ -672,11 +781,11 @@ To get started, confirm your account and set your own password by
672
781
  clicking the link below:
673
782
 
674
783
  Confirm my account
675
- ( http://localhost:3000/admin/users/confirmation.2257d566-0459-4662-84ec-6c82bbc27c1c?confirmation_token=_p5fhGyK8P7vftmPHBra )
784
+ ( http://localhost:3000/admin/confirmation.e4fc2feb-b0d9-4fa8-b350-f0c9075d1a24?confirmation_token=d5kyX3nz9n641VXzhq-A )
676
785
 
677
786
 
678
787
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
679
- ----==_mimepart_582cdde28162e_32783fe28d43f9b885273
788
+ ----==_mimepart_582dd0db1ad53_d4703fd50d43f9c825635
680
789
  Content-Type: text/html;
681
790
  charset=UTF-8
682
791
  Content-Transfer-Encoding: 7bit
@@ -722,7 +831,7 @@ body {
722
831
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
723
832
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
724
833
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
725
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.2257d566-0459-4662-84ec-6c82bbc27c1c?confirmation_token=_p5fhGyK8P7vftmPHBra" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
834
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.e4fc2feb-b0d9-4fa8-b350-f0c9075d1a24?confirmation_token=d5kyX3nz9n641VXzhq-A" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
726
835
  </td>
727
836
  </tr>
728
837
  </table>
@@ -767,47 +876,47 @@ body {
767
876
  </body>
768
877
  </html>
769
878
 
770
- ----==_mimepart_582cdde28162e_32783fe28d43f9b885273--
879
+ ----==_mimepart_582dd0db1ad53_d4703fd50d43f9c825635--
771
880
 
772
- Redirected to http://test.host/push_type/users
773
- Completed 302 Found in 43ms (ActiveRecord: 0.5ms)
881
+ Processing by PushType::ConfirmationsController#show as HTML
882
+ Parameters: {"confirmation_token"=>"d5kyX3nz9n641VXzhq-A"}
883
+ 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 $2 [["confirmation_token", "d5kyX3nz9n641VXzhq-A"], ["LIMIT", 1]]
884
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
885
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
886
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (2.0ms)
887
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.2ms)
774
888
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
775
889
   (0.1ms) ROLLBACK
776
890
   (0.1ms) BEGIN
777
- ----------------------------------------------------------------------
778
- PushType::Admin::UsersControllerTest::PUT #invite: test_0003_anonymous
779
- ----------------------------------------------------------------------
780
-  (0.1ms) SAVEPOINT active_record_1
891
+ ----------------------------------------------------------------------------------------------------
892
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
893
+ ----------------------------------------------------------------------------------------------------
894
+  (0.0ms) SAVEPOINT active_record_1
781
895
   (0.1ms) RELEASE SAVEPOINT active_record_1
782
896
   (0.1ms) SAVEPOINT active_record_1
783
897
   (0.1ms) SAVEPOINT active_record_2
784
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
785
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
786
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:54 UTC], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
787
-  (0.1ms) RELEASE SAVEPOINT active_record_2
788
-  (0.1ms) SAVEPOINT active_record_2
789
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
790
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
791
- 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-6@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "ULSyydis9zoYHN3nLFVJ"], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
898
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
899
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
900
+ 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-7@example.com"], ["created_at", 2016-11-17 15:46:35 UTC], ["updated_at", 2016-11-17 15:46:35 UTC], ["confirmation_token", "rXuNA46as2vZZyDMqHax"], ["confirmation_sent_at", 2016-11-17 15:46:35 UTC]]
792
901
   (0.1ms) RELEASE SAVEPOINT active_record_2
793
902
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
794
903
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
795
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
796
- Sent mail to joe-6@example.com (3.5ms)
797
- Date: Wed, 16 Nov 2016 22:29:54 +0000
904
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.3ms
905
+ Sent mail to joe-7@example.com (4.5ms)
906
+ Date: Thu, 17 Nov 2016 15:46:35 +0000
798
907
  From: pushtype@example.com
799
908
  Reply-To: pushtype@example.com
800
- To: joe-6@example.com
801
- Message-ID: <582cdde28d3b5_32783fe28d43f9b8856b2@Aarons-iMac.local.mail>
909
+ To: joe-7@example.com
910
+ Message-ID: <582dd0db28fad_d4703fd50d43f9c826085@Aarons-iMac.local.mail>
802
911
  Subject: [PushType] Confirm your account
803
912
  Mime-Version: 1.0
804
913
  Content-Type: multipart/alternative;
805
- boundary="--==_mimepart_582cdde28cf00_32783fe28d43f9b885557";
914
+ boundary="--==_mimepart_582dd0db289e5_d4703fd50d43f9c8259b0";
806
915
  charset=UTF-8
807
916
  Content-Transfer-Encoding: 7bit
808
917
 
809
918
 
810
- ----==_mimepart_582cdde28cf00_32783fe28d43f9b885557
919
+ ----==_mimepart_582dd0db289e5_d4703fd50d43f9c8259b0
811
920
  Content-Type: text/plain;
812
921
  charset=UTF-8
813
922
  Content-Transfer-Encoding: 7bit
@@ -823,11 +932,11 @@ To get started, confirm your account and set your own password by
823
932
  clicking the link below:
824
933
 
825
934
  Confirm my account
826
- ( http://localhost:3000/admin/users/confirmation.89fac987-1ca1-479c-9780-7265dcf0e619?confirmation_token=ULSyydis9zoYHN3nLFVJ )
935
+ ( http://localhost:3000/admin/confirmation.d4fa336d-9ff6-4c8c-a4cc-c1694aeb65ad?confirmation_token=rXuNA46as2vZZyDMqHax )
827
936
 
828
937
 
829
938
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
830
- ----==_mimepart_582cdde28cf00_32783fe28d43f9b885557
939
+ ----==_mimepart_582dd0db289e5_d4703fd50d43f9c8259b0
831
940
  Content-Type: text/html;
832
941
  charset=UTF-8
833
942
  Content-Transfer-Encoding: 7bit
@@ -873,7 +982,7 @@ body {
873
982
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
874
983
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
875
984
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
876
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.89fac987-1ca1-479c-9780-7265dcf0e619?confirmation_token=ULSyydis9zoYHN3nLFVJ" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
985
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.d4fa336d-9ff6-4c8c-a4cc-c1694aeb65ad?confirmation_token=rXuNA46as2vZZyDMqHax" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
877
986
  </td>
878
987
  </tr>
879
988
  </table>
@@ -918,32 +1027,65 @@ body {
918
1027
  </body>
919
1028
  </html>
920
1029
 
921
- ----==_mimepart_582cdde28cf00_32783fe28d43f9b885557--
1030
+ ----==_mimepart_582dd0db289e5_d4703fd50d43f9c8259b0--
922
1031
 
923
- Processing by PushType::Admin::UsersController#invite as HTML
924
- Parameters: {"id"=>"89fac987-1ca1-479c-9780-7265dcf0e619"}
925
- 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 $2 [["id", "2d10b16e-e6bc-40ab-a5b5-b71cdcde21af"], ["LIMIT", 1]]
926
- 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 $2 [["id", "89fac987-1ca1-479c-9780-7265dcf0e619"], ["LIMIT", 1]]
927
-  (0.1ms) SAVEPOINT active_record_2
928
-  (0.1ms) RELEASE SAVEPOINT active_record_2
929
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
930
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1032
+ Processing by PushType::ConfirmationsController#show as HTML
1033
+ Parameters: {"confirmation_token"=>"rXuNA46as2vZZyDMqHax"}
1034
+ 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 $2 [["confirmation_token", "rXuNA46as2vZZyDMqHax"], ["LIMIT", 1]]
1035
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1036
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1037
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
1038
+ Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms)
1039
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1040
+  (0.1ms) ROLLBACK
1041
+  (0.1ms) BEGIN
1042
+ ---------------------------------------------------------------
1043
+ PushType::AuthenticatableTest::confirmable: test_0001_anonymous
1044
+ ---------------------------------------------------------------
1045
+  (0.1ms) SAVEPOINT active_record_1
1046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1047
+  (0.0ms) SAVEPOINT active_record_1
1048
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1049
+  (0.1ms) ROLLBACK
1050
+  (0.1ms) BEGIN
1051
+ -------------------------------------------------------------
1052
+ PushType::AuthenticatableTest::trackable: test_0001_anonymous
1053
+ -------------------------------------------------------------
1054
+  (0.1ms) SAVEPOINT active_record_1
1055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1056
+  (0.1ms) SAVEPOINT active_record_1
1057
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1058
+  (0.1ms) ROLLBACK
1059
+  (0.1ms) BEGIN
1060
+ --------------------------------------------------------------------------------------------------------------
1061
+ PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
1062
+ --------------------------------------------------------------------------------------------------------------
1063
+  (0.1ms) SAVEPOINT active_record_1
1064
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1065
+  (0.0ms) SAVEPOINT active_record_1
1066
+  (0.1ms) SAVEPOINT active_record_2
1067
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
1068
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
1069
+ 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-8@example.com"], ["created_at", 2016-11-17 15:46:35 UTC], ["updated_at", 2016-11-17 15:46:35 UTC], ["confirmation_token", "Kwoz8WhzSpXdyUyHXoRQ"], ["confirmation_sent_at", 2016-11-17 15:46:35 UTC]]
1070
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1071
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1072
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
931
1073
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
932
- Sent mail to joe-6@example.com (3.9ms)
933
- Date: Wed, 16 Nov 2016 22:29:54 +0000
1074
+ Sent mail to joe-8@example.com (3.3ms)
1075
+ Date: Thu, 17 Nov 2016 15:46:35 +0000
934
1076
  From: pushtype@example.com
935
1077
  Reply-To: pushtype@example.com
936
- To: joe-6@example.com
937
- Message-ID: <582cdde297c1b_32783fe28d43f9b885932@Aarons-iMac.local.mail>
1078
+ To: joe-8@example.com
1079
+ Message-ID: <582dd0db36697_d4703fd50d43f9c826398@Aarons-iMac.local.mail>
938
1080
  Subject: [PushType] Confirm your account
939
1081
  Mime-Version: 1.0
940
1082
  Content-Type: multipart/alternative;
941
- boundary="--==_mimepart_582cdde297791_32783fe28d43f9b885866";
1083
+ boundary="--==_mimepart_582dd0db3627e_d4703fd50d43f9c826222";
942
1084
  charset=UTF-8
943
1085
  Content-Transfer-Encoding: 7bit
944
1086
 
945
1087
 
946
- ----==_mimepart_582cdde297791_32783fe28d43f9b885866
1088
+ ----==_mimepart_582dd0db3627e_d4703fd50d43f9c826222
947
1089
  Content-Type: text/plain;
948
1090
  charset=UTF-8
949
1091
  Content-Transfer-Encoding: 7bit
@@ -959,11 +1101,11 @@ To get started, confirm your account and set your own password by
959
1101
  clicking the link below:
960
1102
 
961
1103
  Confirm my account
962
- ( http://localhost:3000/admin/users/confirmation.89fac987-1ca1-479c-9780-7265dcf0e619?confirmation_token=ULSyydis9zoYHN3nLFVJ )
1104
+ ( http://localhost:3000/admin/confirmation.0fc495a9-0949-4230-bbac-8f5191d04067?confirmation_token=Kwoz8WhzSpXdyUyHXoRQ )
963
1105
 
964
1106
 
965
1107
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
966
- ----==_mimepart_582cdde297791_32783fe28d43f9b885866
1108
+ ----==_mimepart_582dd0db3627e_d4703fd50d43f9c826222
967
1109
  Content-Type: text/html;
968
1110
  charset=UTF-8
969
1111
  Content-Transfer-Encoding: 7bit
@@ -1009,7 +1151,7 @@ body {
1009
1151
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1010
1152
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1011
1153
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1012
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.89fac987-1ca1-479c-9780-7265dcf0e619?confirmation_token=ULSyydis9zoYHN3nLFVJ" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1154
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.0fc495a9-0949-4230-bbac-8f5191d04067?confirmation_token=Kwoz8WhzSpXdyUyHXoRQ" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1013
1155
  </td>
1014
1156
  </tr>
1015
1157
  </table>
@@ -1054,47 +1196,58 @@ body {
1054
1196
  </body>
1055
1197
  </html>
1056
1198
 
1057
- ----==_mimepart_582cdde297791_32783fe28d43f9b885866--
1199
+ ----==_mimepart_582dd0db3627e_d4703fd50d43f9c826222--
1058
1200
 
1059
- Redirected to http://test.host/push_type/users
1060
- Completed 302 Found in 43ms (ActiveRecord: 0.7ms)
1061
1201
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1062
1202
   (0.1ms) ROLLBACK
1063
1203
   (0.1ms) BEGIN
1064
- ----------------------------------------------------------------------
1065
- PushType::Admin::UsersControllerTest::PUT #invite: test_0002_anonymous
1066
- ----------------------------------------------------------------------
1204
+ ---------------------------------------------------------------
1205
+ PushType::AuthenticatableTest::validatable: test_0002_anonymous
1206
+ ---------------------------------------------------------------
1067
1207
   (0.0ms) SAVEPOINT active_record_1
1068
1208
   (0.0ms) RELEASE SAVEPOINT active_record_1
1209
+  (0.0ms) SAVEPOINT active_record_1
1210
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1211
+  (0.1ms) ROLLBACK
1212
+  (0.1ms) BEGIN
1213
+ ---------------------------------------------------------------
1214
+ PushType::AuthenticatableTest::validatable: test_0001_anonymous
1215
+ ---------------------------------------------------------------
1216
+  (0.1ms) SAVEPOINT active_record_1
1217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1218
+  (0.1ms) SAVEPOINT active_record_1
1219
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1220
+  (0.1ms) ROLLBACK
1221
+  (0.0ms) BEGIN
1222
+ --------------------------------------------------------------------------------------------------------------
1223
+ PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
1224
+ --------------------------------------------------------------------------------------------------------------
1225
+  (0.1ms) SAVEPOINT active_record_1
1226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1069
1227
   (0.1ms) SAVEPOINT active_record_1
1070
1228
   (0.1ms) SAVEPOINT active_record_2
1071
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
1072
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
1073
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:54 UTC], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
1074
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1075
-  (0.1ms) SAVEPOINT active_record_2
1076
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
1077
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
1078
- SQL (0.4ms) 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", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "Y29N2DnHQWhm4xvKcQ18"], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
1229
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1230
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1231
+ 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-9@example.com"], ["created_at", 2016-11-17 15:46:35 UTC], ["updated_at", 2016-11-17 15:46:35 UTC], ["confirmation_token", "3tsiag8GmZAagzwQfMbw"], ["confirmation_sent_at", 2016-11-17 15:46:35 UTC]]
1079
1232
   (0.1ms) RELEASE SAVEPOINT active_record_2
1080
1233
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1081
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
1082
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
1083
- Sent mail to joe-8@example.com (3.5ms)
1084
- Date: Wed, 16 Nov 2016 22:29:54 +0000
1234
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1235
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
1236
+ Sent mail to joe-9@example.com (3.6ms)
1237
+ Date: Thu, 17 Nov 2016 15:46:35 +0000
1085
1238
  From: pushtype@example.com
1086
1239
  Reply-To: pushtype@example.com
1087
- To: joe-8@example.com
1088
- Message-ID: <582cdde2a449b_32783fe28d43f9b886249@Aarons-iMac.local.mail>
1240
+ To: joe-9@example.com
1241
+ Message-ID: <582dd0db44265_d4703fd50d43f9c82668f@Aarons-iMac.local.mail>
1089
1242
  Subject: [PushType] Confirm your account
1090
1243
  Mime-Version: 1.0
1091
1244
  Content-Type: multipart/alternative;
1092
- boundary="--==_mimepart_582cdde2a4011_32783fe28d43f9b8861e9";
1245
+ boundary="--==_mimepart_582dd0db43e31_d4703fd50d43f9c826557";
1093
1246
  charset=UTF-8
1094
1247
  Content-Transfer-Encoding: 7bit
1095
1248
 
1096
1249
 
1097
- ----==_mimepart_582cdde2a4011_32783fe28d43f9b8861e9
1250
+ ----==_mimepart_582dd0db43e31_d4703fd50d43f9c826557
1098
1251
  Content-Type: text/plain;
1099
1252
  charset=UTF-8
1100
1253
  Content-Transfer-Encoding: 7bit
@@ -1110,11 +1263,11 @@ To get started, confirm your account and set your own password by
1110
1263
  clicking the link below:
1111
1264
 
1112
1265
  Confirm my account
1113
- ( http://localhost:3000/admin/users/confirmation.63409346-2eee-45c5-b8e3-37447054b6db?confirmation_token=Y29N2DnHQWhm4xvKcQ18 )
1266
+ ( http://localhost:3000/admin/confirmation.d2de71d6-31c1-4e29-8895-8f36d0662fc2?confirmation_token=3tsiag8GmZAagzwQfMbw )
1114
1267
 
1115
1268
 
1116
1269
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1117
- ----==_mimepart_582cdde2a4011_32783fe28d43f9b8861e9
1270
+ ----==_mimepart_582dd0db43e31_d4703fd50d43f9c826557
1118
1271
  Content-Type: text/html;
1119
1272
  charset=UTF-8
1120
1273
  Content-Transfer-Encoding: 7bit
@@ -1160,7 +1313,7 @@ body {
1160
1313
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1161
1314
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1162
1315
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1163
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.63409346-2eee-45c5-b8e3-37447054b6db?confirmation_token=Y29N2DnHQWhm4xvKcQ18" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1316
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.d2de71d6-31c1-4e29-8895-8f36d0662fc2?confirmation_token=3tsiag8GmZAagzwQfMbw" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1164
1317
  </td>
1165
1318
  </tr>
1166
1319
  </table>
@@ -1205,32 +1358,140 @@ body {
1205
1358
  </body>
1206
1359
  </html>
1207
1360
 
1208
- ----==_mimepart_582cdde2a4011_32783fe28d43f9b8861e9--
1361
+ ----==_mimepart_582dd0db43e31_d4703fd50d43f9c826557--
1209
1362
 
1210
- Processing by PushType::Admin::UsersController#invite as HTML
1211
- Parameters: {"id"=>"63409346-2eee-45c5-b8e3-37447054b6db"}
1212
- 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 $2 [["id", "1526a3a3-0812-45ce-80c9-68b05aff5568"], ["LIMIT", 1]]
1213
- 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 $2 [["id", "63409346-2eee-45c5-b8e3-37447054b6db"], ["LIMIT", 1]]
1363
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1364
+  (0.1ms) ROLLBACK
1365
+  (0.1ms) BEGIN
1366
+ -----------------------------------------------------------------------
1367
+ AuthenticatedControllerTest::authenticated request: test_0001_anonymous
1368
+ -----------------------------------------------------------------------
1369
+  (0.1ms) SAVEPOINT active_record_1
1370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1371
+  (0.0ms) SAVEPOINT active_record_1
1372
+  (0.1ms) SAVEPOINT active_record_2
1373
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1374
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1375
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "encrypted_password", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", 2016-11-17 15:46:35 UTC], ["updated_at", 2016-11-17 15:46:35 UTC], ["encrypted_password", "$2a$04$w7gh3VZ3OzTpYTXST9fVcOdXCf722YMh8/4rh5gVaNy4WE/7NUuHy"], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:35 UTC], ["confirmation_sent_at", 2016-11-17 15:46:35 UTC]]
1376
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1377
+ Started POST "/admin/sign_in" for 127.0.0.1 at 2016-11-17 15:46:35 +0000
1378
+ Processing by PushType::SessionsController#create as HTML
1379
+ Parameters: {"user"=>{"email"=>"joe-10@example.com", "password"=>"[FILTERED]"}}
1380
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."email" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1381
+  (0.1ms) SAVEPOINT active_record_2
1382
+ SQL (0.3ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["current_sign_in_at", 2016-11-17 15:46:35 UTC], ["last_sign_in_at", 2016-11-17 15:46:35 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2016-11-17 15:46:35 UTC], ["id", "aaa15e16-d375-49ac-8b96-96b9d50e87d8"]]
1383
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1384
+ Redirected to http://www.example.com/admin/
1385
+ Completed 302 Found in 49ms (ActiveRecord: 0.8ms)
1386
+ Started GET "/admin/nodes" for 127.0.0.1 at 2016-11-17 15:46:35 +0000
1387
+ Processing by PushType::Admin::NodesController#index as HTML
1388
+ 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 $2 [["id", "aaa15e16-d375-49ac-8b96-96b9d50e87d8"], ["LIMIT", 1]]
1389
+ Rendering /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin
1390
+  (0.7ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT $1 OFFSET $2) subquery_for_count [["LIMIT", 30], ["OFFSET", 0]]
1391
+  (0.4ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
1392
+ Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/_new_node_button.html.haml (2.6ms)
1393
+ Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin (36.1ms)
1394
+ Completed 200 OK in 2071ms (Views: 55.8ms | ActiveRecord: 1.4ms)
1395
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1396
+  (0.1ms) ROLLBACK
1397
+  (0.1ms) BEGIN
1398
+ --------------------------------------------------------------------------------------
1399
+ PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
1400
+ --------------------------------------------------------------------------------------
1401
+  (0.1ms) SAVEPOINT active_record_1
1402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1403
+  (0.1ms) SAVEPOINT active_record_1
1404
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1405
+  (0.1ms) ROLLBACK
1406
+  (0.1ms) BEGIN
1407
+ --------------------------------------------------------------------------------------------
1408
+ AuthenticatedApiControllerTest::authenticated with authorization header: test_0001_anonymous
1409
+ --------------------------------------------------------------------------------------------
1410
+  (0.1ms) SAVEPOINT active_record_1
1411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1412
+  (0.1ms) SAVEPOINT active_record_1
1413
+  (0.2ms) SAVEPOINT active_record_2
1414
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1415
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1416
+ SQL (0.4ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
1417
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1418
+ Started GET "/api/nodes" for 127.0.0.1 at 2016-11-17 15:46:37 +0000
1419
+ Processing by PushType::Api::NodesController#index as JSON
1420
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "93aac0b0-b972-4553-a07b-262929f484bd"], ["LIMIT", 1]]
1421
+ Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
1422
+ PushType::Node Load (0.6ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1423
+ Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
1424
+ Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (7.9ms)
1425
+ Completed 200 OK in 66ms (Views: 52.0ms | ActiveRecord: 0.9ms)
1426
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1427
+  (0.1ms) ROLLBACK
1428
+  (0.1ms) BEGIN
1429
+ ---------------------------------------------------------------------------
1430
+ PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
1431
+ ---------------------------------------------------------------------------
1432
+  (0.1ms) SAVEPOINT active_record_1
1433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1434
+  (0.1ms) SAVEPOINT active_record_1
1435
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1436
+  (0.1ms) ROLLBACK
1437
+  (0.1ms) BEGIN
1438
+ ---------------------------------------------------------------------------
1439
+ PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
1440
+ ---------------------------------------------------------------------------
1441
+  (0.1ms) SAVEPOINT active_record_1
1442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1443
+  (0.1ms) SAVEPOINT active_record_1
1444
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1445
+  (0.1ms) ROLLBACK
1446
+  (0.1ms) BEGIN
1447
+ -------------------------------------------------------------------------
1448
+ AuthenticatedControllerTest::unauthenticated request: test_0001_anonymous
1449
+ -------------------------------------------------------------------------
1450
+  (0.1ms) SAVEPOINT active_record_1
1451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1452
+  (0.1ms) SAVEPOINT active_record_1
1453
+ Started GET "/admin/nodes" for 127.0.0.1 at 2016-11-17 15:46:37 +0000
1454
+ Processing by PushType::Admin::NodesController#index as HTML
1455
+ Redirected to http://www.example.com/admin/sign_in
1456
+ Filter chain halted as :authenticate_user! rendered or redirected
1457
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1458
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1459
+  (0.1ms) ROLLBACK
1460
+  (0.1ms) BEGIN
1461
+ ----------------------------------------------------------------------
1462
+ PushType::Admin::UsersControllerTest::PUT #invite: test_0001_anonymous
1463
+ ----------------------------------------------------------------------
1464
+  (0.1ms) SAVEPOINT active_record_1
1465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1466
+  (0.1ms) SAVEPOINT active_record_1
1467
+  (0.1ms) SAVEPOINT active_record_2
1468
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1469
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1470
+ SQL (0.5ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
1471
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1214
1472
   (0.1ms) SAVEPOINT active_record_2
1473
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
1474
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
1475
+ SQL (0.4ms) 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", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "FvZjFuis1q7U5sGHfTx-"], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
1215
1476
   (0.1ms) RELEASE SAVEPOINT active_record_2
1216
1477
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1217
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1218
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.5ms
1219
- Sent mail to joe-8@example.com (3.5ms)
1220
- Date: Wed, 16 Nov 2016 22:29:54 +0000
1478
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (1.1ms)
1479
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 61.5ms
1480
+ Sent mail to joe-13@example.com (6.6ms)
1481
+ Date: Thu, 17 Nov 2016 15:46:37 +0000
1221
1482
  From: pushtype@example.com
1222
1483
  Reply-To: pushtype@example.com
1223
- To: joe-8@example.com
1224
- Message-ID: <582cdde2aeedf_32783fe28d43f9b886565@Aarons-iMac.local.mail>
1484
+ To: joe-13@example.com
1485
+ Message-ID: <582dd0dd9cb04_d4703fd50d43f9c826941@Aarons-iMac.local.mail>
1225
1486
  Subject: [PushType] Confirm your account
1226
1487
  Mime-Version: 1.0
1227
1488
  Content-Type: multipart/alternative;
1228
- boundary="--==_mimepart_582cdde2aeaa8_32783fe28d43f9b886414";
1489
+ boundary="--==_mimepart_582dd0dd9c2ff_d4703fd50d43f9c8268fb";
1229
1490
  charset=UTF-8
1230
1491
  Content-Transfer-Encoding: 7bit
1231
1492
 
1232
1493
 
1233
- ----==_mimepart_582cdde2aeaa8_32783fe28d43f9b886414
1494
+ ----==_mimepart_582dd0dd9c2ff_d4703fd50d43f9c8268fb
1234
1495
  Content-Type: text/plain;
1235
1496
  charset=UTF-8
1236
1497
  Content-Transfer-Encoding: 7bit
@@ -1246,11 +1507,11 @@ To get started, confirm your account and set your own password by
1246
1507
  clicking the link below:
1247
1508
 
1248
1509
  Confirm my account
1249
- ( http://localhost:3000/admin/users/confirmation.63409346-2eee-45c5-b8e3-37447054b6db?confirmation_token=Y29N2DnHQWhm4xvKcQ18 )
1510
+ ( http://localhost:3000/admin/confirmation.a3fb4cfe-938c-42b1-8dd7-c6be21d8636f?confirmation_token=FvZjFuis1q7U5sGHfTx- )
1250
1511
 
1251
1512
 
1252
1513
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1253
- ----==_mimepart_582cdde2aeaa8_32783fe28d43f9b886414
1514
+ ----==_mimepart_582dd0dd9c2ff_d4703fd50d43f9c8268fb
1254
1515
  Content-Type: text/html;
1255
1516
  charset=UTF-8
1256
1517
  Content-Transfer-Encoding: 7bit
@@ -1296,7 +1557,7 @@ body {
1296
1557
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1297
1558
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1298
1559
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1299
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.63409346-2eee-45c5-b8e3-37447054b6db?confirmation_token=Y29N2DnHQWhm4xvKcQ18" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1560
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.a3fb4cfe-938c-42b1-8dd7-c6be21d8636f?confirmation_token=FvZjFuis1q7U5sGHfTx-" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1300
1561
  </td>
1301
1562
  </tr>
1302
1563
  </table>
@@ -1341,79 +1602,32 @@ body {
1341
1602
  </body>
1342
1603
  </html>
1343
1604
 
1344
- ----==_mimepart_582cdde2aeaa8_32783fe28d43f9b886414--
1605
+ ----==_mimepart_582dd0dd9c2ff_d4703fd50d43f9c8268fb--
1345
1606
 
1346
- Redirected to http://test.host/push_type/users
1347
- Completed 302 Found in 43ms (ActiveRecord: 0.6ms)
1348
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1349
-  (0.1ms) ROLLBACK
1350
-  (0.0ms) BEGIN
1351
- -----------------------------------------------------------------------------------
1352
- AuthenticatedApiControllerTest::authenticated with token param: test_0001_anonymous
1353
- -----------------------------------------------------------------------------------
1354
-  (0.0ms) SAVEPOINT active_record_1
1355
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1356
-  (0.0ms) SAVEPOINT active_record_1
1357
-  (0.1ms) SAVEPOINT active_record_2
1358
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1359
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1360
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:54 UTC], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
1361
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1362
- Started GET "/api/nodes?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzk0MjE3OTQsInN1YiI6IjNjNGYxZGRjLWMzMDktNDMxYS05MWE1LWZiNTc3NDQ3NDdiYyJ9.5vpdy4qvaITEglYqX9ezfCYNuUpR35ev_fPVP4b19_4" for 127.0.0.1 at 2016-11-16 22:29:54 +0000
1363
- Processing by PushType::Api::NodesController#index as JSON
1364
- Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzk0MjE3OTQsInN1YiI6IjNjNGYxZGRjLWMzMDktNDMxYS05MWE1LWZiNTc3NDQ3NDdiYyJ9.5vpdy4qvaITEglYqX9ezfCYNuUpR35ev_fPVP4b19_4"}
1365
- 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 $2 [["id", "3c4f1ddc-c309-431a-91a5-fb57744747bc"], ["LIMIT", 1]]
1366
- Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
1367
- PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1368
- Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
1369
- Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (6.7ms)
1370
- Completed 200 OK in 51ms (Views: 33.9ms | ActiveRecord: 0.8ms)
1371
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1372
-  (0.1ms) ROLLBACK
1373
-  (0.0ms) BEGIN
1374
- -------------------------------------------------------------------------
1375
- AuthenticatedControllerTest::unauthenticated request: test_0001_anonymous
1376
- -------------------------------------------------------------------------
1377
-  (0.1ms) SAVEPOINT active_record_1
1378
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1379
-  (0.0ms) SAVEPOINT active_record_1
1380
- Started GET "/admin/nodes" for 127.0.0.1 at 2016-11-16 22:29:54 +0000
1381
- Processing by PushType::Admin::NodesController#index as HTML
1382
- Redirected to http://www.example.com/admin/users/sign_in
1383
- Filter chain halted as :authenticate_user! rendered or redirected
1384
- Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
1385
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1386
-  (0.1ms) ROLLBACK
1387
-  (0.1ms) BEGIN
1388
- ----------------------------------------------------------------------------------------
1389
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
1390
- ----------------------------------------------------------------------------------------
1391
-  (0.1ms) SAVEPOINT active_record_1
1392
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1393
-  (0.0ms) SAVEPOINT active_record_1
1607
+ Processing by PushType::Admin::UsersController#invite as HTML
1608
+ Parameters: {"id"=>"a3fb4cfe-938c-42b1-8dd7-c6be21d8636f"}
1609
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "fb8ae052-6a3c-4b70-997e-6b9c32000d6d"], ["LIMIT", 1]]
1610
+ 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 $2 [["id", "a3fb4cfe-938c-42b1-8dd7-c6be21d8636f"], ["LIMIT", 1]]
1394
1611
   (0.1ms) SAVEPOINT active_record_2
1395
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1396
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1397
- 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-10@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "ytkRVKLZeb7-awx-Arn8"], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
1398
1612
   (0.1ms) RELEASE SAVEPOINT active_record_2
1399
1613
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1400
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.8ms)
1401
- Devise::Mailer#confirmation_instructions: processed outbound mail in 37.5ms
1402
- Sent mail to joe-10@example.com (3.5ms)
1403
- Date: Wed, 16 Nov 2016 22:29:54 +0000
1614
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
1615
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 4.0ms
1616
+ Sent mail to joe-13@example.com (4.0ms)
1617
+ Date: Thu, 17 Nov 2016 15:46:37 +0000
1404
1618
  From: pushtype@example.com
1405
1619
  Reply-To: pushtype@example.com
1406
- To: joe-10@example.com
1407
- Message-ID: <582cdde2d75ab_32783fe28d43f9b886866@Aarons-iMac.local.mail>
1620
+ To: joe-13@example.com
1621
+ Message-ID: <582dd0ddab284_d4703fd50d43f9c8272af@Aarons-iMac.local.mail>
1408
1622
  Subject: [PushType] Confirm your account
1409
1623
  Mime-Version: 1.0
1410
1624
  Content-Type: multipart/alternative;
1411
- boundary="--==_mimepart_582cdde2d7115_32783fe28d43f9b8867b2";
1625
+ boundary="--==_mimepart_582dd0ddaae31_d4703fd50d43f9c8271bb";
1412
1626
  charset=UTF-8
1413
1627
  Content-Transfer-Encoding: 7bit
1414
1628
 
1415
1629
 
1416
- ----==_mimepart_582cdde2d7115_32783fe28d43f9b8867b2
1630
+ ----==_mimepart_582dd0ddaae31_d4703fd50d43f9c8271bb
1417
1631
  Content-Type: text/plain;
1418
1632
  charset=UTF-8
1419
1633
  Content-Transfer-Encoding: 7bit
@@ -1429,11 +1643,11 @@ To get started, confirm your account and set your own password by
1429
1643
  clicking the link below:
1430
1644
 
1431
1645
  Confirm my account
1432
- ( http://localhost:3000/admin/users/confirmation.444896d5-73c2-4e8d-b51c-f2b6a20d2ac2?confirmation_token=ytkRVKLZeb7-awx-Arn8 )
1646
+ ( http://localhost:3000/admin/confirmation.a3fb4cfe-938c-42b1-8dd7-c6be21d8636f?confirmation_token=FvZjFuis1q7U5sGHfTx- )
1433
1647
 
1434
1648
 
1435
1649
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1436
- ----==_mimepart_582cdde2d7115_32783fe28d43f9b8867b2
1650
+ ----==_mimepart_582dd0ddaae31_d4703fd50d43f9c8271bb
1437
1651
  Content-Type: text/html;
1438
1652
  charset=UTF-8
1439
1653
  Content-Transfer-Encoding: 7bit
@@ -1479,7 +1693,7 @@ body {
1479
1693
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1480
1694
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1481
1695
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1482
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.444896d5-73c2-4e8d-b51c-f2b6a20d2ac2?confirmation_token=ytkRVKLZeb7-awx-Arn8" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1696
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.a3fb4cfe-938c-42b1-8dd7-c6be21d8636f?confirmation_token=FvZjFuis1q7U5sGHfTx-" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1483
1697
  </td>
1484
1698
  </tr>
1485
1699
  </table>
@@ -1524,52 +1738,47 @@ body {
1524
1738
  </body>
1525
1739
  </html>
1526
1740
 
1527
- ----==_mimepart_582cdde2d7115_32783fe28d43f9b8867b2--
1741
+ ----==_mimepart_582dd0ddaae31_d4703fd50d43f9c8271bb--
1528
1742
 
1529
- Processing by PushType::ConfirmationsController#update as HTML
1530
- Parameters: {"user"=>{"confirmation_token"=>"ytkRVKLZeb7-awx-Arn8", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1531
- 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 $2 [["confirmation_token", "ytkRVKLZeb7-awx-Arn8"], ["LIMIT", 1]]
1532
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-10@example.com"], ["id", "444896d5-73c2-4e8d-b51c-f2b6a20d2ac2"], ["LIMIT", 1]]
1533
-  (0.1ms) SAVEPOINT active_record_2
1534
- SQL (0.2ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$T3L1BVLS13Atoc4DLUaQnOYMKq3lymSqzuB9k8/5a7ywUSRsFsdTC"], ["confirmed_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["id", "444896d5-73c2-4e8d-b51c-f2b6a20d2ac2"]]
1535
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1536
-  (0.1ms) SAVEPOINT active_record_2
1537
- SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2016-11-16 22:29:54 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-11-16 22:29:54 UTC], ["last_sign_in_at", 2016-11-16 22:29:54 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "444896d5-73c2-4e8d-b51c-f2b6a20d2ac2"]]
1538
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1539
- Redirected to http://test.host/
1540
- Completed 302 Found in 18ms (ActiveRecord: 1.3ms)
1541
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1743
+ Redirected to http://test.host/push_type/users
1744
+ Completed 302 Found in 56ms (ActiveRecord: 0.8ms)
1745
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1542
1746
   (0.1ms) ROLLBACK
1543
1747
   (0.1ms) BEGIN
1544
- ----------------------------------------------------------------------------------------
1545
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
1546
- ----------------------------------------------------------------------------------------
1547
-  (0.0ms) SAVEPOINT active_record_1
1548
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1549
-  (0.0ms) SAVEPOINT active_record_1
1748
+ ----------------------------------------------------------------------
1749
+ PushType::Admin::UsersControllerTest::PUT #invite: test_0002_anonymous
1750
+ ----------------------------------------------------------------------
1751
+  (0.1ms) SAVEPOINT active_record_1
1752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1753
+  (0.1ms) SAVEPOINT active_record_1
1754
+  (0.1ms) SAVEPOINT active_record_2
1755
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
1756
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
1757
+ SQL (0.3ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
1758
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1550
1759
   (0.1ms) SAVEPOINT active_record_2
1551
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1552
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1553
- 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-11@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["confirmation_token", "X_9p8BEbM_JcepnardtC"], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
1760
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1761
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1762
+ 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-15@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "XxvfSxCkj8jHwtoH3aoh"], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
1554
1763
   (0.1ms) RELEASE SAVEPOINT active_record_2
1555
1764
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1556
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1557
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
1558
- Sent mail to joe-11@example.com (4.1ms)
1559
- Date: Wed, 16 Nov 2016 22:29:54 +0000
1765
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.5ms)
1766
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 4.8ms
1767
+ Sent mail to joe-15@example.com (5.4ms)
1768
+ Date: Thu, 17 Nov 2016 15:46:37 +0000
1560
1769
  From: pushtype@example.com
1561
1770
  Reply-To: pushtype@example.com
1562
- To: joe-11@example.com
1563
- Message-ID: <582cdde2e5b99_32783fe28d43f9b8871b9@Aarons-iMac.local.mail>
1771
+ To: joe-15@example.com
1772
+ Message-ID: <582dd0ddbba8a_d4703fd50d43f9c82758e@Aarons-iMac.local.mail>
1564
1773
  Subject: [PushType] Confirm your account
1565
1774
  Mime-Version: 1.0
1566
1775
  Content-Type: multipart/alternative;
1567
- boundary="--==_mimepart_582cdde2e5671_32783fe28d43f9b887079";
1776
+ boundary="--==_mimepart_582dd0ddbb46d_d4703fd50d43f9c82743b";
1568
1777
  charset=UTF-8
1569
1778
  Content-Transfer-Encoding: 7bit
1570
1779
 
1571
1780
 
1572
- ----==_mimepart_582cdde2e5671_32783fe28d43f9b887079
1781
+ ----==_mimepart_582dd0ddbb46d_d4703fd50d43f9c82743b
1573
1782
  Content-Type: text/plain;
1574
1783
  charset=UTF-8
1575
1784
  Content-Transfer-Encoding: 7bit
@@ -1585,11 +1794,11 @@ To get started, confirm your account and set your own password by
1585
1794
  clicking the link below:
1586
1795
 
1587
1796
  Confirm my account
1588
- ( http://localhost:3000/admin/users/confirmation.7f8a92cd-8152-4cc7-9f31-593f3b8b1c9c?confirmation_token=X_9p8BEbM_JcepnardtC )
1797
+ ( http://localhost:3000/admin/confirmation.7a53f1b2-0b87-4ca3-8844-634e6ce65607?confirmation_token=XxvfSxCkj8jHwtoH3aoh )
1589
1798
 
1590
1799
 
1591
1800
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1592
- ----==_mimepart_582cdde2e5671_32783fe28d43f9b887079
1801
+ ----==_mimepart_582dd0ddbb46d_d4703fd50d43f9c82743b
1593
1802
  Content-Type: text/html;
1594
1803
  charset=UTF-8
1595
1804
  Content-Transfer-Encoding: 7bit
@@ -1635,7 +1844,7 @@ body {
1635
1844
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1636
1845
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1637
1846
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1638
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.7f8a92cd-8152-4cc7-9f31-593f3b8b1c9c?confirmation_token=X_9p8BEbM_JcepnardtC" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1847
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.7a53f1b2-0b87-4ca3-8844-634e6ce65607?confirmation_token=XxvfSxCkj8jHwtoH3aoh" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1639
1848
  </td>
1640
1849
  </tr>
1641
1850
  </table>
@@ -1680,85 +1889,32 @@ body {
1680
1889
  </body>
1681
1890
  </html>
1682
1891
 
1683
- ----==_mimepart_582cdde2e5671_32783fe28d43f9b887079--
1892
+ ----==_mimepart_582dd0ddbb46d_d4703fd50d43f9c82743b--
1684
1893
 
1685
- Processing by PushType::ConfirmationsController#update as HTML
1686
- Parameters: {"user"=>{"confirmation_token"=>"X_9p8BEbM_JcepnardtC", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1687
- 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 $2 [["confirmation_token", "X_9p8BEbM_JcepnardtC"], ["LIMIT", 1]]
1688
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-11@example.com"], ["id", "7f8a92cd-8152-4cc7-9f31-593f3b8b1c9c"], ["LIMIT", 1]]
1689
-  (0.1ms) SAVEPOINT active_record_2
1690
- SQL (0.2ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$Wyw.UAqseQ1EV2ta15.Q6ONxs1AevgBJtVW751CzYaSHyHkIoQmfC"], ["confirmed_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["id", "7f8a92cd-8152-4cc7-9f31-593f3b8b1c9c"]]
1691
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1692
-  (0.1ms) SAVEPOINT active_record_2
1693
- SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2016-11-16 22:29:54 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-11-16 22:29:54 UTC], ["last_sign_in_at", 2016-11-16 22:29:54 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "7f8a92cd-8152-4cc7-9f31-593f3b8b1c9c"]]
1694
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1695
- Redirected to http://test.host/
1696
- Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
1697
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "7f8a92cd-8152-4cc7-9f31-593f3b8b1c9c"], ["LIMIT", 1]]
1698
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1699
-  (0.1ms) ROLLBACK
1700
-  (0.0ms) BEGIN
1701
- -----------------------------------------------------------------------
1702
- AuthenticatedControllerTest::authenticated request: test_0001_anonymous
1703
- -----------------------------------------------------------------------
1704
-  (0.0ms) SAVEPOINT active_record_1
1705
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1706
-  (0.0ms) SAVEPOINT active_record_1
1707
-  (0.1ms) SAVEPOINT active_record_2
1708
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1709
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1710
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "encrypted_password", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", 2016-11-16 22:29:54 UTC], ["updated_at", 2016-11-16 22:29:54 UTC], ["encrypted_password", "$2a$04$cNyBHhPxCH3rLvTB1sJP7.Z15Qb0KzCjMYVX5w/hxVMS3EQHd28D6"], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:54 UTC], ["confirmation_sent_at", 2016-11-16 22:29:54 UTC]]
1711
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1712
- Started POST "/admin/users/sign_in" for 127.0.0.1 at 2016-11-16 22:29:54 +0000
1713
- Processing by PushType::SessionsController#create as HTML
1714
- Parameters: {"user"=>{"email"=>"joe-12@example.com", "password"=>"[FILTERED]"}}
1715
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."email" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1894
+ Processing by PushType::Admin::UsersController#invite as HTML
1895
+ Parameters: {"id"=>"7a53f1b2-0b87-4ca3-8844-634e6ce65607"}
1896
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "5f981038-e263-4761-9a73-7803785f5022"], ["LIMIT", 1]]
1897
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "7a53f1b2-0b87-4ca3-8844-634e6ce65607"], ["LIMIT", 1]]
1716
1898
   (0.1ms) SAVEPOINT active_record_2
1717
- SQL (0.3ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["current_sign_in_at", 2016-11-16 22:29:54 UTC], ["last_sign_in_at", 2016-11-16 22:29:54 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2016-11-16 22:29:54 UTC], ["id", "f2681aff-fbaa-457c-881a-ea43a2533390"]]
1718
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1719
- Redirected to http://www.example.com/
1720
- Completed 302 Found in 46ms (ActiveRecord: 0.8ms)
1721
- Started GET "/admin/nodes" for 127.0.0.1 at 2016-11-16 22:29:55 +0000
1722
- Processing by PushType::Admin::NodesController#index as HTML
1723
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "f2681aff-fbaa-457c-881a-ea43a2533390"], ["LIMIT", 1]]
1724
- Rendering /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin
1725
-  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT $1 OFFSET $2) subquery_for_count [["LIMIT", 30], ["OFFSET", 0]]
1726
-  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
1727
- Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/_new_node_button.html.haml (2.1ms)
1728
- Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin (21.6ms)
1729
- Completed 200 OK in 2046ms (Views: 33.0ms | ActiveRecord: 0.9ms)
1730
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1731
-  (0.1ms) ROLLBACK
1732
-  (0.1ms) BEGIN
1733
- --------------------------------------------------------------------------------------------------------------
1734
- PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
1735
- --------------------------------------------------------------------------------------------------------------
1736
-  (0.1ms) SAVEPOINT active_record_1
1737
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1738
-  (0.0ms) SAVEPOINT active_record_1
1739
-  (0.1ms) SAVEPOINT active_record_2
1740
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
1741
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
1742
- 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-13@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "wy2ds-yTA5i8BSSsqt2a"], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
1743
1899
   (0.1ms) RELEASE SAVEPOINT active_record_2
1744
1900
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1745
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.8ms)
1746
- Devise::Mailer#confirmation_instructions: processed outbound mail in 38.1ms
1747
- Sent mail to joe-13@example.com (4.1ms)
1748
- Date: Wed, 16 Nov 2016 22:29:57 +0000
1901
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1902
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.7ms
1903
+ Sent mail to joe-15@example.com (3.5ms)
1904
+ Date: Thu, 17 Nov 2016 15:46:37 +0000
1749
1905
  From: pushtype@example.com
1750
1906
  Reply-To: pushtype@example.com
1751
- To: joe-13@example.com
1752
- Message-ID: <582cdde520ec4_32783fe28d43f9b8874e6@Aarons-iMac.local.mail>
1907
+ To: joe-15@example.com
1908
+ Message-ID: <582dd0ddc9c43_d4703fd50d43f9c8278b3@Aarons-iMac.local.mail>
1753
1909
  Subject: [PushType] Confirm your account
1754
1910
  Mime-Version: 1.0
1755
1911
  Content-Type: multipart/alternative;
1756
- boundary="--==_mimepart_582cdde520a16_32783fe28d43f9b887328";
1912
+ boundary="--==_mimepart_582dd0ddc97fa_d4703fd50d43f9c8277d2";
1757
1913
  charset=UTF-8
1758
1914
  Content-Transfer-Encoding: 7bit
1759
1915
 
1760
1916
 
1761
- ----==_mimepart_582cdde520a16_32783fe28d43f9b887328
1917
+ ----==_mimepart_582dd0ddc97fa_d4703fd50d43f9c8277d2
1762
1918
  Content-Type: text/plain;
1763
1919
  charset=UTF-8
1764
1920
  Content-Transfer-Encoding: 7bit
@@ -1774,11 +1930,11 @@ To get started, confirm your account and set your own password by
1774
1930
  clicking the link below:
1775
1931
 
1776
1932
  Confirm my account
1777
- ( http://localhost:3000/admin/users/confirmation.24988e74-f41a-4215-a62b-033c8172aae5?confirmation_token=wy2ds-yTA5i8BSSsqt2a )
1933
+ ( http://localhost:3000/admin/confirmation.7a53f1b2-0b87-4ca3-8844-634e6ce65607?confirmation_token=XxvfSxCkj8jHwtoH3aoh )
1778
1934
 
1779
1935
 
1780
1936
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1781
- ----==_mimepart_582cdde520a16_32783fe28d43f9b887328
1937
+ ----==_mimepart_582dd0ddc97fa_d4703fd50d43f9c8277d2
1782
1938
  Content-Type: text/html;
1783
1939
  charset=UTF-8
1784
1940
  Content-Transfer-Encoding: 7bit
@@ -1824,7 +1980,7 @@ body {
1824
1980
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1825
1981
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1826
1982
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1827
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.24988e74-f41a-4215-a62b-033c8172aae5?confirmation_token=wy2ds-yTA5i8BSSsqt2a" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1983
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.7a53f1b2-0b87-4ca3-8844-634e6ce65607?confirmation_token=XxvfSxCkj8jHwtoH3aoh" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
1828
1984
  </td>
1829
1985
  </tr>
1830
1986
  </table>
@@ -1869,319 +2025,47 @@ body {
1869
2025
  </body>
1870
2026
  </html>
1871
2027
 
1872
- ----==_mimepart_582cdde520a16_32783fe28d43f9b887328--
2028
+ ----==_mimepart_582dd0ddc97fa_d4703fd50d43f9c8277d2--
1873
2029
 
1874
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2030
+ Redirected to http://test.host/push_type/users
2031
+ Completed 302 Found in 55ms (ActiveRecord: 1.0ms)
2032
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1875
2033
   (0.1ms) ROLLBACK
1876
2034
   (0.1ms) BEGIN
1877
- --------------------------------------------------------------------------------------------
1878
- PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
1879
- --------------------------------------------------------------------------------------------
2035
+ ----------------------------------------------------------------------
2036
+ PushType::Admin::UsersControllerTest::PUT #invite: test_0003_anonymous
2037
+ ----------------------------------------------------------------------
1880
2038
   (0.1ms) SAVEPOINT active_record_1
1881
2039
   (0.1ms) RELEASE SAVEPOINT active_record_1
1882
-  (0.0ms) SAVEPOINT active_record_1
1883
-  (0.1ms) SAVEPOINT active_record_2
1884
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
1885
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
1886
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
1887
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1888
- Processing by PushType::Admin::ProfilesController#update as HTML
1889
- Parameters: {"user"=>{"name"=>""}}
1890
- 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 $2 [["id", "ad3c72ff-14ed-4648-abff-25251aad5417"], ["LIMIT", 1]]
1891
-  (0.1ms) SAVEPOINT active_record_2
1892
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-14@example.com"], ["id", "ad3c72ff-14ed-4648-abff-25251aad5417"], ["LIMIT", 1]]
1893
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1894
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
1895
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (6.3ms)
1896
- Completed 200 OK in 19ms (Views: 15.1ms | ActiveRecord: 0.5ms)
1897
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1898
-  (0.1ms) ROLLBACK
1899
-  (0.1ms) BEGIN
1900
- --------------------------------------------------------------------------------------------
1901
- PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
1902
- --------------------------------------------------------------------------------------------
1903
-  (0.0ms) SAVEPOINT active_record_1
1904
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1905
-  (0.0ms) SAVEPOINT active_record_1
1906
-  (0.1ms) SAVEPOINT active_record_2
1907
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1908
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1909
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
1910
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1911
- Processing by PushType::Admin::ProfilesController#update as HTML
1912
- Parameters: {"user"=>{"name"=>""}}
1913
- 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 $2 [["id", "957dcc71-a9c2-4f92-ae1f-728bf9aed245"], ["LIMIT", 1]]
1914
-  (0.1ms) SAVEPOINT active_record_2
1915
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-15@example.com"], ["id", "957dcc71-a9c2-4f92-ae1f-728bf9aed245"], ["LIMIT", 1]]
1916
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1917
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
1918
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (1.9ms)
1919
- Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.5ms)
1920
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1921
-  (0.1ms) ROLLBACK
1922
-  (0.1ms) BEGIN
1923
- ---------------------------------------------------------------
1924
- PushType::AuthenticatableTest::recoverable: test_0001_anonymous
1925
- ---------------------------------------------------------------
1926
-  (0.0ms) SAVEPOINT active_record_1
1927
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1928
-  (0.0ms) SAVEPOINT active_record_1
1929
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1930
-  (0.1ms) ROLLBACK
1931
-  (0.1ms) BEGIN
1932
- --------------------------------------------------------------------------------------------
1933
- AuthenticatedApiControllerTest::authenticated with authorization header: test_0001_anonymous
1934
- --------------------------------------------------------------------------------------------
1935
2040
   (0.1ms) SAVEPOINT active_record_1
1936
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1937
-  (0.0ms) SAVEPOINT active_record_1
1938
2041
   (0.1ms) SAVEPOINT active_record_2
2042
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-16@example.com"], ["LIMIT", 1]]
1939
2043
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-16@example.com"], ["LIMIT", 1]]
1940
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-16@example.com"], ["LIMIT", 1]]
1941
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2044
+ SQL (0.3ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
1942
2045
   (0.1ms) RELEASE SAVEPOINT active_record_2
1943
- Started GET "/api/nodes" for 127.0.0.1 at 2016-11-16 22:29:57 +0000
1944
- Processing by PushType::Api::NodesController#index as JSON
1945
- 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 $2 [["id", "3fc03ddf-5a51-45bb-a371-5668500e5fe7"], ["LIMIT", 1]]
1946
- Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
1947
- PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1948
- Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
1949
- Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (3.9ms)
1950
- Completed 200 OK in 42ms (Views: 32.6ms | ActiveRecord: 0.5ms)
1951
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1952
-  (0.1ms) ROLLBACK
1953
-  (0.0ms) BEGIN
1954
- --------------------------------------------------------------------------------------
1955
- PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
1956
- --------------------------------------------------------------------------------------
1957
-  (0.0ms) SAVEPOINT active_record_1
1958
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1959
-  (0.0ms) SAVEPOINT active_record_1
1960
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1961
-  (0.1ms) ROLLBACK
1962
-  (0.0ms) BEGIN
1963
- -------------------------------------------------------------
1964
- PushType::AuthenticatableTest::trackable: test_0001_anonymous
1965
- -------------------------------------------------------------
1966
-  (0.0ms) SAVEPOINT active_record_1
1967
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1968
-  (0.1ms) SAVEPOINT active_record_1
1969
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1970
-  (0.1ms) ROLLBACK
1971
-  (0.1ms) BEGIN
1972
- ------------------------------------------------------------------------------------------
1973
- PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
1974
- ------------------------------------------------------------------------------------------
1975
-  (0.0ms) SAVEPOINT active_record_1
1976
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1977
-  (0.0ms) SAVEPOINT active_record_1
1978
2046
   (0.1ms) SAVEPOINT active_record_2
2047
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-17@example.com"], ["LIMIT", 1]]
1979
2048
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-17@example.com"], ["LIMIT", 1]]
1980
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-17@example.com"], ["LIMIT", 1]]
1981
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
1982
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1983
- Processing by PushType::Admin::ProfilesController#update as HTML
1984
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
1985
- 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 $2 [["id", "cf8cf4ce-cb4d-47e1-b508-4610e6e8e00d"], ["LIMIT", 1]]
1986
-  (0.1ms) SAVEPOINT active_record_2
1987
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-17@example.com"], ["id", "cf8cf4ce-cb4d-47e1-b508-4610e6e8e00d"], ["LIMIT", 1]]
1988
- 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", 2016-11-16 22:29:57 UTC], ["id", "cf8cf4ce-cb4d-47e1-b508-4610e6e8e00d"]]
1989
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1990
- Redirected to http://test.host/admin/profile/edit
1991
- Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
1992
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "cf8cf4ce-cb4d-47e1-b508-4610e6e8e00d"], ["LIMIT", 1]]
1993
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1994
-  (0.1ms) ROLLBACK
1995
-  (0.1ms) BEGIN
1996
- ------------------------------------------------------------------------------------------
1997
- PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
1998
- ------------------------------------------------------------------------------------------
1999
-  (0.1ms) SAVEPOINT active_record_1
2000
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2001
-  (0.0ms) SAVEPOINT active_record_1
2002
-  (0.1ms) SAVEPOINT active_record_2
2003
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-18@example.com"], ["LIMIT", 1]]
2004
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-18@example.com"], ["LIMIT", 1]]
2005
- SQL (0.5ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2006
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2007
- Processing by PushType::Admin::ProfilesController#update as HTML
2008
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2009
- 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 $2 [["id", "04bf6990-3b29-44cf-a1d7-20ec01437077"], ["LIMIT", 1]]
2010
-  (0.1ms) SAVEPOINT active_record_2
2011
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-18@example.com"], ["id", "04bf6990-3b29-44cf-a1d7-20ec01437077"], ["LIMIT", 1]]
2012
- 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", 2016-11-16 22:29:57 UTC], ["id", "04bf6990-3b29-44cf-a1d7-20ec01437077"]]
2013
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2014
- Redirected to http://test.host/admin/profile/edit
2015
- Completed 302 Found in 6ms (ActiveRecord: 0.9ms)
2016
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2017
-  (0.1ms) ROLLBACK
2018
-  (0.1ms) BEGIN
2019
- ------------------------------------------------------------------------------------------
2020
- PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
2021
- ------------------------------------------------------------------------------------------
2022
-  (0.0ms) SAVEPOINT active_record_1
2023
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2024
-  (0.1ms) SAVEPOINT active_record_1
2025
-  (0.1ms) SAVEPOINT active_record_2
2026
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-19@example.com"], ["LIMIT", 1]]
2027
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-19@example.com"], ["LIMIT", 1]]
2028
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2029
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2030
- Processing by PushType::Admin::ProfilesController#update as HTML
2031
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2032
- 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 $2 [["id", "0e671fe1-8090-452d-a47a-de3ae1f5193a"], ["LIMIT", 1]]
2033
-  (0.1ms) SAVEPOINT active_record_2
2034
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-19@example.com"], ["id", "0e671fe1-8090-452d-a47a-de3ae1f5193a"], ["LIMIT", 1]]
2035
- 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", 2016-11-16 22:29:57 UTC], ["id", "0e671fe1-8090-452d-a47a-de3ae1f5193a"]]
2036
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2037
- Redirected to http://test.host/admin/profile/edit
2038
- Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
2039
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2040
-  (0.1ms) ROLLBACK
2041
-  (0.0ms) BEGIN
2042
- ----------------------------------------------------------------
2043
- PushType::AuthenticatableTest::rememberable: test_0001_anonymous
2044
- ----------------------------------------------------------------
2045
-  (0.0ms) SAVEPOINT active_record_1
2046
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2047
-  (0.0ms) SAVEPOINT active_record_1
2048
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2049
-  (0.1ms) ROLLBACK
2050
-  (0.0ms) BEGIN
2051
- --------------------------------------------------------
2052
- PushType::AuthenticationMethodsTest: test_0002_anonymous
2053
- --------------------------------------------------------
2054
-  (0.0ms) SAVEPOINT active_record_1
2055
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2056
-  (0.1ms) SAVEPOINT active_record_1
2057
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2058
-  (0.1ms) ROLLBACK
2059
-  (0.1ms) BEGIN
2060
- --------------------------------------------------------
2061
- PushType::AuthenticationMethodsTest: test_0001_anonymous
2062
- --------------------------------------------------------
2063
-  (0.1ms) SAVEPOINT active_record_1
2064
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2065
-  (0.0ms) SAVEPOINT active_record_1
2066
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2067
-  (0.0ms) ROLLBACK
2068
-  (0.1ms) BEGIN
2069
- ------------------------------------------------------------------------------------------------------
2070
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
2071
- ------------------------------------------------------------------------------------------------------
2072
-  (0.1ms) SAVEPOINT active_record_1
2073
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2074
-  (0.0ms) SAVEPOINT active_record_1
2075
- Processing by PushType::ConfirmationsController#show as HTML
2076
- Parameters: {"confirmation_token"=>"invalid"}
2077
- 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 $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2078
- 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 $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2079
- 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 $2 [["confirmation_token", "561b066fe811f6c3537de4c5e4d21384bd937bf1ffc6fdbf2ea5736bff880ee0"], ["LIMIT", 1]]
2080
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
2081
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.0ms)
2082
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (6.4ms)
2083
- Completed 200 OK in 191ms (Views: 16.7ms | ActiveRecord: 0.5ms)
2084
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2085
-  (0.1ms) ROLLBACK
2086
-  (0.1ms) BEGIN
2087
- ------------------------------------------------------------------------------------------------------
2088
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
2089
- ------------------------------------------------------------------------------------------------------
2090
-  (0.1ms) SAVEPOINT active_record_1
2091
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2092
-  (0.0ms) SAVEPOINT active_record_1
2093
- Processing by PushType::ConfirmationsController#show as HTML
2094
- Parameters: {"confirmation_token"=>"invalid"}
2095
- 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 $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2096
- 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 $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2097
- 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 $2 [["confirmation_token", "561b066fe811f6c3537de4c5e4d21384bd937bf1ffc6fdbf2ea5736bff880ee0"], ["LIMIT", 1]]
2098
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
2099
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2100
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.4ms)
2101
- Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.3ms)
2102
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2103
-  (0.1ms) ROLLBACK
2104
-  (0.1ms) BEGIN
2105
- -----------------------------------------------------------------------
2106
- PushType::Admin::ProfilesControllerTest::GET #edit: test_0002_anonymous
2107
- -----------------------------------------------------------------------
2108
-  (0.1ms) SAVEPOINT active_record_1
2109
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2110
-  (0.0ms) SAVEPOINT active_record_1
2111
-  (0.1ms) SAVEPOINT active_record_2
2112
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-20@example.com"], ["LIMIT", 1]]
2113
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-20@example.com"], ["LIMIT", 1]]
2114
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2115
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2116
- Processing by PushType::Admin::ProfilesController#edit as HTML
2117
- 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 $2 [["id", "4e10ac0b-66b6-4b45-900e-1a1ec5831452"], ["LIMIT", 1]]
2118
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
2119
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (6.5ms)
2120
- Completed 200 OK in 24ms (Views: 18.5ms | ActiveRecord: 0.2ms)
2121
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
2122
-  (0.1ms) ROLLBACK
2123
-  (0.1ms) BEGIN
2124
- -----------------------------------------------------------------------
2125
- PushType::Admin::ProfilesControllerTest::GET #edit: test_0001_anonymous
2126
- -----------------------------------------------------------------------
2127
-  (0.1ms) SAVEPOINT active_record_1
2128
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2129
-  (0.1ms) SAVEPOINT active_record_1
2130
-  (0.1ms) SAVEPOINT active_record_2
2131
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2132
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2133
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-16 22:29:57 UTC], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2134
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2135
- Processing by PushType::Admin::ProfilesController#edit as HTML
2136
- 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 $2 [["id", "7b187707-1c9e-4b72-8f68-ac1152f19d92"], ["LIMIT", 1]]
2137
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
2138
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (1.9ms)
2139
- Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.1ms)
2140
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2141
-  (0.1ms) ROLLBACK
2142
-  (0.1ms) BEGIN
2143
- ----------------------------------------------------------------------------
2144
- AuthenticatedApiControllerTest::unauthenticated request: test_0001_anonymous
2145
- ----------------------------------------------------------------------------
2146
-  (0.1ms) SAVEPOINT active_record_1
2147
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2148
-  (0.0ms) SAVEPOINT active_record_1
2149
- Started GET "/api/nodes" for 127.0.0.1 at 2016-11-16 22:29:57 +0000
2150
- Processing by PushType::Api::NodesController#index as JSON
2151
- Filter chain halted as :authenticate_user! rendered or redirected
2152
- Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
2153
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2154
-  (0.1ms) ROLLBACK
2155
-  (0.1ms) BEGIN
2156
- ------------------------------------------------------------------------------------------
2157
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
2158
- ------------------------------------------------------------------------------------------
2159
-  (0.1ms) SAVEPOINT active_record_1
2160
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2161
-  (0.0ms) SAVEPOINT active_record_1
2162
-  (0.1ms) SAVEPOINT active_record_2
2163
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2164
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2165
- 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-22@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "_SZVaVemG6WZ7QDshM_C"], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2049
+ 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-17@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "_XjubFxAgz_cWiJ5PeQN"], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
2166
2050
   (0.1ms) RELEASE SAVEPOINT active_record_2
2167
2051
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2168
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.9ms)
2169
- Devise::Mailer#confirmation_instructions: processed outbound mail in 41.0ms
2170
- Sent mail to joe-22@example.com (4.2ms)
2171
- Date: Wed, 16 Nov 2016 22:29:57 +0000
2052
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2053
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
2054
+ Sent mail to joe-17@example.com (4.4ms)
2055
+ Date: Thu, 17 Nov 2016 15:46:37 +0000
2172
2056
  From: pushtype@example.com
2173
2057
  Reply-To: pushtype@example.com
2174
- To: joe-22@example.com
2175
- Message-ID: <582cdde5975d8_32783fe28d43f9b8877e6@Aarons-iMac.local.mail>
2058
+ To: joe-17@example.com
2059
+ Message-ID: <582dd0ddd80ea_d4703fd50d43f9c8281a7@Aarons-iMac.local.mail>
2176
2060
  Subject: [PushType] Confirm your account
2177
2061
  Mime-Version: 1.0
2178
2062
  Content-Type: multipart/alternative;
2179
- boundary="--==_mimepart_582cdde596fdf_32783fe28d43f9b887668";
2063
+ boundary="--==_mimepart_582dd0ddd7b5f_d4703fd50d43f9c8280d2";
2180
2064
  charset=UTF-8
2181
2065
  Content-Transfer-Encoding: 7bit
2182
2066
 
2183
2067
 
2184
- ----==_mimepart_582cdde596fdf_32783fe28d43f9b887668
2068
+ ----==_mimepart_582dd0ddd7b5f_d4703fd50d43f9c8280d2
2185
2069
  Content-Type: text/plain;
2186
2070
  charset=UTF-8
2187
2071
  Content-Transfer-Encoding: 7bit
@@ -2197,11 +2081,11 @@ To get started, confirm your account and set your own password by
2197
2081
  clicking the link below:
2198
2082
 
2199
2083
  Confirm my account
2200
- ( http://localhost:3000/admin/users/confirmation.d2c842ad-19ee-494c-bfcb-bb8af612a3fd?confirmation_token=_SZVaVemG6WZ7QDshM_C )
2084
+ ( http://localhost:3000/admin/confirmation.d2367a54-f1e7-4a4f-be01-5a40647afe53?confirmation_token=_XjubFxAgz_cWiJ5PeQN )
2201
2085
 
2202
2086
 
2203
2087
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2204
- ----==_mimepart_582cdde596fdf_32783fe28d43f9b887668
2088
+ ----==_mimepart_582dd0ddd7b5f_d4703fd50d43f9c8280d2
2205
2089
  Content-Type: text/html;
2206
2090
  charset=UTF-8
2207
2091
  Content-Transfer-Encoding: 7bit
@@ -2247,7 +2131,7 @@ body {
2247
2131
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
2248
2132
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2249
2133
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2250
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.d2c842ad-19ee-494c-bfcb-bb8af612a3fd?confirmation_token=_SZVaVemG6WZ7QDshM_C" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2134
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.d2367a54-f1e7-4a4f-be01-5a40647afe53?confirmation_token=_XjubFxAgz_cWiJ5PeQN" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2251
2135
  </td>
2252
2136
  </tr>
2253
2137
  </table>
@@ -2292,48 +2176,32 @@ body {
2292
2176
  </body>
2293
2177
  </html>
2294
2178
 
2295
- ----==_mimepart_582cdde596fdf_32783fe28d43f9b887668--
2179
+ ----==_mimepart_582dd0ddd7b5f_d4703fd50d43f9c8280d2--
2296
2180
 
2297
- Processing by PushType::ConfirmationsController#update as HTML
2298
- Parameters: {"user"=>{"confirmation_token"=>"_SZVaVemG6WZ7QDshM_C", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2299
- 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 $2 [["confirmation_token", "_SZVaVemG6WZ7QDshM_C"], ["LIMIT", 1]]
2300
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-22@example.com"], ["id", "d2c842ad-19ee-494c-bfcb-bb8af612a3fd"], ["LIMIT", 1]]
2301
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2302
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.2ms)
2303
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (7.7ms)
2304
- Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.4ms)
2305
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2306
-  (0.1ms) ROLLBACK
2307
-  (0.1ms) BEGIN
2308
- ------------------------------------------------------------------------------------------
2309
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
2310
- ------------------------------------------------------------------------------------------
2311
-  (0.0ms) SAVEPOINT active_record_1
2312
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2313
-  (0.0ms) SAVEPOINT active_record_1
2181
+ Processing by PushType::Admin::UsersController#invite as HTML
2182
+ Parameters: {"id"=>"d2367a54-f1e7-4a4f-be01-5a40647afe53"}
2183
+ 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 $2 [["id", "61e1164a-9d47-4b49-921f-0fbe9ea967e0"], ["LIMIT", 1]]
2184
+ 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 $2 [["id", "d2367a54-f1e7-4a4f-be01-5a40647afe53"], ["LIMIT", 1]]
2314
2185
   (0.1ms) SAVEPOINT active_record_2
2315
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-23@example.com"], ["LIMIT", 1]]
2316
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-23@example.com"], ["LIMIT", 1]]
2317
- 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-23@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "W75Fr-PVwxR3SqCjh_aq"], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2318
2186
   (0.1ms) RELEASE SAVEPOINT active_record_2
2319
2187
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2320
2188
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2321
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.6ms
2322
- Sent mail to joe-23@example.com (3.8ms)
2323
- Date: Wed, 16 Nov 2016 22:29:57 +0000
2189
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
2190
+ Sent mail to joe-17@example.com (4.5ms)
2191
+ Date: Thu, 17 Nov 2016 15:46:37 +0000
2324
2192
  From: pushtype@example.com
2325
2193
  Reply-To: pushtype@example.com
2326
- To: joe-23@example.com
2327
- Message-ID: <582cdde5a7a96_32783fe28d43f9b8880e@Aarons-iMac.local.mail>
2194
+ To: joe-17@example.com
2195
+ Message-ID: <582dd0dde5991_d4703fd50d43f9c828427@Aarons-iMac.local.mail>
2328
2196
  Subject: [PushType] Confirm your account
2329
2197
  Mime-Version: 1.0
2330
2198
  Content-Type: multipart/alternative;
2331
- boundary="--==_mimepart_582cdde5a7577_32783fe28d43f9b887932";
2199
+ boundary="--==_mimepart_582dd0dde53a4_d4703fd50d43f9c8283e2";
2332
2200
  charset=UTF-8
2333
2201
  Content-Transfer-Encoding: 7bit
2334
2202
 
2335
2203
 
2336
- ----==_mimepart_582cdde5a7577_32783fe28d43f9b887932
2204
+ ----==_mimepart_582dd0dde53a4_d4703fd50d43f9c8283e2
2337
2205
  Content-Type: text/plain;
2338
2206
  charset=UTF-8
2339
2207
  Content-Transfer-Encoding: 7bit
@@ -2349,11 +2217,11 @@ To get started, confirm your account and set your own password by
2349
2217
  clicking the link below:
2350
2218
 
2351
2219
  Confirm my account
2352
- ( http://localhost:3000/admin/users/confirmation.d4fe1bea-1d5a-4add-9f57-bca9bdcc8201?confirmation_token=W75Fr-PVwxR3SqCjh_aq )
2220
+ ( http://localhost:3000/admin/confirmation.d2367a54-f1e7-4a4f-be01-5a40647afe53?confirmation_token=_XjubFxAgz_cWiJ5PeQN )
2353
2221
 
2354
2222
 
2355
2223
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2356
- ----==_mimepart_582cdde5a7577_32783fe28d43f9b887932
2224
+ ----==_mimepart_582dd0dde53a4_d4703fd50d43f9c8283e2
2357
2225
  Content-Type: text/html;
2358
2226
  charset=UTF-8
2359
2227
  Content-Transfer-Encoding: 7bit
@@ -2399,7 +2267,7 @@ body {
2399
2267
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
2400
2268
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2401
2269
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2402
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.d4fe1bea-1d5a-4add-9f57-bca9bdcc8201?confirmation_token=W75Fr-PVwxR3SqCjh_aq" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2270
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.d2367a54-f1e7-4a4f-be01-5a40647afe53?confirmation_token=_XjubFxAgz_cWiJ5PeQN" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2403
2271
  </td>
2404
2272
  </tr>
2405
2273
  </table>
@@ -2444,48 +2312,217 @@ body {
2444
2312
  </body>
2445
2313
  </html>
2446
2314
 
2447
- ----==_mimepart_582cdde5a7577_32783fe28d43f9b887932--
2315
+ ----==_mimepart_582dd0dde53a4_d4703fd50d43f9c8283e2--
2448
2316
 
2449
- Processing by PushType::ConfirmationsController#update as HTML
2450
- Parameters: {"user"=>{"confirmation_token"=>"W75Fr-PVwxR3SqCjh_aq", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2451
- 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 $2 [["confirmation_token", "W75Fr-PVwxR3SqCjh_aq"], ["LIMIT", 1]]
2452
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-23@example.com"], ["id", "d4fe1bea-1d5a-4add-9f57-bca9bdcc8201"], ["LIMIT", 1]]
2453
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2454
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2455
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
2456
- Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.4ms)
2317
+ Redirected to http://test.host/push_type/users
2318
+ Completed 302 Found in 55ms (ActiveRecord: 0.5ms)
2457
2319
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2458
2320
   (0.1ms) ROLLBACK
2459
2321
   (0.1ms) BEGIN
2460
2322
  ------------------------------------------------------------------------------------------
2461
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
2323
+ PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
2324
+ ------------------------------------------------------------------------------------------
2325
+  (0.1ms) SAVEPOINT active_record_1
2326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2327
+  (0.1ms) SAVEPOINT active_record_1
2328
+  (0.1ms) SAVEPOINT active_record_2
2329
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-18@example.com"], ["LIMIT", 1]]
2330
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-18@example.com"], ["LIMIT", 1]]
2331
+ SQL (0.4ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
2332
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2333
+ Processing by PushType::Admin::ProfilesController#update as HTML
2334
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
2335
+ 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 $2 [["id", "c41dde78-bb1a-4d1d-a757-fa3246f8ccfe"], ["LIMIT", 1]]
2336
+  (0.1ms) SAVEPOINT active_record_2
2337
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-18@example.com"], ["id", "c41dde78-bb1a-4d1d-a757-fa3246f8ccfe"], ["LIMIT", 1]]
2338
+ 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", 2016-11-17 15:46:37 UTC], ["id", "c41dde78-bb1a-4d1d-a757-fa3246f8ccfe"]]
2339
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2340
+ Redirected to http://test.host/admin/profile/edit
2341
+ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
2342
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "c41dde78-bb1a-4d1d-a757-fa3246f8ccfe"], ["LIMIT", 1]]
2343
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2344
+  (0.1ms) ROLLBACK
2345
+  (0.1ms) BEGIN
2346
+ ------------------------------------------------------------------------------------------
2347
+ PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
2348
+ ------------------------------------------------------------------------------------------
2349
+  (0.1ms) SAVEPOINT active_record_1
2350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2351
+  (0.0ms) SAVEPOINT active_record_1
2352
+  (0.1ms) SAVEPOINT active_record_2
2353
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-19@example.com"], ["LIMIT", 1]]
2354
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-19@example.com"], ["LIMIT", 1]]
2355
+ SQL (0.3ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
2356
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2357
+ Processing by PushType::Admin::ProfilesController#update as HTML
2358
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
2359
+ 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 $2 [["id", "c20c8454-7994-43ce-81bb-9f17444634c3"], ["LIMIT", 1]]
2360
+  (0.1ms) SAVEPOINT active_record_2
2361
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-19@example.com"], ["id", "c20c8454-7994-43ce-81bb-9f17444634c3"], ["LIMIT", 1]]
2362
+ SQL (0.3ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", 2016-11-17 15:46:37 UTC], ["id", "c20c8454-7994-43ce-81bb-9f17444634c3"]]
2363
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2364
+ Redirected to http://test.host/admin/profile/edit
2365
+ Completed 302 Found in 6ms (ActiveRecord: 0.9ms)
2366
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2367
+  (0.1ms) ROLLBACK
2368
+  (0.1ms) BEGIN
2462
2369
  ------------------------------------------------------------------------------------------
2370
+ PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
2371
+ ------------------------------------------------------------------------------------------
2372
+  (0.0ms) SAVEPOINT active_record_1
2373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2463
2374
   (0.0ms) SAVEPOINT active_record_1
2375
+  (0.1ms) SAVEPOINT active_record_2
2376
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-20@example.com"], ["LIMIT", 1]]
2377
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-20@example.com"], ["LIMIT", 1]]
2378
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
2379
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2380
+ Processing by PushType::Admin::ProfilesController#update as HTML
2381
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
2382
+ 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 $2 [["id", "7c1f49af-8dc5-4170-9aca-34ae45062d1c"], ["LIMIT", 1]]
2383
+  (0.1ms) SAVEPOINT active_record_2
2384
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-20@example.com"], ["id", "7c1f49af-8dc5-4170-9aca-34ae45062d1c"], ["LIMIT", 1]]
2385
+ 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", 2016-11-17 15:46:37 UTC], ["id", "7c1f49af-8dc5-4170-9aca-34ae45062d1c"]]
2386
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2387
+ Redirected to http://test.host/admin/profile/edit
2388
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
2389
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2390
+  (0.1ms) ROLLBACK
2391
+  (0.1ms) BEGIN
2392
+ --------------------------------------------------------------------------------------------
2393
+ PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
2394
+ --------------------------------------------------------------------------------------------
2395
+  (0.1ms) SAVEPOINT active_record_1
2464
2396
   (0.0ms) RELEASE SAVEPOINT active_record_1
2397
+  (0.0ms) SAVEPOINT active_record_1
2398
+  (0.1ms) SAVEPOINT active_record_2
2399
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2400
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2401
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["created_at", 2016-11-17 15:46:37 UTC], ["updated_at", 2016-11-17 15:46:37 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:37 UTC], ["confirmation_sent_at", 2016-11-17 15:46:37 UTC]]
2402
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2403
+ Processing by PushType::Admin::ProfilesController#update as HTML
2404
+ Parameters: {"user"=>{"name"=>""}}
2405
+ 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 $2 [["id", "4af2a0cb-8ff7-4ab9-8864-5cff9ccf1504"], ["LIMIT", 1]]
2406
+  (0.1ms) SAVEPOINT active_record_2
2407
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-21@example.com"], ["id", "4af2a0cb-8ff7-4ab9-8864-5cff9ccf1504"], ["LIMIT", 1]]
2408
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
2409
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
2410
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (7.0ms)
2411
+ Completed 200 OK in 28ms (Views: 24.3ms | ActiveRecord: 0.5ms)
2412
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
2413
+  (0.1ms) ROLLBACK
2414
+  (0.1ms) BEGIN
2415
+ --------------------------------------------------------------------------------------------
2416
+ PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
2417
+ --------------------------------------------------------------------------------------------
2418
+  (0.1ms) SAVEPOINT active_record_1
2419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2420
+  (0.0ms) SAVEPOINT active_record_1
2421
+  (0.1ms) SAVEPOINT active_record_2
2422
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2423
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2424
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["created_at", 2016-11-17 15:46:38 UTC], ["updated_at", 2016-11-17 15:46:38 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:38 UTC], ["confirmation_sent_at", 2016-11-17 15:46:38 UTC]]
2425
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2426
+ Processing by PushType::Admin::ProfilesController#update as HTML
2427
+ Parameters: {"user"=>{"name"=>""}}
2428
+ 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 $2 [["id", "4f66ed90-dd80-478e-a919-981a41124627"], ["LIMIT", 1]]
2429
+  (0.1ms) SAVEPOINT active_record_2
2430
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-22@example.com"], ["id", "4f66ed90-dd80-478e-a919-981a41124627"], ["LIMIT", 1]]
2431
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
2432
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
2433
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (2.5ms)
2434
+ Completed 200 OK in 14ms (Views: 9.7ms | ActiveRecord: 0.5ms)
2435
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2436
+  (0.1ms) ROLLBACK
2437
+  (0.1ms) BEGIN
2438
+ -----------------------------------------------------------------------------------
2439
+ AuthenticatedApiControllerTest::authenticated with token param: test_0001_anonymous
2440
+ -----------------------------------------------------------------------------------
2441
+  (0.0ms) SAVEPOINT active_record_1
2442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2465
2443
   (0.1ms) SAVEPOINT active_record_1
2466
2444
   (0.1ms) SAVEPOINT active_record_2
2467
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-24@example.com"], ["LIMIT", 1]]
2468
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-24@example.com"], ["LIMIT", 1]]
2469
- 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-24@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "KfkxdWyzH1CocTUtsypS"], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2445
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-23@example.com"], ["LIMIT", 1]]
2446
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-23@example.com"], ["LIMIT", 1]]
2447
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-23@example.com"], ["created_at", 2016-11-17 15:46:38 UTC], ["updated_at", 2016-11-17 15:46:38 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-11-17 15:46:38 UTC], ["confirmation_sent_at", 2016-11-17 15:46:38 UTC]]
2448
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2449
+ Started GET "/api/nodes?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzk0ODM5OTgsInN1YiI6Ijc0ZWJiMThmLTc0Y2ItNGQ0OC05MTUxLTEyMTBkNTAxZGY5NyJ9.NX5UVN_FvIzDgPWPSUxljiNyVCB8V0nnwnRKxmT5cuQ" for 127.0.0.1 at 2016-11-17 15:46:38 +0000
2450
+ Processing by PushType::Api::NodesController#index as JSON
2451
+ Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzk0ODM5OTgsInN1YiI6Ijc0ZWJiMThmLTc0Y2ItNGQ0OC05MTUxLTEyMTBkNTAxZGY5NyJ9.NX5UVN_FvIzDgPWPSUxljiNyVCB8V0nnwnRKxmT5cuQ"}
2452
+ 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 $2 [["id", "74ebb18f-74cb-4d48-9151-1210d501df97"], ["LIMIT", 1]]
2453
+ Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
2454
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
2455
+ Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
2456
+ Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (4.1ms)
2457
+ Completed 200 OK in 44ms (Views: 33.7ms | ActiveRecord: 0.6ms)
2458
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2459
+  (0.1ms) ROLLBACK
2460
+  (0.0ms) BEGIN
2461
+ -----------------------------------------------------------
2462
+ PushType::ApiAuthenticationMethodsTest: test_0001_anonymous
2463
+ -----------------------------------------------------------
2464
+  (0.0ms) SAVEPOINT active_record_1
2465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2466
+  (0.0ms) SAVEPOINT active_record_1
2467
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2468
+  (0.0ms) ROLLBACK
2469
+  (0.1ms) BEGIN
2470
+ -----------------------------------------------------------
2471
+ PushType::ApiAuthenticationMethodsTest: test_0003_anonymous
2472
+ -----------------------------------------------------------
2473
+  (0.0ms) SAVEPOINT active_record_1
2474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2475
+  (0.1ms) SAVEPOINT active_record_1
2476
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2477
+  (0.0ms) ROLLBACK
2478
+  (0.1ms) BEGIN
2479
+ -----------------------------------------------------------
2480
+ PushType::ApiAuthenticationMethodsTest: test_0002_anonymous
2481
+ -----------------------------------------------------------
2482
+  (0.1ms) SAVEPOINT active_record_1
2483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2484
+  (0.1ms) SAVEPOINT active_record_1
2485
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2486
+  (0.1ms) ROLLBACK
2487
+  (0.1ms) BEGIN
2488
+ -----------------------------------------------------------
2489
+ PushType::ApiAuthenticationMethodsTest: test_0004_anonymous
2490
+ -----------------------------------------------------------
2491
+  (0.1ms) SAVEPOINT active_record_1
2492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2493
+  (0.0ms) SAVEPOINT active_record_1
2494
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2495
+  (0.1ms) ROLLBACK
2496
+  (0.1ms) BEGIN
2497
+ ----------------------------------------------------------------------------------------
2498
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
2499
+ ----------------------------------------------------------------------------------------
2500
+  (0.2ms) SAVEPOINT active_record_1
2501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2502
+  (0.1ms) SAVEPOINT active_record_1
2503
+  (0.1ms) SAVEPOINT active_record_2
2504
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-24@example.com"], ["LIMIT", 1]]
2505
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-24@example.com"], ["LIMIT", 1]]
2506
+ 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-24@example.com"], ["created_at", 2016-11-17 15:46:38 UTC], ["updated_at", 2016-11-17 15:46:38 UTC], ["confirmation_token", "ymcrARsd1bNd9k-frNfA"], ["confirmation_sent_at", 2016-11-17 15:46:38 UTC]]
2470
2507
   (0.1ms) RELEASE SAVEPOINT active_record_2
2471
2508
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2472
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
2473
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.1ms
2474
- Sent mail to joe-24@example.com (3.6ms)
2475
- Date: Wed, 16 Nov 2016 22:29:57 +0000
2509
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.8ms)
2510
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 40.6ms
2511
+ Sent mail to joe-24@example.com (3.5ms)
2512
+ Date: Thu, 17 Nov 2016 15:46:38 +0000
2476
2513
  From: pushtype@example.com
2477
2514
  Reply-To: pushtype@example.com
2478
2515
  To: joe-24@example.com
2479
- Message-ID: <582cdde5b6aea_32783fe28d43f9b888353@Aarons-iMac.local.mail>
2516
+ Message-ID: <582dd0de2f141_d4703fd50d43f9c82875f@Aarons-iMac.local.mail>
2480
2517
  Subject: [PushType] Confirm your account
2481
2518
  Mime-Version: 1.0
2482
2519
  Content-Type: multipart/alternative;
2483
- boundary="--==_mimepart_582cdde5b66b1_32783fe28d43f9b88821b";
2520
+ boundary="--==_mimepart_582dd0de2ed35_d4703fd50d43f9c8286e1";
2484
2521
  charset=UTF-8
2485
2522
  Content-Transfer-Encoding: 7bit
2486
2523
 
2487
2524
 
2488
- ----==_mimepart_582cdde5b66b1_32783fe28d43f9b88821b
2525
+ ----==_mimepart_582dd0de2ed35_d4703fd50d43f9c8286e1
2489
2526
  Content-Type: text/plain;
2490
2527
  charset=UTF-8
2491
2528
  Content-Transfer-Encoding: 7bit
@@ -2501,11 +2538,11 @@ To get started, confirm your account and set your own password by
2501
2538
  clicking the link below:
2502
2539
 
2503
2540
  Confirm my account
2504
- ( http://localhost:3000/admin/users/confirmation.214b8691-1583-470e-8503-abeb6589f446?confirmation_token=KfkxdWyzH1CocTUtsypS )
2541
+ ( http://localhost:3000/admin/confirmation.8abe587e-d9f4-49b0-95b5-ae0cfc02b30e?confirmation_token=ymcrARsd1bNd9k-frNfA )
2505
2542
 
2506
2543
 
2507
2544
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2508
- ----==_mimepart_582cdde5b66b1_32783fe28d43f9b88821b
2545
+ ----==_mimepart_582dd0de2ed35_d4703fd50d43f9c8286e1
2509
2546
  Content-Type: text/html;
2510
2547
  charset=UTF-8
2511
2548
  Content-Transfer-Encoding: 7bit
@@ -2551,7 +2588,7 @@ body {
2551
2588
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
2552
2589
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2553
2590
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2554
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.214b8691-1583-470e-8503-abeb6589f446?confirmation_token=KfkxdWyzH1CocTUtsypS" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2591
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.8abe587e-d9f4-49b0-95b5-ae0cfc02b30e?confirmation_token=ymcrARsd1bNd9k-frNfA" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2555
2592
  </td>
2556
2593
  </tr>
2557
2594
  </table>
@@ -2596,84 +2633,53 @@ body {
2596
2633
  </body>
2597
2634
  </html>
2598
2635
 
2599
- ----==_mimepart_582cdde5b66b1_32783fe28d43f9b88821b--
2636
+ ----==_mimepart_582dd0de2ed35_d4703fd50d43f9c8286e1--
2600
2637
 
2601
2638
  Processing by PushType::ConfirmationsController#update as HTML
2602
- Parameters: {"user"=>{"confirmation_token"=>"KfkxdWyzH1CocTUtsypS", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2603
- 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 $2 [["confirmation_token", "KfkxdWyzH1CocTUtsypS"], ["LIMIT", 1]]
2604
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-24@example.com"], ["id", "214b8691-1583-470e-8503-abeb6589f446"], ["LIMIT", 1]]
2605
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2606
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2607
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (2.1ms)
2608
- Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.5ms)
2639
+ Parameters: {"user"=>{"confirmation_token"=>"ymcrARsd1bNd9k-frNfA", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2640
+ 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 $2 [["confirmation_token", "ymcrARsd1bNd9k-frNfA"], ["LIMIT", 1]]
2641
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-24@example.com"], ["id", "8abe587e-d9f4-49b0-95b5-ae0cfc02b30e"], ["LIMIT", 1]]
2642
+  (0.1ms) SAVEPOINT active_record_2
2643
+ SQL (0.3ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$xLssArG2VfBz1A6pWz90LeaCLTnAMLq/OveoM.KEWL.HDJr23Iqj6"], ["confirmed_at", 2016-11-17 15:46:38 UTC], ["updated_at", 2016-11-17 15:46:38 UTC], ["id", "8abe587e-d9f4-49b0-95b5-ae0cfc02b30e"]]
2644
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2645
+  (0.1ms) SAVEPOINT active_record_2
2646
+ SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2016-11-17 15:46:38 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-11-17 15:46:38 UTC], ["last_sign_in_at", 2016-11-17 15:46:38 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "8abe587e-d9f4-49b0-95b5-ae0cfc02b30e"]]
2647
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2648
+ Redirected to http://test.host/admin/
2649
+ Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
2650
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "8abe587e-d9f4-49b0-95b5-ae0cfc02b30e"], ["LIMIT", 1]]
2609
2651
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2610
2652
   (0.1ms) ROLLBACK
2611
2653
   (0.0ms) BEGIN
2612
- ---------------------------------------------------------------------------
2613
- PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
2614
- ---------------------------------------------------------------------------
2615
-  (0.0ms) SAVEPOINT active_record_1
2616
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2617
-  (0.0ms) SAVEPOINT active_record_1
2618
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2619
-  (0.1ms) ROLLBACK
2620
-  (0.1ms) BEGIN
2621
- ---------------------------------------------------------------------------
2622
- PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
2623
- ---------------------------------------------------------------------------
2624
-  (0.0ms) SAVEPOINT active_record_1
2625
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2626
-  (0.0ms) SAVEPOINT active_record_1
2627
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2628
-  (0.1ms) ROLLBACK
2629
-  (0.1ms) BEGIN
2630
- ---------------------------------------------------------------
2631
- PushType::AuthenticatableTest::validatable: test_0001_anonymous
2632
- ---------------------------------------------------------------
2633
-  (0.1ms) SAVEPOINT active_record_1
2634
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2635
-  (0.0ms) SAVEPOINT active_record_1
2636
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2637
-  (0.1ms) ROLLBACK
2638
-  (0.1ms) BEGIN
2639
- ---------------------------------------------------------------
2640
- PushType::AuthenticatableTest::validatable: test_0002_anonymous
2641
- ---------------------------------------------------------------
2654
+ ----------------------------------------------------------------------------------------
2655
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
2656
+ ----------------------------------------------------------------------------------------
2642
2657
   (0.0ms) SAVEPOINT active_record_1
2643
2658
   (0.0ms) RELEASE SAVEPOINT active_record_1
2644
2659
   (0.0ms) SAVEPOINT active_record_1
2645
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2646
-  (0.1ms) ROLLBACK
2647
-  (0.1ms) BEGIN
2648
- --------------------------------------------------------------------------------------------------------------
2649
- PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
2650
- --------------------------------------------------------------------------------------------------------------
2651
-  (0.1ms) SAVEPOINT active_record_1
2652
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2653
-  (0.0ms) SAVEPOINT active_record_1
2654
2660
   (0.1ms) SAVEPOINT active_record_2
2655
2661
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-25@example.com"], ["LIMIT", 1]]
2656
2662
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-25@example.com"], ["LIMIT", 1]]
2657
- 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-25@example.com"], ["created_at", 2016-11-16 22:29:57 UTC], ["updated_at", 2016-11-16 22:29:57 UTC], ["confirmation_token", "xMr5yQjKgzEbWdPXPYjn"], ["confirmation_sent_at", 2016-11-16 22:29:57 UTC]]
2663
+ 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-25@example.com"], ["created_at", 2016-11-17 15:46:38 UTC], ["updated_at", 2016-11-17 15:46:38 UTC], ["confirmation_token", "FUGmmuoDZfi6XSpvyc87"], ["confirmation_sent_at", 2016-11-17 15:46:38 UTC]]
2658
2664
   (0.1ms) RELEASE SAVEPOINT active_record_2
2659
2665
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2660
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
2661
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.2ms
2662
- Sent mail to joe-25@example.com (3.6ms)
2663
- Date: Wed, 16 Nov 2016 22:29:57 +0000
2666
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2667
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
2668
+ Sent mail to joe-25@example.com (3.7ms)
2669
+ Date: Thu, 17 Nov 2016 15:46:38 +0000
2664
2670
  From: pushtype@example.com
2665
2671
  Reply-To: pushtype@example.com
2666
2672
  To: joe-25@example.com
2667
- Message-ID: <582cdde5c67e6_32783fe28d43f9b88863d@Aarons-iMac.local.mail>
2673
+ Message-ID: <582dd0de3c10c_d4703fd50d43f9c8290df@Aarons-iMac.local.mail>
2668
2674
  Subject: [PushType] Confirm your account
2669
2675
  Mime-Version: 1.0
2670
2676
  Content-Type: multipart/alternative;
2671
- boundary="--==_mimepart_582cdde5c6363_32783fe28d43f9b88857c";
2677
+ boundary="--==_mimepart_582dd0de3bbd3_d4703fd50d43f9c82893";
2672
2678
  charset=UTF-8
2673
2679
  Content-Transfer-Encoding: 7bit
2674
2680
 
2675
2681
 
2676
- ----==_mimepart_582cdde5c6363_32783fe28d43f9b88857c
2682
+ ----==_mimepart_582dd0de3bbd3_d4703fd50d43f9c82893
2677
2683
  Content-Type: text/plain;
2678
2684
  charset=UTF-8
2679
2685
  Content-Transfer-Encoding: 7bit
@@ -2689,11 +2695,11 @@ To get started, confirm your account and set your own password by
2689
2695
  clicking the link below:
2690
2696
 
2691
2697
  Confirm my account
2692
- ( http://localhost:3000/admin/users/confirmation.0846dc4d-7c77-43d3-a744-80171777c0fe?confirmation_token=xMr5yQjKgzEbWdPXPYjn )
2698
+ ( http://localhost:3000/admin/confirmation.6bb56aa1-361e-4852-a3fb-0bb783283098?confirmation_token=FUGmmuoDZfi6XSpvyc87 )
2693
2699
 
2694
2700
 
2695
2701
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2696
- ----==_mimepart_582cdde5c6363_32783fe28d43f9b88857c
2702
+ ----==_mimepart_582dd0de3bbd3_d4703fd50d43f9c82893
2697
2703
  Content-Type: text/html;
2698
2704
  charset=UTF-8
2699
2705
  Content-Transfer-Encoding: 7bit
@@ -2739,7 +2745,7 @@ body {
2739
2745
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
2740
2746
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2741
2747
  <td class="padding" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2742
- <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/users/confirmation.0846dc4d-7c77-43d3-a744-80171777c0fe?confirmation_token=xMr5yQjKgzEbWdPXPYjn" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2748
+ <p style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.6bb56aa1-361e-4852-a3fb-0bb783283098?confirmation_token=FUGmmuoDZfi6XSpvyc87" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none;">Confirm my account</a></p>
2743
2749
  </td>
2744
2750
  </tr>
2745
2751
  </table>
@@ -2784,25 +2790,19 @@ body {
2784
2790
  </body>
2785
2791
  </html>
2786
2792
 
2787
- ----==_mimepart_582cdde5c6363_32783fe28d43f9b88857c--
2793
+ ----==_mimepart_582dd0de3bbd3_d4703fd50d43f9c82893--
2788
2794
 
2789
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2790
-  (0.1ms) ROLLBACK
2791
-  (0.1ms) BEGIN
2792
- ----------------------------------------------------
2793
- PushType::InvitationMethodsTest: test_0001_anonymous
2794
- ----------------------------------------------------
2795
-  (0.1ms) SAVEPOINT active_record_1
2796
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2797
-  (0.0ms) SAVEPOINT active_record_1
2798
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2799
-  (0.1ms) ROLLBACK
2800
-  (0.1ms) BEGIN
2801
- ---------------------------------------------------------------
2802
- PushType::AuthenticatableTest::confirmable: test_0001_anonymous
2803
- ---------------------------------------------------------------
2804
-  (0.1ms) SAVEPOINT active_record_1
2805
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2806
-  (0.1ms) SAVEPOINT active_record_1
2795
+ Processing by PushType::ConfirmationsController#update as HTML
2796
+ Parameters: {"user"=>{"confirmation_token"=>"FUGmmuoDZfi6XSpvyc87", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2797
+ 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 $2 [["confirmation_token", "FUGmmuoDZfi6XSpvyc87"], ["LIMIT", 1]]
2798
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-25@example.com"], ["id", "6bb56aa1-361e-4852-a3fb-0bb783283098"], ["LIMIT", 1]]
2799
+  (0.1ms) SAVEPOINT active_record_2
2800
+ SQL (0.2ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$D5aifzGyk4sN2ZwKoUktpOsmb5bi7JMaZ8DZWqrrOEB.6xoWEzjNy"], ["confirmed_at", 2016-11-17 15:46:38 UTC], ["updated_at", 2016-11-17 15:46:38 UTC], ["id", "6bb56aa1-361e-4852-a3fb-0bb783283098"]]
2801
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2802
+  (0.1ms) SAVEPOINT active_record_2
2803
+ SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2016-11-17 15:46:38 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-11-17 15:46:38 UTC], ["last_sign_in_at", 2016-11-17 15:46:38 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "6bb56aa1-361e-4852-a3fb-0bb783283098"]]
2804
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2805
+ Redirected to http://test.host/admin/
2806
+ Completed 302 Found in 8ms (ActiveRecord: 1.2ms)
2807
2807
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2808
2808
   (0.1ms) ROLLBACK