push_type_auth 0.9.0.beta.2 → 0.9.0.beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/push_type/auth/engine.rb +24 -11
  3. data/test/dummy/config/initializers/push_type.rb +1 -1
  4. data/test/dummy/config/secrets.yml +2 -2
  5. data/test/dummy/db/migrate/{20160725104604_create_push_type_users.push_type.rb → 20160727140505_create_push_type_users.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20160725104605_create_push_type_nodes.push_type.rb → 20160727140506_create_push_type_nodes.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20160725104606_create_push_type_node_hierarchies.push_type.rb → 20160727140507_create_push_type_node_hierarchies.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20160725104607_create_push_type_assets.push_type.rb → 20160727140508_create_push_type_assets.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20160725104608_add_field_store_default_values.push_type.rb → 20160727140509_add_field_store_default_values.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20160725104609_drop_legacy_push_type_taxonomies.push_type.rb → 20160727140510_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  11. data/test/dummy/db/migrate/{20160725104610_devise_extend_push_type_users.push_type_auth.rb → 20160727140511_devise_extend_push_type_users.push_type_auth.rb} +0 -0
  12. data/test/dummy/db/schema.rb +1 -1
  13. data/test/dummy/log/test.log +678 -678
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/43/43-axooBwgATO2o8xLF_PxBDPnQ635xfbeARTUv7SGI.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8z/8zdemLLucSsQ46-iwDF2vdKsCf3Bz6f8_i0v23fT0oI.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{9d → 9D}/9D0ey2PDcoDtRq52B7TaPT0vuzVbYEG8HZaNQ1F18HU.cache +0 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{9d → 9D}/9DSPfaB8ygiGwiajDsVAMG3AkGpjznEZia2WXzKGeWM.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{OQ/OQqrOs8rVLWYgK44o_HO5exmSRzrIxZU41i93q_UQtU.cache → I9/I9iyE-qEwbhr6s3dyKBFTo7jHKKsq-NDJswx4OJtbuk.cache} +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ih/IhvhyCeob9YHSfuKuNbD0yVLCj39vop6ANsQUXqA2TA.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lj/lJuDmsbAPgoLERV1tqEuAw44tH_XPD0rdSNsjW2zW3g.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{2r/2rB9TBgagz2bVJVNgtoRLoVCjclpTL1XDZAPsmnVzIw.cache → Oa/OaCPflWy619EZ3Q54UhEVxjsEn73D5PPpz970m3TL7Q.cache} +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{9d/9d-v7mm-yBRYH0Ci4Vjevq6rwg6lvjJsMO6Od1MN3lY.cache → QF/QFVbmmDphcJOpO83Kn3eso3tvTEf9VlC63gbX2Y4vl8.cache} +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{qn → Qn}/QnEnX2B5TnKy5eBQN00edQX6Nic_-ZYwGoWWUZu2ycM.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{qn → Qn}/qNOz7Rvtjul20-XTH3jifHnv-ypnSVomm2Q1nckbmqQ.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uh/uhlIc96sr4CZ7rqx7zQznMBXf9hGmpdTaNdQzigutbA.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{NG/NG8APov2tuD5ViIxvzl8ReHmczpA-9EdfAdifr9FfEE.cache → WK/WKvXEUQhqHYsjSy85HgLElXgqolRksvgvcDIrLMgtSQ.cache} +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Wu/Wu3D4YOppuuzcfnos1jInbKTRL-lEbEqkD_fgdI5ZLk.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{qn/qnd-uf7hdLg1vyI1HiLygpdYClOMa_fy7JUbCN6f4_s.cache → br/bRnCFsdZrHP_7UGe5wEEr6TjdLvs17TkWJM__8Ls4GU.cache} +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/br/brEdmylym5Y0Jdn5iac53isVd3f53zgodIYmuJNckik.cache +0 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{PH/PHAm_CoF5TQJr8zPP7G6Yhom_yzQosOIz3LOdNZaphU.cache → en/en6UaZdnafQ32rQm8ZQRZuQlxHb70DlHBA8xo2svYa4.cache} +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eu/eupft2-wafspZIamF3UoEUMZR78rwrPB3yjciVP2MiA.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hx/HXEKnZVJhveZPQIKW66beQYofdmOYovkV63Wpt_q4Ww.cache +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{CU/CUUJuoB5rhGahOcB_7_wrE2aJguBo3yJo5WRCPPlY_I.cache → jr/jrNS71vrZL_8WjA6J6wR2KUlyFqPS0q1hpjmC-5xICU.cache} +0 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mQ/MQI4EeiZ6l33LzlXstKseRAt4SmsfCXFVYVwoPP0maw.cache +0 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{PH → ph}/PH09N26aFeEpo0bv_bU9KiXcLwt1CHL0GVBFFCgdNgA.cache +0 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{PH → ph}/PhqukQGq4A7Rce70H4NQG56qJ3NglFgwhP1Zzt0-ruQ.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{PH → ph}/phWjBWlt1MPXIvskQy6X4uUBLyRPQFat0ND_rL_D8XQ.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOvUCwDqqaDHfJ5urP6uZtpJ4auHYbcEjGgO5KeNJx8.cache +0 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{cn/cn-RCoE80_cvNiBBedMqm9zZxFidQhFeGsj8PxEG8s8.cache → vY/vYeqA5rAv52N_fNS2uzKoHcgn9bxKuqldLkHBX70Omo.cache} +0 -0
  40. metadata +50 -50
@@ -1,83 +1,83 @@
1
- ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 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-07-25 10:45:54 UTC], ["updated_at", 2016-07-25 10:45:54 UTC]]
4
-  (93.4ms) 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-07-27 14:05:01 UTC], ["updated_at", 2016-07-27 14:05:01 UTC]]
4
+  (0.4ms) COMMIT
5
5
  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
-  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
6
+  (0.2ms) 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
-  (353.6ms) DROP DATABASE IF EXISTS "dummy_test"
12
-  (4626.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
13
-  (12.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
14
-  (123.7ms) 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);
16
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
- Migrating to CreatePushTypeUsers (20160725104604)
11
+  (112.0ms) DROP DATABASE IF EXISTS "dummy_test"
12
+  (231.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
13
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
14
+  (2.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ Migrating to CreatePushTypeUsers (20160727140505)
18
18
   (0.1ms) BEGIN
19
- SQL (101.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
20
-  (3.4ms) 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.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160725104604"]]
22
-  (41.8ms) COMMIT
23
- Migrating to CreatePushTypeNodes (20160725104605)
19
+ SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
20
+  (9.8ms) 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.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160727140505"]]
22
+  (0.7ms) COMMIT
23
+ Migrating to CreatePushTypeNodes (20160727140506)
24
24
   (0.1ms) BEGIN
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", "20160725104605"]]
27
-  (61.7ms) COMMIT
28
- Migrating to CreatePushTypeNodeHierarchies (20160725104606)
25
+  (1.7ms) 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.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160727140506"]]
27
+  (0.5ms) COMMIT
28
+ Migrating to CreatePushTypeNodeHierarchies (20160727140507)
29
29
   (0.1ms) BEGIN
30
-  (0.6ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
31
-  (0.9ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
32
-  (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
33
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160725104606"]]
34
-  (88.2ms) COMMIT
35
- Migrating to CreatePushTypeAssets (20160725104607)
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")
32
+  (0.6ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
33
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160727140507"]]
34
+  (0.4ms) COMMIT
35
+ Migrating to CreatePushTypeAssets (20160727140508)
36
36
   (0.1ms) BEGIN
37
-  (2.2ms) 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", "20160725104607"]]
39
-  (101.2ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20160725104608)
37
+  (1.9ms) 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", "20160727140508"]]
39
+  (0.3ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20160727140509)
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
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
45
+  (0.7ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
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.1ms) 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", "20160725104608"]]
51
-  (60.8ms) COMMIT
52
- Migrating to DropLegacyPushTypeTaxonomies (20160725104609)
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160727140509"]]
51
+  (0.4ms) COMMIT
52
+ Migrating to DropLegacyPushTypeTaxonomies (20160727140510)
53
53
   (0.1ms) BEGIN
54
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160725104609"]]
55
-  (50.5ms) COMMIT
56
- Migrating to DeviseExtendPushTypeUsers (20160725104610)
54
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160727140510"]]
55
+  (0.4ms) COMMIT
56
+ Migrating to DeviseExtendPushTypeUsers (20160727140511)
57
57
   (0.1ms) BEGIN
58
-  (150.7ms) 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.1ms) 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
-  (488.8ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
62
+  (2.0ms) 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
64
   (0.2ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
65
-  (0.2ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
66
-  (0.2ms) ALTER TABLE "push_type_users" ADD "last_sign_in_ip" character varying
65
+  (0.1ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
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
-  (0.2ms) ALTER TABLE "push_type_users" ADD "confirmed_at" timestamp
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
-  (93.2ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
71
-  (33.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
72
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160725104610"]]
73
-  (42.1ms) COMMIT
70
+  (0.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
71
+  (0.7ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
72
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160727140511"]]
73
+  (1.2ms) COMMIT
74
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]]
75
75
   (0.1ms) BEGIN
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-07-25 10:46:10 UTC], ["updated_at", 2016-07-25 10:46:10 UTC]]
77
-  (51.9ms) COMMIT
78
-  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490)
79
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
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-07-27 14:05:08 UTC], ["updated_at", 2016-07-27 14:05:08 UTC]]
77
+  (0.4ms) COMMIT
78
+  (0.1ms) SELECT pg_advisory_unlock(2735718569030447490)
79
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
+  (1.6ms) 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
@@ -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.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
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
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
@@ -130,7 +130,7 @@ Creating scope :published. Overwriting existing method PushType::Node.published.
130
130
   (0.1ms) BEGIN
131
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
132
132
   (0.1ms) COMMIT
133
-  (1.1ms)  SELECT schemaname || '.' || tablename
133
+  (1.0ms)  SELECT schemaname || '.' || tablename
134
134
  FROM pg_tables
135
135
  WHERE
136
136
  tablename !~ '_prt_' AND
@@ -138,55 +138,46 @@ Creating scope :published. Overwriting existing method PushType::Node.published.
138
138
  schemaname = ANY (current_schemas(false))
139
139
  
140
140
   (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
141
-  (89.4ms) 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;
141
+  (8.6ms) 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
-  (0.3ms) 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
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::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
148
- --------------------------------------------------------------------------------------
149
-  (0.1ms) SAVEPOINT active_record_1
150
-  (0.1ms) RELEASE SAVEPOINT active_record_1
151
-  (0.1ms) SAVEPOINT active_record_1
152
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
153
-  (0.2ms) ROLLBACK
154
-  (0.1ms) BEGIN
155
146
  --------------------------------------------------------------------------------------------------------------
156
147
  PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
157
148
  --------------------------------------------------------------------------------------------------------------
158
149
   (0.1ms) SAVEPOINT active_record_1
159
-  (0.0ms) RELEASE SAVEPOINT active_record_1
160
-  (0.0ms) SAVEPOINT active_record_1
150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
151
+  (0.1ms) SAVEPOINT active_record_1
161
152
   (0.1ms) SAVEPOINT active_record_2
162
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]]
163
- 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]]
164
- SQL (0.8ms) 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-07-25 10:46:15 UTC], ["updated_at", 2016-07-25 10:46:15 UTC], ["confirmation_token", "gjS21LX2knHzfUWbufgR"], ["confirmation_sent_at", 2016-07-25 10:46:15 UTC]]
154
+ 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]]
155
+ SQL (0.9ms) 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-07-27 14:05:12 UTC], ["updated_at", 2016-07-27 14:05:12 UTC], ["confirmation_token", "MosQQtuDL72uTzwsruHM"], ["confirmation_sent_at", 2016-07-27 14:05:12 UTC]]
165
156
   (0.1ms) RELEASE SAVEPOINT active_record_2
166
157
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
167
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (5.9ms)
158
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (4.5ms)
168
159
  DEPRECATION WARNING on line 78 of /Users/aaron/.rvm/gems/ruby-2.3.0@push_type/gems/foundation-rails-5.5.3.2/vendor/assets/stylesheets/foundation/components/_top-bar.scss: #{} interpolation near operators will be simplified
169
160
  in a future version of Sass. To preserve the current behavior, use quotes:
170
161
 
171
162
  unquote("#{lower-bound($medium-range)}")
172
163
 
173
164
 
174
- Devise::Mailer#confirmation_instructions: processed outbound mail in 15270.3ms
175
- Sent mail to joe-1@example.com (10.6ms)
176
- Date: Mon, 25 Jul 2016 11:46:31 +0100
165
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 11606.8ms
166
+ Sent mail to joe-1@example.com (9.5ms)
167
+ Date: Wed, 27 Jul 2016 15:05:23 +0100
177
168
  From: pushtype@example.com
178
169
  Reply-To: pushtype@example.com
179
170
  To: joe-1@example.com
180
- Message-ID: <5795ee0742089_142ce3fde9203f9fc58578@Aarons-iMac.local.mail>
171
+ Message-ID: <5798bfa3cb87c_90b53fd9e443f9ec23885@Aarons-iMac.local.mail>
181
172
  Subject: [PushType] Confirm your account
182
173
  Mime-Version: 1.0
183
174
  Content-Type: multipart/alternative;
184
- boundary="--==_mimepart_5795ee07409db_142ce3fde9203f9fc584c5";
175
+ boundary="--==_mimepart_5798bfa3ca4df_90b53fd9e443f9ec23718";
185
176
  charset=UTF-8
186
177
  Content-Transfer-Encoding: 7bit
187
178
 
188
179
 
189
- ----==_mimepart_5795ee07409db_142ce3fde9203f9fc584c5
180
+ ----==_mimepart_5798bfa3ca4df_90b53fd9e443f9ec23718
190
181
  Content-Type: text/plain;
191
182
  charset=UTF-8
192
183
  Content-Transfer-Encoding: 7bit
@@ -202,11 +193,11 @@ To get started, confirm your account and set your own password by
202
193
  clicking the link below:
203
194
 
204
195
  Confirm my account
205
- ( http://localhost:3000/push_type/confirmation?confirmation_token=gjS21LX2knHzfUWbufgR )
196
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=MosQQtuDL72uTzwsruHM )
206
197
 
207
198
 
208
199
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
209
- ----==_mimepart_5795ee07409db_142ce3fde9203f9fc584c5
200
+ ----==_mimepart_5798bfa3ca4df_90b53fd9e443f9ec23718
210
201
  Content-Type: text/html;
211
202
  charset=UTF-8
212
203
  Content-Transfer-Encoding: 7bit
@@ -252,7 +243,7 @@ body {
252
243
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
253
244
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
254
245
  <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;">
255
- <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/push_type/confirmation?confirmation_token=gjS21LX2knHzfUWbufgR" 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>
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/push_type/confirmation?confirmation_token=MosQQtuDL72uTzwsruHM" 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>
256
247
  </td>
257
248
  </tr>
258
249
  </table>
@@ -297,45 +288,203 @@ body {
297
288
  </body>
298
289
  </html>
299
290
 
300
- ----==_mimepart_5795ee07409db_142ce3fde9203f9fc584c5--
291
+ ----==_mimepart_5798bfa3ca4df_90b53fd9e443f9ec23718--
301
292
 
302
293
   (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
303
-  (0.1ms) ROLLBACK
294
+  (0.2ms) ROLLBACK
304
295
   (0.1ms) BEGIN
305
296
  ---------------------------------------------------------------
306
- PushType::UsersControllerTest::PUT #invite: test_0001_anonymous
297
+ PushType::AuthenticatableTest::confirmable: test_0001_anonymous
307
298
  ---------------------------------------------------------------
299
+  (0.0ms) SAVEPOINT active_record_1
300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
301
+  (0.0ms) SAVEPOINT active_record_1
302
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
303
+  (0.1ms) ROLLBACK
304
+  (0.1ms) BEGIN
305
+ ---------------------------------------------------------------------------
306
+ PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
307
+ ---------------------------------------------------------------------------
308
+  (0.1ms) SAVEPOINT active_record_1
309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
308
310
   (0.1ms) SAVEPOINT active_record_1
311
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
312
+  (0.1ms) ROLLBACK
313
+  (0.1ms) BEGIN
314
+ ---------------------------------------------------------------------------
315
+ PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
316
+ ---------------------------------------------------------------------------
317
+  (0.1ms) SAVEPOINT active_record_1
318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
319
+  (0.0ms) SAVEPOINT active_record_1
320
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
321
+  (0.1ms) ROLLBACK
322
+  (0.1ms) BEGIN
323
+ -------------------------------------------------------------
324
+ PushType::AuthenticatableTest::trackable: test_0001_anonymous
325
+ -------------------------------------------------------------
326
+  (0.0ms) SAVEPOINT active_record_1
309
327
   (0.0ms) RELEASE SAVEPOINT active_record_1
310
328
   (0.0ms) SAVEPOINT active_record_1
329
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
330
+  (0.1ms) ROLLBACK
331
+  (0.1ms) BEGIN
332
+ -------------------------------------------------------------------------------------
333
+ PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
334
+ -------------------------------------------------------------------------------------
335
+  (0.1ms) SAVEPOINT active_record_1
336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
337
+  (0.1ms) SAVEPOINT active_record_1
311
338
   (0.1ms) SAVEPOINT active_record_2
312
- 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]]
313
339
  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]]
314
- 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-2@example.com"], ["created_at", 2016-07-25 10:46:31 UTC], ["updated_at", 2016-07-25 10:46:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:31 UTC], ["confirmation_sent_at", 2016-07-25 10:46:31 UTC]]
340
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
341
+ 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-2@example.com"], ["created_at", 2016-07-27 14:05:23 UTC], ["updated_at", 2016-07-27 14:05:23 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:23 UTC], ["confirmation_sent_at", 2016-07-27 14:05:23 UTC]]
315
342
   (0.1ms) RELEASE SAVEPOINT active_record_2
343
+ Processing by PushType::ProfilesController#update as HTML
344
+ Parameters: {"user"=>{"name"=>""}}
345
+ 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", "d48b345d-c021-46bb-a548-a6e73341c701"], ["LIMIT", 1]]
346
+  (0.1ms) SAVEPOINT active_record_2
347
+ 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-2@example.com"], ["id", "d48b345d-c021-46bb-a548-a6e73341c701"], ["LIMIT", 1]]
348
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
349
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin
350
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (14.2ms)
351
+ Completed 200 OK in 36ms (Views: 29.9ms | ActiveRecord: 0.9ms)
352
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
353
+  (0.1ms) ROLLBACK
354
+  (0.1ms) BEGIN
355
+ -------------------------------------------------------------------------------------
356
+ PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
357
+ -------------------------------------------------------------------------------------
358
+  (0.0ms) SAVEPOINT active_record_1
359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
360
+  (0.0ms) SAVEPOINT active_record_1
316
361
   (0.1ms) SAVEPOINT active_record_2
317
- 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]]
318
362
  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]]
319
- 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-07-25 10:46:31 UTC], ["updated_at", 2016-07-25 10:46:31 UTC], ["confirmation_token", "1mNgsGPLgzC9R5FKmq2y"], ["confirmation_sent_at", 2016-07-25 10:46:31 UTC]]
363
+ 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]]
364
+ 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-07-27 14:05:23 UTC], ["updated_at", 2016-07-27 14:05:23 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:23 UTC], ["confirmation_sent_at", 2016-07-27 14:05:23 UTC]]
365
+  (0.1ms) RELEASE SAVEPOINT active_record_2
366
+ Processing by PushType::ProfilesController#update as HTML
367
+ Parameters: {"user"=>{"name"=>""}}
368
+ 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", "11604e2c-21ec-4650-92b2-dab6319e5777"], ["LIMIT", 1]]
369
+  (0.1ms) SAVEPOINT active_record_2
370
+ 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", "11604e2c-21ec-4650-92b2-dab6319e5777"], ["LIMIT", 1]]
371
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
372
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin
373
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.9ms)
374
+ Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.6ms)
375
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
376
+  (0.1ms) ROLLBACK
377
+  (0.1ms) BEGIN
378
+ ------------------------------------------------------------------------------------------------------
379
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
380
+ ------------------------------------------------------------------------------------------------------
381
+  (0.1ms) SAVEPOINT active_record_1
382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
383
+  (0.1ms) SAVEPOINT active_record_1
384
+ Processing by PushType::ConfirmationsController#show as HTML
385
+ Parameters: {"confirmation_token"=>"invalid"}
386
+ 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]]
387
+ 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]]
388
+ 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", "99103e8eeab3510c885a17097caa5751857b094c9f959fa219c0560b27042873"], ["LIMIT", 1]]
389
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
390
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.8ms)
391
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (7.0ms)
392
+ Completed 200 OK in 179ms (Views: 17.5ms | ActiveRecord: 0.5ms)
393
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
394
+  (0.1ms) ROLLBACK
395
+  (0.1ms) BEGIN
396
+ ------------------------------------------------------------------------------------------------------
397
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
398
+ ------------------------------------------------------------------------------------------------------
399
+  (0.0ms) SAVEPOINT active_record_1
400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
401
+  (0.0ms) SAVEPOINT active_record_1
402
+ Processing by PushType::ConfirmationsController#show as HTML
403
+ Parameters: {"confirmation_token"=>"invalid"}
404
+ 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]]
405
+ 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]]
406
+ 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", "99103e8eeab3510c885a17097caa5751857b094c9f959fa219c0560b27042873"], ["LIMIT", 1]]
407
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
408
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.4ms)
409
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.5ms)
410
+ Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.4ms)
411
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
412
+  (0.1ms) ROLLBACK
413
+  (0.1ms) BEGIN
414
+ ----------------------------------------------------
415
+ PushType::InvitationMethodsTest: test_0001_anonymous
416
+ ----------------------------------------------------
417
+  (0.0ms) SAVEPOINT active_record_1
418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
419
+  (0.0ms) SAVEPOINT active_record_1
420
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
421
+  (0.0ms) ROLLBACK
422
+  (0.0ms) BEGIN
423
+ ----------------------------------------------------------------
424
+ PushType::AuthenticatableTest::rememberable: test_0001_anonymous
425
+ ----------------------------------------------------------------
426
+  (0.0ms) SAVEPOINT active_record_1
427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
428
+  (0.0ms) SAVEPOINT active_record_1
429
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
430
+  (0.1ms) ROLLBACK
431
+  (0.1ms) BEGIN
432
+ --------------------------------------------------------------------------------------
433
+ PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
434
+ --------------------------------------------------------------------------------------
435
+  (0.0ms) SAVEPOINT active_record_1
436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
437
+  (0.0ms) SAVEPOINT active_record_1
438
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
439
+  (0.0ms) ROLLBACK
440
+  (0.0ms) BEGIN
441
+ ---------------------------------------------------------------
442
+ PushType::AuthenticatableTest::validatable: test_0001_anonymous
443
+ ---------------------------------------------------------------
444
+  (0.0ms) SAVEPOINT active_record_1
445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
446
+  (0.0ms) SAVEPOINT active_record_1
447
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
448
+  (0.1ms) ROLLBACK
449
+  (0.1ms) BEGIN
450
+ ---------------------------------------------------------------
451
+ PushType::AuthenticatableTest::validatable: test_0002_anonymous
452
+ ---------------------------------------------------------------
453
+  (0.0ms) SAVEPOINT active_record_1
454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
455
+  (0.0ms) SAVEPOINT active_record_1
456
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
457
+  (0.1ms) ROLLBACK
458
+  (0.1ms) BEGIN
459
+ --------------------------------------------------------------------------------------------------------------
460
+ PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
461
+ --------------------------------------------------------------------------------------------------------------
462
+  (0.0ms) SAVEPOINT active_record_1
463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
464
+  (0.0ms) SAVEPOINT active_record_1
465
+  (0.1ms) SAVEPOINT active_record_2
466
+ 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]]
467
+ 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]]
468
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "AzzrMMs-QkezBgqsbBeR"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
320
469
   (0.1ms) RELEASE SAVEPOINT active_record_2
321
470
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
322
471
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
323
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
324
- Sent mail to joe-3@example.com (3.6ms)
325
- Date: Mon, 25 Jul 2016 11:46:31 +0100
472
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
473
+ Sent mail to joe-4@example.com (3.4ms)
474
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
326
475
  From: pushtype@example.com
327
476
  Reply-To: pushtype@example.com
328
- To: joe-3@example.com
329
- Message-ID: <5795ee07514f2_142ce3fde9203f9fc58823@Aarons-iMac.local.mail>
477
+ To: joe-4@example.com
478
+ Message-ID: <5798bfa42a83f_90b53fd9e443f9ec2419f@Aarons-iMac.local.mail>
330
479
  Subject: [PushType] Confirm your account
331
480
  Mime-Version: 1.0
332
481
  Content-Type: multipart/alternative;
333
- boundary="--==_mimepart_5795ee0751079_142ce3fde9203f9fc587e8";
482
+ boundary="--==_mimepart_5798bfa42a439_90b53fd9e443f9ec2406b";
334
483
  charset=UTF-8
335
484
  Content-Transfer-Encoding: 7bit
336
485
 
337
486
 
338
- ----==_mimepart_5795ee0751079_142ce3fde9203f9fc587e8
487
+ ----==_mimepart_5798bfa42a439_90b53fd9e443f9ec2406b
339
488
  Content-Type: text/plain;
340
489
  charset=UTF-8
341
490
  Content-Transfer-Encoding: 7bit
@@ -351,11 +500,11 @@ To get started, confirm your account and set your own password by
351
500
  clicking the link below:
352
501
 
353
502
  Confirm my account
354
- ( http://localhost:3000/push_type/confirmation?confirmation_token=1mNgsGPLgzC9R5FKmq2y )
503
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=AzzrMMs-QkezBgqsbBeR )
355
504
 
356
505
 
357
506
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
358
- ----==_mimepart_5795ee0751079_142ce3fde9203f9fc587e8
507
+ ----==_mimepart_5798bfa42a439_90b53fd9e443f9ec2406b
359
508
  Content-Type: text/html;
360
509
  charset=UTF-8
361
510
  Content-Transfer-Encoding: 7bit
@@ -401,7 +550,7 @@ body {
401
550
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
402
551
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
403
552
  <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;">
404
- <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/push_type/confirmation?confirmation_token=1mNgsGPLgzC9R5FKmq2y" 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>
553
+ <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/push_type/confirmation?confirmation_token=AzzrMMs-QkezBgqsbBeR" 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>
405
554
  </td>
406
555
  </tr>
407
556
  </table>
@@ -446,32 +595,40 @@ body {
446
595
  </body>
447
596
  </html>
448
597
 
449
- ----==_mimepart_5795ee0751079_142ce3fde9203f9fc587e8--
598
+ ----==_mimepart_5798bfa42a439_90b53fd9e443f9ec2406b--
450
599
 
451
- Processing by PushType::UsersController#invite as HTML
452
- Parameters: {"id"=>"dc706eb5-233c-429b-802b-f9ab0d93266b"}
453
- PushType::User Load (242.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", "767a88c2-5436-4b33-ace2-302e4e1fc950"], ["LIMIT", 1]]
454
- 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", "dc706eb5-233c-429b-802b-f9ab0d93266b"], ["LIMIT", 1]]
600
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
601
+  (0.1ms) ROLLBACK
602
+  (0.1ms) BEGIN
603
+ ----------------------------------------------------------------------------------------------------
604
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
605
+ ----------------------------------------------------------------------------------------------------
606
+  (0.1ms) SAVEPOINT active_record_1
607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
608
+  (0.1ms) SAVEPOINT active_record_1
455
609
   (0.1ms) SAVEPOINT active_record_2
610
+ 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]]
611
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
612
+ 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-5@example.com"], ["created_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "fduxoMzZg_vjyXCzyx-U"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
456
613
   (0.1ms) RELEASE SAVEPOINT active_record_2
457
614
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
458
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
459
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.1ms
460
- Sent mail to joe-3@example.com (3.7ms)
461
- Date: Mon, 25 Jul 2016 11:46:31 +0100
615
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
616
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
617
+ Sent mail to joe-5@example.com (3.9ms)
618
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
462
619
  From: pushtype@example.com
463
620
  Reply-To: pushtype@example.com
464
- To: joe-3@example.com
465
- Message-ID: <5795ee0798b38_142ce3fde9203f9fc591b@Aarons-iMac.local.mail>
621
+ To: joe-5@example.com
622
+ Message-ID: <5798bfa4344b8_90b53fd9e443f9ec2449d@Aarons-iMac.local.mail>
466
623
  Subject: [PushType] Confirm your account
467
624
  Mime-Version: 1.0
468
625
  Content-Type: multipart/alternative;
469
- boundary="--==_mimepart_5795ee0798644_142ce3fde9203f9fc590e8";
626
+ boundary="--==_mimepart_5798bfa433f70_90b53fd9e443f9ec243de";
470
627
  charset=UTF-8
471
628
  Content-Transfer-Encoding: 7bit
472
629
 
473
630
 
474
- ----==_mimepart_5795ee0798644_142ce3fde9203f9fc590e8
631
+ ----==_mimepart_5798bfa433f70_90b53fd9e443f9ec243de
475
632
  Content-Type: text/plain;
476
633
  charset=UTF-8
477
634
  Content-Transfer-Encoding: 7bit
@@ -487,11 +644,11 @@ To get started, confirm your account and set your own password by
487
644
  clicking the link below:
488
645
 
489
646
  Confirm my account
490
- ( http://localhost:3000/push_type/confirmation?confirmation_token=1mNgsGPLgzC9R5FKmq2y )
647
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=fduxoMzZg_vjyXCzyx-U )
491
648
 
492
649
 
493
650
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
494
- ----==_mimepart_5795ee0798644_142ce3fde9203f9fc590e8
651
+ ----==_mimepart_5798bfa433f70_90b53fd9e443f9ec243de
495
652
  Content-Type: text/html;
496
653
  charset=UTF-8
497
654
  Content-Transfer-Encoding: 7bit
@@ -537,7 +694,7 @@ body {
537
694
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
538
695
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
539
696
  <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;">
540
- <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/push_type/confirmation?confirmation_token=1mNgsGPLgzC9R5FKmq2y" 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>
697
+ <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/push_type/confirmation?confirmation_token=fduxoMzZg_vjyXCzyx-U" 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>
541
698
  </td>
542
699
  </tr>
543
700
  </table>
@@ -582,47 +739,47 @@ body {
582
739
  </body>
583
740
  </html>
584
741
 
585
- ----==_mimepart_5795ee0798644_142ce3fde9203f9fc590e8--
742
+ ----==_mimepart_5798bfa433f70_90b53fd9e443f9ec243de--
586
743
 
587
- Redirected to http://test.host/push_type/users
588
- Completed 302 Found in 287ms (ActiveRecord: 242.8ms)
744
+ Processing by PushType::ConfirmationsController#show as HTML
745
+ Parameters: {"confirmation_token"=>"fduxoMzZg_vjyXCzyx-U"}
746
+ 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", "fduxoMzZg_vjyXCzyx-U"], ["LIMIT", 1]]
747
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
748
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
749
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (4.4ms)
750
+ Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 0.2ms)
589
751
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
590
752
   (0.1ms) ROLLBACK
591
753
   (0.1ms) BEGIN
592
- ---------------------------------------------------------------
593
- PushType::UsersControllerTest::PUT #invite: test_0003_anonymous
594
- ---------------------------------------------------------------
595
-  (0.1ms) SAVEPOINT active_record_1
754
+ ----------------------------------------------------------------------------------------------------
755
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
756
+ ----------------------------------------------------------------------------------------------------
757
+  (0.0ms) SAVEPOINT active_record_1
596
758
   (0.0ms) RELEASE SAVEPOINT active_record_1
597
759
   (0.0ms) SAVEPOINT active_record_1
598
760
   (0.1ms) SAVEPOINT active_record_2
599
- 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]]
600
- 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]]
601
- 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-07-25 10:46:31 UTC], ["updated_at", 2016-07-25 10:46:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:31 UTC], ["confirmation_sent_at", 2016-07-25 10:46:31 UTC]]
602
-  (0.1ms) RELEASE SAVEPOINT active_record_2
603
-  (0.1ms) SAVEPOINT active_record_2
604
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
605
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
606
- 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-5@example.com"], ["created_at", 2016-07-25 10:46:31 UTC], ["updated_at", 2016-07-25 10:46:31 UTC], ["confirmation_token", "BzZsyMyP5SRB8pWaPQhP"], ["confirmation_sent_at", 2016-07-25 10:46:31 UTC]]
761
+ 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]]
762
+ 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]]
763
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "fxZEzX15ZrAQkz9vzKCx"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
607
764
   (0.1ms) RELEASE SAVEPOINT active_record_2
608
765
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
609
766
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
610
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
611
- Sent mail to joe-5@example.com (3.8ms)
612
- Date: Mon, 25 Jul 2016 11:46:31 +0100
767
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
768
+ Sent mail to joe-6@example.com (3.8ms)
769
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
613
770
  From: pushtype@example.com
614
771
  Reply-To: pushtype@example.com
615
- To: joe-5@example.com
616
- Message-ID: <5795ee07a4907_142ce3fde9203f9fc594e7@Aarons-iMac.local.mail>
772
+ To: joe-6@example.com
773
+ Message-ID: <5798bfa44288a_90b53fd9e443f9ec247a@Aarons-iMac.local.mail>
617
774
  Subject: [PushType] Confirm your account
618
775
  Mime-Version: 1.0
619
776
  Content-Type: multipart/alternative;
620
- boundary="--==_mimepart_5795ee07a444f_142ce3fde9203f9fc593d6";
777
+ boundary="--==_mimepart_5798bfa4423fb_90b53fd9e443f9ec2468b";
621
778
  charset=UTF-8
622
779
  Content-Transfer-Encoding: 7bit
623
780
 
624
781
 
625
- ----==_mimepart_5795ee07a444f_142ce3fde9203f9fc593d6
782
+ ----==_mimepart_5798bfa4423fb_90b53fd9e443f9ec2468b
626
783
  Content-Type: text/plain;
627
784
  charset=UTF-8
628
785
  Content-Transfer-Encoding: 7bit
@@ -638,11 +795,11 @@ To get started, confirm your account and set your own password by
638
795
  clicking the link below:
639
796
 
640
797
  Confirm my account
641
- ( http://localhost:3000/push_type/confirmation?confirmation_token=BzZsyMyP5SRB8pWaPQhP )
798
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=fxZEzX15ZrAQkz9vzKCx )
642
799
 
643
800
 
644
801
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
645
- ----==_mimepart_5795ee07a444f_142ce3fde9203f9fc593d6
802
+ ----==_mimepart_5798bfa4423fb_90b53fd9e443f9ec2468b
646
803
  Content-Type: text/html;
647
804
  charset=UTF-8
648
805
  Content-Transfer-Encoding: 7bit
@@ -688,7 +845,7 @@ body {
688
845
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
689
846
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
690
847
  <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;">
691
- <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/push_type/confirmation?confirmation_token=BzZsyMyP5SRB8pWaPQhP" 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>
848
+ <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/push_type/confirmation?confirmation_token=fxZEzX15ZrAQkz9vzKCx" 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>
692
849
  </td>
693
850
  </tr>
694
851
  </table>
@@ -733,32 +890,47 @@ body {
733
890
  </body>
734
891
  </html>
735
892
 
736
- ----==_mimepart_5795ee07a444f_142ce3fde9203f9fc593d6--
893
+ ----==_mimepart_5798bfa4423fb_90b53fd9e443f9ec2468b--
737
894
 
738
- Processing by PushType::UsersController#invite as HTML
739
- Parameters: {"id"=>"d3a4cf15-76f7-46ce-ae19-e4d507c18aa9"}
740
- 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", "626e209c-c3ed-4d90-9580-e341c8af2302"], ["LIMIT", 1]]
741
- 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", "d3a4cf15-76f7-46ce-ae19-e4d507c18aa9"], ["LIMIT", 1]]
895
+ Processing by PushType::ConfirmationsController#show as HTML
896
+ Parameters: {"confirmation_token"=>"fxZEzX15ZrAQkz9vzKCx"}
897
+ 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", "fxZEzX15ZrAQkz9vzKCx"], ["LIMIT", 1]]
898
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
899
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.4ms)
900
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.9ms)
901
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms)
902
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
903
+  (0.1ms) ROLLBACK
904
+  (0.1ms) BEGIN
905
+ ------------------------------------------------------------------------------------------
906
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
907
+ ------------------------------------------------------------------------------------------
908
+  (0.1ms) SAVEPOINT active_record_1
909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
910
+  (0.1ms) SAVEPOINT active_record_1
742
911
   (0.1ms) SAVEPOINT active_record_2
912
+ 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]]
913
+ 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]]
914
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "m1DzYFYrxN3qYXwKsY3f"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
743
915
   (0.1ms) RELEASE SAVEPOINT active_record_2
744
916
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
745
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
746
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
747
- Sent mail to joe-5@example.com (3.9ms)
748
- Date: Mon, 25 Jul 2016 11:46:31 +0100
917
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
918
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
919
+ Sent mail to joe-7@example.com (3.4ms)
920
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
749
921
  From: pushtype@example.com
750
922
  Reply-To: pushtype@example.com
751
- To: joe-5@example.com
752
- Message-ID: <5795ee07aee3c_142ce3fde9203f9fc597e7@Aarons-iMac.local.mail>
923
+ To: joe-7@example.com
924
+ Message-ID: <5798bfa450f5f_90b53fd9e443f9ec250c4@Aarons-iMac.local.mail>
753
925
  Subject: [PushType] Confirm your account
754
926
  Mime-Version: 1.0
755
927
  Content-Type: multipart/alternative;
756
- boundary="--==_mimepart_5795ee07ae972_142ce3fde9203f9fc59642";
928
+ boundary="--==_mimepart_5798bfa450b5d_90b53fd9e443f9ec2495b";
757
929
  charset=UTF-8
758
930
  Content-Transfer-Encoding: 7bit
759
931
 
760
932
 
761
- ----==_mimepart_5795ee07ae972_142ce3fde9203f9fc59642
933
+ ----==_mimepart_5798bfa450b5d_90b53fd9e443f9ec2495b
762
934
  Content-Type: text/plain;
763
935
  charset=UTF-8
764
936
  Content-Transfer-Encoding: 7bit
@@ -774,11 +946,11 @@ To get started, confirm your account and set your own password by
774
946
  clicking the link below:
775
947
 
776
948
  Confirm my account
777
- ( http://localhost:3000/push_type/confirmation?confirmation_token=BzZsyMyP5SRB8pWaPQhP )
949
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=m1DzYFYrxN3qYXwKsY3f )
778
950
 
779
951
 
780
952
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
781
- ----==_mimepart_5795ee07ae972_142ce3fde9203f9fc59642
953
+ ----==_mimepart_5798bfa450b5d_90b53fd9e443f9ec2495b
782
954
  Content-Type: text/html;
783
955
  charset=UTF-8
784
956
  Content-Transfer-Encoding: 7bit
@@ -824,7 +996,7 @@ body {
824
996
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
825
997
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
826
998
  <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;">
827
- <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/push_type/confirmation?confirmation_token=BzZsyMyP5SRB8pWaPQhP" 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>
999
+ <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/push_type/confirmation?confirmation_token=m1DzYFYrxN3qYXwKsY3f" 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>
828
1000
  </td>
829
1001
  </tr>
830
1002
  </table>
@@ -869,47 +1041,48 @@ body {
869
1041
  </body>
870
1042
  </html>
871
1043
 
872
- ----==_mimepart_5795ee07ae972_142ce3fde9203f9fc59642--
1044
+ ----==_mimepart_5798bfa450b5d_90b53fd9e443f9ec2495b--
873
1045
 
874
- Redirected to http://test.host/push_type/users
875
- Completed 302 Found in 42ms (ActiveRecord: 0.6ms)
1046
+ Processing by PushType::ConfirmationsController#update as HTML
1047
+ Parameters: {"user"=>{"confirmation_token"=>"m1DzYFYrxN3qYXwKsY3f", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1048
+ 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", "m1DzYFYrxN3qYXwKsY3f"], ["LIMIT", 1]]
1049
+ 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-7@example.com"], ["id", "3732864b-bd5a-4c05-962b-8d53f430fa8a"], ["LIMIT", 1]]
1050
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1051
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1052
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1053
+ Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
876
1054
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
877
1055
   (0.1ms) ROLLBACK
878
1056
   (0.1ms) BEGIN
879
- ---------------------------------------------------------------
880
- PushType::UsersControllerTest::PUT #invite: test_0002_anonymous
881
- ---------------------------------------------------------------
1057
+ ------------------------------------------------------------------------------------------
1058
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
1059
+ ------------------------------------------------------------------------------------------
1060
+  (0.0ms) SAVEPOINT active_record_1
1061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
882
1062
   (0.0ms) SAVEPOINT active_record_1
883
-  (0.1ms) RELEASE SAVEPOINT active_record_1
884
-  (0.1ms) SAVEPOINT active_record_1
885
-  (0.1ms) SAVEPOINT active_record_2
886
- 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]]
887
- 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]]
888
- 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-6@example.com"], ["created_at", 2016-07-25 10:46:31 UTC], ["updated_at", 2016-07-25 10:46:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:31 UTC], ["confirmation_sent_at", 2016-07-25 10:46:31 UTC]]
889
-  (0.1ms) RELEASE SAVEPOINT active_record_2
890
1063
   (0.1ms) SAVEPOINT active_record_2
891
- 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]]
892
- 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]]
893
- 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-07-25 10:46:31 UTC], ["updated_at", 2016-07-25 10:46:31 UTC], ["confirmation_token", "txxtquZca4EJEqmEJxYA"], ["confirmation_sent_at", 2016-07-25 10:46:31 UTC]]
1064
+ 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]]
1065
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
1066
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "ytBpy3E6BjyKTwyrR_hT"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
894
1067
   (0.1ms) RELEASE SAVEPOINT active_record_2
895
1068
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
896
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.5ms)
897
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.7ms
898
- Sent mail to joe-7@example.com (3.6ms)
899
- Date: Mon, 25 Jul 2016 11:46:31 +0100
1069
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1070
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1071
+ Sent mail to joe-8@example.com (3.6ms)
1072
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
900
1073
  From: pushtype@example.com
901
1074
  Reply-To: pushtype@example.com
902
- To: joe-7@example.com
903
- Message-ID: <5795ee07ba266_142ce3fde9203f9fc600b5@Aarons-iMac.local.mail>
1075
+ To: joe-8@example.com
1076
+ Message-ID: <5798bfa45ce40_90b53fd9e443f9ec25323@Aarons-iMac.local.mail>
904
1077
  Subject: [PushType] Confirm your account
905
1078
  Mime-Version: 1.0
906
1079
  Content-Type: multipart/alternative;
907
- boundary="--==_mimepart_5795ee07b9ddb_142ce3fde9203f9fc59940";
1080
+ boundary="--==_mimepart_5798bfa45c995_90b53fd9e443f9ec2527b";
908
1081
  charset=UTF-8
909
1082
  Content-Transfer-Encoding: 7bit
910
1083
 
911
1084
 
912
- ----==_mimepart_5795ee07b9ddb_142ce3fde9203f9fc59940
1085
+ ----==_mimepart_5798bfa45c995_90b53fd9e443f9ec2527b
913
1086
  Content-Type: text/plain;
914
1087
  charset=UTF-8
915
1088
  Content-Transfer-Encoding: 7bit
@@ -925,11 +1098,11 @@ To get started, confirm your account and set your own password by
925
1098
  clicking the link below:
926
1099
 
927
1100
  Confirm my account
928
- ( http://localhost:3000/push_type/confirmation?confirmation_token=txxtquZca4EJEqmEJxYA )
1101
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=ytBpy3E6BjyKTwyrR_hT )
929
1102
 
930
1103
 
931
1104
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
932
- ----==_mimepart_5795ee07b9ddb_142ce3fde9203f9fc59940
1105
+ ----==_mimepart_5798bfa45c995_90b53fd9e443f9ec2527b
933
1106
  Content-Type: text/html;
934
1107
  charset=UTF-8
935
1108
  Content-Transfer-Encoding: 7bit
@@ -975,7 +1148,7 @@ body {
975
1148
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
976
1149
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
977
1150
  <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;">
978
- <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/push_type/confirmation?confirmation_token=txxtquZca4EJEqmEJxYA" 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>
1151
+ <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/push_type/confirmation?confirmation_token=ytBpy3E6BjyKTwyrR_hT" 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>
979
1152
  </td>
980
1153
  </tr>
981
1154
  </table>
@@ -1020,32 +1193,48 @@ body {
1020
1193
  </body>
1021
1194
  </html>
1022
1195
 
1023
- ----==_mimepart_5795ee07b9ddb_142ce3fde9203f9fc59940--
1196
+ ----==_mimepart_5798bfa45c995_90b53fd9e443f9ec2527b--
1024
1197
 
1025
- Processing by PushType::UsersController#invite as HTML
1026
- Parameters: {"id"=>"ddb3cbd0-6713-447d-980e-d9c62e87d367"}
1027
- 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", "f2bd8476-0489-4d55-9313-2e605ab1898c"], ["LIMIT", 1]]
1028
- 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", "ddb3cbd0-6713-447d-980e-d9c62e87d367"], ["LIMIT", 1]]
1029
-  (0.1ms) SAVEPOINT active_record_2
1030
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1031
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1032
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1033
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
1034
- Sent mail to joe-7@example.com (3.6ms)
1035
- Date: Mon, 25 Jul 2016 11:46:31 +0100
1036
- From: pushtype@example.com
1037
- Reply-To: pushtype@example.com
1038
- To: joe-7@example.com
1039
- Message-ID: <5795ee07c45cc_142ce3fde9203f9fc6035@Aarons-iMac.local.mail>
1040
- Subject: [PushType] Confirm your account
1041
- Mime-Version: 1.0
1042
- Content-Type: multipart/alternative;
1043
- boundary="--==_mimepart_5795ee07c40e5_142ce3fde9203f9fc60245";
1198
+ Processing by PushType::ConfirmationsController#update as HTML
1199
+ Parameters: {"user"=>{"confirmation_token"=>"ytBpy3E6BjyKTwyrR_hT", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1200
+ 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", "ytBpy3E6BjyKTwyrR_hT"], ["LIMIT", 1]]
1201
+ 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-8@example.com"], ["id", "8add1595-0569-45b8-8094-935322f5113b"], ["LIMIT", 1]]
1202
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1203
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1204
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1205
+ Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
1206
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1207
+  (0.1ms) ROLLBACK
1208
+  (0.1ms) BEGIN
1209
+ ------------------------------------------------------------------------------------------
1210
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
1211
+ ------------------------------------------------------------------------------------------
1212
+  (0.1ms) SAVEPOINT active_record_1
1213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1214
+  (0.0ms) SAVEPOINT active_record_1
1215
+  (0.1ms) SAVEPOINT active_record_2
1216
+ 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]]
1217
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1218
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "ecgFbkxGd2-VShtz_AG6"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
1219
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1220
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1221
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1222
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
1223
+ Sent mail to joe-9@example.com (3.5ms)
1224
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
1225
+ From: pushtype@example.com
1226
+ Reply-To: pushtype@example.com
1227
+ To: joe-9@example.com
1228
+ Message-ID: <5798bfa469715_90b53fd9e443f9ec2562a@Aarons-iMac.local.mail>
1229
+ Subject: [PushType] Confirm your account
1230
+ Mime-Version: 1.0
1231
+ Content-Type: multipart/alternative;
1232
+ boundary="--==_mimepart_5798bfa4692c2_90b53fd9e443f9ec2556a";
1044
1233
  charset=UTF-8
1045
1234
  Content-Transfer-Encoding: 7bit
1046
1235
 
1047
1236
 
1048
- ----==_mimepart_5795ee07c40e5_142ce3fde9203f9fc60245
1237
+ ----==_mimepart_5798bfa4692c2_90b53fd9e443f9ec2556a
1049
1238
  Content-Type: text/plain;
1050
1239
  charset=UTF-8
1051
1240
  Content-Transfer-Encoding: 7bit
@@ -1061,11 +1250,11 @@ To get started, confirm your account and set your own password by
1061
1250
  clicking the link below:
1062
1251
 
1063
1252
  Confirm my account
1064
- ( http://localhost:3000/push_type/confirmation?confirmation_token=txxtquZca4EJEqmEJxYA )
1253
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=ecgFbkxGd2-VShtz_AG6 )
1065
1254
 
1066
1255
 
1067
1256
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1068
- ----==_mimepart_5795ee07c40e5_142ce3fde9203f9fc60245
1257
+ ----==_mimepart_5798bfa4692c2_90b53fd9e443f9ec2556a
1069
1258
  Content-Type: text/html;
1070
1259
  charset=UTF-8
1071
1260
  Content-Transfer-Encoding: 7bit
@@ -1111,7 +1300,7 @@ body {
1111
1300
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1112
1301
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1113
1302
  <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;">
1114
- <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/push_type/confirmation?confirmation_token=txxtquZca4EJEqmEJxYA" 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>
1303
+ <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/push_type/confirmation?confirmation_token=ecgFbkxGd2-VShtz_AG6" 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>
1115
1304
  </td>
1116
1305
  </tr>
1117
1306
  </table>
@@ -1156,87 +1345,62 @@ body {
1156
1345
  </body>
1157
1346
  </html>
1158
1347
 
1159
- ----==_mimepart_5795ee07c40e5_142ce3fde9203f9fc60245--
1348
+ ----==_mimepart_5798bfa4692c2_90b53fd9e443f9ec2556a--
1160
1349
 
1161
- Redirected to http://test.host/push_type/users
1162
- Completed 302 Found in 42ms (ActiveRecord: 0.6ms)
1350
+ Processing by PushType::ConfirmationsController#update as HTML
1351
+ Parameters: {"user"=>{"confirmation_token"=>"ecgFbkxGd2-VShtz_AG6", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1352
+ 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", "ecgFbkxGd2-VShtz_AG6"], ["LIMIT", 1]]
1353
+ 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-9@example.com"], ["id", "0756db43-ec8f-42d1-a68b-93d55f09d00c"], ["LIMIT", 1]]
1354
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1355
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.4ms)
1356
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.8ms)
1357
+ Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.4ms)
1163
1358
   (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1164
1359
   (0.1ms) ROLLBACK
1165
1360
   (0.1ms) BEGIN
1166
- --------------------------------------------------------
1167
- PushType::AuthenticationMethodsTest: test_0001_anonymous
1168
- --------------------------------------------------------
1169
-  (0.1ms) SAVEPOINT active_record_1
1170
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1171
-  (0.1ms) SAVEPOINT active_record_1
1172
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1173
-  (0.1ms) ROLLBACK
1174
-  (0.1ms) BEGIN
1175
- --------------------------------------------------------
1176
- PushType::AuthenticationMethodsTest: test_0002_anonymous
1177
- --------------------------------------------------------
1178
-  (0.0ms) SAVEPOINT active_record_1
1179
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1180
-  (0.0ms) SAVEPOINT active_record_1
1181
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1182
-  (0.1ms) ROLLBACK
1183
-  (0.0ms) BEGIN
1184
1361
  ---------------------------------------------------------------
1185
1362
  PushType::AuthenticatableTest::recoverable: test_0001_anonymous
1186
- ---------------------------------------------------------------
1187
-  (0.1ms) SAVEPOINT active_record_1
1188
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1189
-  (0.1ms) SAVEPOINT active_record_1
1190
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1191
-  (0.1ms) ROLLBACK
1192
-  (0.1ms) BEGIN
1193
- ---------------------------------------------------------------
1194
- PushType::AuthenticatableTest::confirmable: test_0001_anonymous
1195
1363
  ---------------------------------------------------------------
1196
1364
   (0.0ms) SAVEPOINT active_record_1
1197
1365
   (0.0ms) RELEASE SAVEPOINT active_record_1
1198
-  (0.1ms) SAVEPOINT active_record_1
1366
+  (0.0ms) SAVEPOINT active_record_1
1199
1367
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1200
1368
   (0.1ms) ROLLBACK
1201
1369
   (0.1ms) BEGIN
1202
- ----------------------------------------------------
1203
- PushType::InvitationMethodsTest: test_0001_anonymous
1204
- ----------------------------------------------------
1205
-  (0.1ms) SAVEPOINT active_record_1
1206
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1370
+ ---------------------------------------------------------------
1371
+ PushType::UsersControllerTest::PUT #invite: test_0002_anonymous
1372
+ ---------------------------------------------------------------
1207
1373
   (0.0ms) SAVEPOINT active_record_1
1208
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1209
-  (0.1ms) ROLLBACK
1210
-  (0.0ms) BEGIN
1211
- ----------------------------------------------------------------------------------------------------
1212
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
1213
- ----------------------------------------------------------------------------------------------------
1214
-  (0.1ms) SAVEPOINT active_record_1
1215
1374
   (0.1ms) RELEASE SAVEPOINT active_record_1
1216
1375
   (0.1ms) SAVEPOINT active_record_1
1217
1376
   (0.1ms) SAVEPOINT active_record_2
1218
- 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]]
1219
- 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]]
1220
- 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-07-25 10:46:31 UTC], ["updated_at", 2016-07-25 10:46:31 UTC], ["confirmation_token", "zwC3ws4q8hMDYtEdw3Dx"], ["confirmation_sent_at", 2016-07-25 10:46:31 UTC]]
1377
+ 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]]
1378
+ 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]]
1379
+ 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-10@example.com"], ["created_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
1380
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1381
+  (0.1ms) SAVEPOINT active_record_2
1382
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1383
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1384
+ 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-11@example.com"], ["created_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "WWjviN96tCydUH1-vcH3"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
1221
1385
   (0.1ms) RELEASE SAVEPOINT active_record_2
1222
1386
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1223
1387
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1224
1388
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
1225
- Sent mail to joe-8@example.com (5.7ms)
1226
- Date: Mon, 25 Jul 2016 11:46:31 +0100
1389
+ Sent mail to joe-11@example.com (3.2ms)
1390
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
1227
1391
  From: pushtype@example.com
1228
1392
  Reply-To: pushtype@example.com
1229
- To: joe-8@example.com
1230
- Message-ID: <5795ee07e79b5_142ce3fde9203f9fc606b9@Aarons-iMac.local.mail>
1393
+ To: joe-11@example.com
1394
+ Message-ID: <5798bfa476ec0_90b53fd9e443f9ec259bd@Aarons-iMac.local.mail>
1231
1395
  Subject: [PushType] Confirm your account
1232
1396
  Mime-Version: 1.0
1233
1397
  Content-Type: multipart/alternative;
1234
- boundary="--==_mimepart_5795ee07e71e0_142ce3fde9203f9fc605b8";
1398
+ boundary="--==_mimepart_5798bfa476abe_90b53fd9e443f9ec2585";
1235
1399
  charset=UTF-8
1236
1400
  Content-Transfer-Encoding: 7bit
1237
1401
 
1238
1402
 
1239
- ----==_mimepart_5795ee07e71e0_142ce3fde9203f9fc605b8
1403
+ ----==_mimepart_5798bfa476abe_90b53fd9e443f9ec2585
1240
1404
  Content-Type: text/plain;
1241
1405
  charset=UTF-8
1242
1406
  Content-Transfer-Encoding: 7bit
@@ -1252,11 +1416,11 @@ To get started, confirm your account and set your own password by
1252
1416
  clicking the link below:
1253
1417
 
1254
1418
  Confirm my account
1255
- ( http://localhost:3000/push_type/confirmation?confirmation_token=zwC3ws4q8hMDYtEdw3Dx )
1419
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=WWjviN96tCydUH1-vcH3 )
1256
1420
 
1257
1421
 
1258
1422
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1259
- ----==_mimepart_5795ee07e71e0_142ce3fde9203f9fc605b8
1423
+ ----==_mimepart_5798bfa476abe_90b53fd9e443f9ec2585
1260
1424
  Content-Type: text/html;
1261
1425
  charset=UTF-8
1262
1426
  Content-Transfer-Encoding: 7bit
@@ -1302,7 +1466,7 @@ body {
1302
1466
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1303
1467
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1304
1468
  <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;">
1305
- <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/push_type/confirmation?confirmation_token=zwC3ws4q8hMDYtEdw3Dx" 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>
1469
+ <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/push_type/confirmation?confirmation_token=WWjviN96tCydUH1-vcH3" 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>
1306
1470
  </td>
1307
1471
  </tr>
1308
1472
  </table>
@@ -1347,47 +1511,32 @@ body {
1347
1511
  </body>
1348
1512
  </html>
1349
1513
 
1350
- ----==_mimepart_5795ee07e71e0_142ce3fde9203f9fc605b8--
1514
+ ----==_mimepart_5798bfa476abe_90b53fd9e443f9ec2585--
1351
1515
 
1352
- Processing by PushType::ConfirmationsController#show as HTML
1353
- Parameters: {"confirmation_token"=>"zwC3ws4q8hMDYtEdw3Dx"}
1354
- 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", "zwC3ws4q8hMDYtEdw3Dx"], ["LIMIT", 1]]
1355
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1356
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.4ms)
1357
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (264.5ms)
1358
- Completed 200 OK in 281ms (Views: 274.3ms | ActiveRecord: 0.2ms)
1359
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1360
-  (0.1ms) ROLLBACK
1361
-  (0.1ms) BEGIN
1362
- ----------------------------------------------------------------------------------------------------
1363
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
1364
- ----------------------------------------------------------------------------------------------------
1365
-  (0.1ms) SAVEPOINT active_record_1
1366
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1367
-  (0.1ms) SAVEPOINT active_record_1
1516
+ Processing by PushType::UsersController#invite as HTML
1517
+ Parameters: {"id"=>"4a67a616-2b26-4215-88f6-33f9080fdab2"}
1518
+ 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", "7dcd919d-55bb-4267-8e29-a9b405cd326b"], ["LIMIT", 1]]
1519
+ 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", "4a67a616-2b26-4215-88f6-33f9080fdab2"], ["LIMIT", 1]]
1368
1520
   (0.1ms) SAVEPOINT active_record_2
1369
- 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]]
1370
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1371
- 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-9@example.com"], ["created_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "DxH7wbBoTHXsWFKumQdP"], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
1372
1521
   (0.1ms) RELEASE SAVEPOINT active_record_2
1373
1522
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1374
1523
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1375
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
1376
- Sent mail to joe-9@example.com (3.4ms)
1377
- Date: Mon, 25 Jul 2016 11:46:32 +0100
1524
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1525
+ Sent mail to joe-11@example.com (3.5ms)
1526
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
1378
1527
  From: pushtype@example.com
1379
1528
  Reply-To: pushtype@example.com
1380
- To: joe-9@example.com
1381
- Message-ID: <5795ee08438cb_142ce3fde9203f9fc609b1@Aarons-iMac.local.mail>
1529
+ To: joe-11@example.com
1530
+ Message-ID: <5798bfa480493_90b53fd9e443f9ec26252@Aarons-iMac.local.mail>
1382
1531
  Subject: [PushType] Confirm your account
1383
1532
  Mime-Version: 1.0
1384
1533
  Content-Type: multipart/alternative;
1385
- boundary="--==_mimepart_5795ee0843476_142ce3fde9203f9fc60848";
1534
+ boundary="--==_mimepart_5798bfa48003a_90b53fd9e443f9ec261e7";
1386
1535
  charset=UTF-8
1387
1536
  Content-Transfer-Encoding: 7bit
1388
1537
 
1389
1538
 
1390
- ----==_mimepart_5795ee0843476_142ce3fde9203f9fc60848
1539
+ ----==_mimepart_5798bfa48003a_90b53fd9e443f9ec261e7
1391
1540
  Content-Type: text/plain;
1392
1541
  charset=UTF-8
1393
1542
  Content-Transfer-Encoding: 7bit
@@ -1403,11 +1552,11 @@ To get started, confirm your account and set your own password by
1403
1552
  clicking the link below:
1404
1553
 
1405
1554
  Confirm my account
1406
- ( http://localhost:3000/push_type/confirmation?confirmation_token=DxH7wbBoTHXsWFKumQdP )
1555
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=WWjviN96tCydUH1-vcH3 )
1407
1556
 
1408
1557
 
1409
1558
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1410
- ----==_mimepart_5795ee0843476_142ce3fde9203f9fc60848
1559
+ ----==_mimepart_5798bfa48003a_90b53fd9e443f9ec261e7
1411
1560
  Content-Type: text/html;
1412
1561
  charset=UTF-8
1413
1562
  Content-Transfer-Encoding: 7bit
@@ -1453,7 +1602,7 @@ body {
1453
1602
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1454
1603
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1455
1604
  <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;">
1456
- <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/push_type/confirmation?confirmation_token=DxH7wbBoTHXsWFKumQdP" 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>
1605
+ <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/push_type/confirmation?confirmation_token=WWjviN96tCydUH1-vcH3" 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>
1457
1606
  </td>
1458
1607
  </tr>
1459
1608
  </table>
@@ -1498,47 +1647,47 @@ body {
1498
1647
  </body>
1499
1648
  </html>
1500
1649
 
1501
- ----==_mimepart_5795ee0843476_142ce3fde9203f9fc60848--
1650
+ ----==_mimepart_5798bfa48003a_90b53fd9e443f9ec261e7--
1502
1651
 
1503
- Processing by PushType::ConfirmationsController#show as HTML
1504
- Parameters: {"confirmation_token"=>"DxH7wbBoTHXsWFKumQdP"}
1505
- 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", "DxH7wbBoTHXsWFKumQdP"], ["LIMIT", 1]]
1506
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1507
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1508
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1509
- Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)
1652
+ Redirected to http://test.host/push_type/users
1653
+ Completed 302 Found in 38ms (ActiveRecord: 0.6ms)
1510
1654
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1511
1655
   (0.1ms) ROLLBACK
1512
1656
   (0.1ms) BEGIN
1513
- ----------------------------------------------------------------------------------------
1514
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
1515
- ----------------------------------------------------------------------------------------
1516
-  (0.1ms) SAVEPOINT active_record_1
1517
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1518
-  (0.1ms) SAVEPOINT active_record_1
1657
+ ---------------------------------------------------------------
1658
+ PushType::UsersControllerTest::PUT #invite: test_0003_anonymous
1659
+ ---------------------------------------------------------------
1660
+  (0.0ms) SAVEPOINT active_record_1
1661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1662
+  (0.0ms) SAVEPOINT active_record_1
1519
1663
   (0.1ms) SAVEPOINT active_record_2
1520
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1521
- 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]]
1522
- 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-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "AJdf1VQxC-PPtg6-Kc5s"], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
1664
+ 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]]
1665
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1666
+ 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-12@example.com"], ["created_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
1667
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1668
+  (0.1ms) SAVEPOINT active_record_2
1669
+ 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]]
1670
+ 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]]
1671
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "VgZjQ6gtka9yZc-_8c_Y"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
1523
1672
   (0.1ms) RELEASE SAVEPOINT active_record_2
1524
1673
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1525
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1526
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
1527
- Sent mail to joe-10@example.com (4.9ms)
1528
- Date: Mon, 25 Jul 2016 11:46:32 +0100
1674
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1675
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1676
+ Sent mail to joe-13@example.com (3.2ms)
1677
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
1529
1678
  From: pushtype@example.com
1530
1679
  Reply-To: pushtype@example.com
1531
- To: joe-10@example.com
1532
- Message-ID: <5795ee085013d_142ce3fde9203f9fc61241@Aarons-iMac.local.mail>
1680
+ To: joe-13@example.com
1681
+ Message-ID: <5798bfa48a9b5_90b53fd9e443f9ec26581@Aarons-iMac.local.mail>
1533
1682
  Subject: [PushType] Confirm your account
1534
1683
  Mime-Version: 1.0
1535
1684
  Content-Type: multipart/alternative;
1536
- boundary="--==_mimepart_5795ee084fa66_142ce3fde9203f9fc6118f";
1685
+ boundary="--==_mimepart_5798bfa48a5a9_90b53fd9e443f9ec26493";
1537
1686
  charset=UTF-8
1538
1687
  Content-Transfer-Encoding: 7bit
1539
1688
 
1540
1689
 
1541
- ----==_mimepart_5795ee084fa66_142ce3fde9203f9fc6118f
1690
+ ----==_mimepart_5798bfa48a5a9_90b53fd9e443f9ec26493
1542
1691
  Content-Type: text/plain;
1543
1692
  charset=UTF-8
1544
1693
  Content-Transfer-Encoding: 7bit
@@ -1554,11 +1703,11 @@ To get started, confirm your account and set your own password by
1554
1703
  clicking the link below:
1555
1704
 
1556
1705
  Confirm my account
1557
- ( http://localhost:3000/push_type/confirmation?confirmation_token=AJdf1VQxC-PPtg6-Kc5s )
1706
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=VgZjQ6gtka9yZc-_8c_Y )
1558
1707
 
1559
1708
 
1560
1709
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1561
- ----==_mimepart_5795ee084fa66_142ce3fde9203f9fc6118f
1710
+ ----==_mimepart_5798bfa48a5a9_90b53fd9e443f9ec26493
1562
1711
  Content-Type: text/html;
1563
1712
  charset=UTF-8
1564
1713
  Content-Transfer-Encoding: 7bit
@@ -1604,7 +1753,7 @@ body {
1604
1753
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1605
1754
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1606
1755
  <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;">
1607
- <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/push_type/confirmation?confirmation_token=AJdf1VQxC-PPtg6-Kc5s" 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>
1756
+ <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/push_type/confirmation?confirmation_token=VgZjQ6gtka9yZc-_8c_Y" 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>
1608
1757
  </td>
1609
1758
  </tr>
1610
1759
  </table>
@@ -1649,53 +1798,32 @@ body {
1649
1798
  </body>
1650
1799
  </html>
1651
1800
 
1652
- ----==_mimepart_5795ee084fa66_142ce3fde9203f9fc6118f--
1801
+ ----==_mimepart_5798bfa48a5a9_90b53fd9e443f9ec26493--
1653
1802
 
1654
- Processing by PushType::ConfirmationsController#update as HTML
1655
- Parameters: {"user"=>{"confirmation_token"=>"AJdf1VQxC-PPtg6-Kc5s", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1656
- 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", "AJdf1VQxC-PPtg6-Kc5s"], ["LIMIT", 1]]
1657
- PushType::User Exists (0.4ms) 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", "22dbe88b-faa0-4c4b-b34b-4e122f049e3b"], ["LIMIT", 1]]
1658
-  (0.1ms) SAVEPOINT active_record_2
1659
- 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$ycjQoybdkbhTP4CTK00pIOdCrCgYbCCbeXhrr0wkDfJ7RHZHlfvEC"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["id", "22dbe88b-faa0-4c4b-b34b-4e122f049e3b"]]
1660
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1661
-  (0.1ms) SAVEPOINT active_record_2
1662
- SQL (0.3ms) 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-07-25 10:46:32 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-07-25 10:46:32 UTC], ["last_sign_in_at", 2016-07-25 10:46:32 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "22dbe88b-faa0-4c4b-b34b-4e122f049e3b"]]
1663
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1664
- Redirected to http://test.host/push_type/
1665
- Completed 302 Found in 12ms (ActiveRecord: 1.6ms)
1666
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "22dbe88b-faa0-4c4b-b34b-4e122f049e3b"], ["LIMIT", 1]]
1667
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1668
-  (0.1ms) ROLLBACK
1669
-  (0.1ms) BEGIN
1670
- ----------------------------------------------------------------------------------------
1671
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
1672
- ----------------------------------------------------------------------------------------
1673
-  (0.1ms) SAVEPOINT active_record_1
1674
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1675
-  (0.0ms) SAVEPOINT active_record_1
1803
+ Processing by PushType::UsersController#invite as HTML
1804
+ Parameters: {"id"=>"eebb7ffd-ab45-4f87-88d8-5d0ff438a22e"}
1805
+ 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", "93837e03-3ce7-4005-9124-d44340b8e4a7"], ["LIMIT", 1]]
1806
+ 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", "eebb7ffd-ab45-4f87-88d8-5d0ff438a22e"], ["LIMIT", 1]]
1676
1807
   (0.1ms) SAVEPOINT active_record_2
1677
- 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]]
1678
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1679
- 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-11@example.com"], ["created_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "AbB1CE98nac6ML-9fxEp"], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
1680
1808
   (0.1ms) RELEASE SAVEPOINT active_record_2
1681
1809
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1682
1810
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1683
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
1684
- Sent mail to joe-11@example.com (4.8ms)
1685
- Date: Mon, 25 Jul 2016 11:46:32 +0100
1811
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
1812
+ Sent mail to joe-13@example.com (3.4ms)
1813
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
1686
1814
  From: pushtype@example.com
1687
1815
  Reply-To: pushtype@example.com
1688
- To: joe-11@example.com
1689
- Message-ID: <5795ee085e73c_142ce3fde9203f9fc615a2@Aarons-iMac.local.mail>
1816
+ To: joe-13@example.com
1817
+ Message-ID: <5798bfa493f14_90b53fd9e443f9ec2689@Aarons-iMac.local.mail>
1690
1818
  Subject: [PushType] Confirm your account
1691
1819
  Mime-Version: 1.0
1692
1820
  Content-Type: multipart/alternative;
1693
- boundary="--==_mimepart_5795ee085e2e4_142ce3fde9203f9fc61425";
1821
+ boundary="--==_mimepart_5798bfa493ad8_90b53fd9e443f9ec267c2";
1694
1822
  charset=UTF-8
1695
1823
  Content-Transfer-Encoding: 7bit
1696
1824
 
1697
1825
 
1698
- ----==_mimepart_5795ee085e2e4_142ce3fde9203f9fc61425
1826
+ ----==_mimepart_5798bfa493ad8_90b53fd9e443f9ec267c2
1699
1827
  Content-Type: text/plain;
1700
1828
  charset=UTF-8
1701
1829
  Content-Transfer-Encoding: 7bit
@@ -1711,11 +1839,11 @@ To get started, confirm your account and set your own password by
1711
1839
  clicking the link below:
1712
1840
 
1713
1841
  Confirm my account
1714
- ( http://localhost:3000/push_type/confirmation?confirmation_token=AbB1CE98nac6ML-9fxEp )
1842
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=VgZjQ6gtka9yZc-_8c_Y )
1715
1843
 
1716
1844
 
1717
1845
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1718
- ----==_mimepart_5795ee085e2e4_142ce3fde9203f9fc61425
1846
+ ----==_mimepart_5798bfa493ad8_90b53fd9e443f9ec267c2
1719
1847
  Content-Type: text/html;
1720
1848
  charset=UTF-8
1721
1849
  Content-Transfer-Encoding: 7bit
@@ -1761,7 +1889,7 @@ body {
1761
1889
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1762
1890
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1763
1891
  <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;">
1764
- <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/push_type/confirmation?confirmation_token=AbB1CE98nac6ML-9fxEp" 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>
1892
+ <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/push_type/confirmation?confirmation_token=VgZjQ6gtka9yZc-_8c_Y" 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>
1765
1893
  </td>
1766
1894
  </tr>
1767
1895
  </table>
@@ -1806,52 +1934,47 @@ body {
1806
1934
  </body>
1807
1935
  </html>
1808
1936
 
1809
- ----==_mimepart_5795ee085e2e4_142ce3fde9203f9fc61425--
1937
+ ----==_mimepart_5798bfa493ad8_90b53fd9e443f9ec267c2--
1810
1938
 
1811
- Processing by PushType::ConfirmationsController#update as HTML
1812
- Parameters: {"user"=>{"confirmation_token"=>"AbB1CE98nac6ML-9fxEp", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1813
- 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", "AbB1CE98nac6ML-9fxEp"], ["LIMIT", 1]]
1814
- 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", "88f5ee33-ad0a-4292-90f2-2e2e4d469524"], ["LIMIT", 1]]
1815
-  (0.1ms) SAVEPOINT active_record_2
1816
- 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$o8rBe1/vwmI9tl3ZHCGFcuBkxfhPNgi5qQ79PG.3PgHqDU5XV1kj."], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["id", "88f5ee33-ad0a-4292-90f2-2e2e4d469524"]]
1817
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1818
-  (0.1ms) SAVEPOINT active_record_2
1819
- 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-07-25 10:46:32 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-07-25 10:46:32 UTC], ["last_sign_in_at", 2016-07-25 10:46:32 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "88f5ee33-ad0a-4292-90f2-2e2e4d469524"]]
1820
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1821
- Redirected to http://test.host/push_type/
1822
- Completed 302 Found in 8ms (ActiveRecord: 1.3ms)
1823
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1939
+ Redirected to http://test.host/push_type/users
1940
+ Completed 302 Found in 38ms (ActiveRecord: 0.6ms)
1941
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1824
1942
   (0.1ms) ROLLBACK
1825
1943
   (0.1ms) BEGIN
1826
- --------------------------------------------------------------------------------------------------------------
1827
- PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
1828
- --------------------------------------------------------------------------------------------------------------
1944
+ ---------------------------------------------------------------
1945
+ PushType::UsersControllerTest::PUT #invite: test_0001_anonymous
1946
+ ---------------------------------------------------------------
1829
1947
   (0.1ms) SAVEPOINT active_record_1
1830
1948
   (0.0ms) RELEASE SAVEPOINT active_record_1
1831
-  (0.0ms) SAVEPOINT active_record_1
1949
+  (0.1ms) SAVEPOINT active_record_1
1832
1950
   (0.1ms) SAVEPOINT active_record_2
1833
- 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]]
1834
- 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]]
1835
- 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-12@example.com"], ["created_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "a_dXWutPs5TaxgAiMiwH"], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
1951
+ 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]]
1952
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
1953
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
1954
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1955
+  (0.1ms) SAVEPOINT active_record_2
1956
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1957
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1958
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "AzH5VWgYSz-uH1SC9ypU"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
1836
1959
   (0.1ms) RELEASE SAVEPOINT active_record_2
1837
1960
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1838
1961
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1839
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
1840
- Sent mail to joe-12@example.com (3.6ms)
1841
- Date: Mon, 25 Jul 2016 11:46:32 +0100
1962
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1963
+ Sent mail to joe-15@example.com (3.5ms)
1964
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
1842
1965
  From: pushtype@example.com
1843
1966
  Reply-To: pushtype@example.com
1844
- To: joe-12@example.com
1845
- Message-ID: <5795ee086b625_142ce3fde9203f9fc618ca@Aarons-iMac.local.mail>
1967
+ To: joe-15@example.com
1968
+ Message-ID: <5798bfa49ea38_90b53fd9e443f9ec27178@Aarons-iMac.local.mail>
1846
1969
  Subject: [PushType] Confirm your account
1847
1970
  Mime-Version: 1.0
1848
1971
  Content-Type: multipart/alternative;
1849
- boundary="--==_mimepart_5795ee086b13f_142ce3fde9203f9fc617fb";
1972
+ boundary="--==_mimepart_5798bfa49e5a2_90b53fd9e443f9ec2702e";
1850
1973
  charset=UTF-8
1851
1974
  Content-Transfer-Encoding: 7bit
1852
1975
 
1853
1976
 
1854
- ----==_mimepart_5795ee086b13f_142ce3fde9203f9fc617fb
1977
+ ----==_mimepart_5798bfa49e5a2_90b53fd9e443f9ec2702e
1855
1978
  Content-Type: text/plain;
1856
1979
  charset=UTF-8
1857
1980
  Content-Transfer-Encoding: 7bit
@@ -1867,11 +1990,11 @@ To get started, confirm your account and set your own password by
1867
1990
  clicking the link below:
1868
1991
 
1869
1992
  Confirm my account
1870
- ( http://localhost:3000/push_type/confirmation?confirmation_token=a_dXWutPs5TaxgAiMiwH )
1993
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=AzH5VWgYSz-uH1SC9ypU )
1871
1994
 
1872
1995
 
1873
1996
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1874
- ----==_mimepart_5795ee086b13f_142ce3fde9203f9fc617fb
1997
+ ----==_mimepart_5798bfa49e5a2_90b53fd9e443f9ec2702e
1875
1998
  Content-Type: text/html;
1876
1999
  charset=UTF-8
1877
2000
  Content-Transfer-Encoding: 7bit
@@ -1917,7 +2040,7 @@ body {
1917
2040
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
1918
2041
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1919
2042
  <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;">
1920
- <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/push_type/confirmation?confirmation_token=a_dXWutPs5TaxgAiMiwH" 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>
2043
+ <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/push_type/confirmation?confirmation_token=AzH5VWgYSz-uH1SC9ypU" 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>
1921
2044
  </td>
1922
2045
  </tr>
1923
2046
  </table>
@@ -1962,192 +2085,32 @@ body {
1962
2085
  </body>
1963
2086
  </html>
1964
2087
 
1965
- ----==_mimepart_5795ee086b13f_142ce3fde9203f9fc617fb--
2088
+ ----==_mimepart_5798bfa49e5a2_90b53fd9e443f9ec2702e--
1966
2089
 
1967
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1968
-  (0.1ms) ROLLBACK
1969
-  (0.1ms) BEGIN
1970
- -------------------------------------------------------------------------------------
1971
- PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
1972
- -------------------------------------------------------------------------------------
1973
-  (0.1ms) SAVEPOINT active_record_1
1974
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1975
-  (0.0ms) SAVEPOINT active_record_1
1976
-  (0.1ms) SAVEPOINT active_record_2
1977
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
1978
- 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]]
1979
- 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-13@example.com"], ["created_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
1980
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1981
- Processing by PushType::ProfilesController#update as HTML
1982
- Parameters: {"user"=>{"name"=>""}}
1983
- 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", "0634998b-6592-4b37-b27e-49baf04a2268"], ["LIMIT", 1]]
1984
-  (0.1ms) SAVEPOINT active_record_2
1985
- 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-13@example.com"], ["id", "0634998b-6592-4b37-b27e-49baf04a2268"], ["LIMIT", 1]]
1986
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1987
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin
1988
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (6.4ms)
1989
- Completed 200 OK in 25ms (Views: 20.5ms | ActiveRecord: 0.7ms)
1990
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1991
-  (0.1ms) ROLLBACK
1992
-  (0.1ms) BEGIN
1993
- -------------------------------------------------------------------------------------
1994
- PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
1995
- -------------------------------------------------------------------------------------
1996
-  (0.1ms) SAVEPOINT active_record_1
1997
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1998
-  (0.1ms) SAVEPOINT active_record_1
1999
-  (0.1ms) SAVEPOINT active_record_2
2000
- 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]]
2001
- 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]]
2002
- 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-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2003
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2004
- Processing by PushType::ProfilesController#update as HTML
2005
- Parameters: {"user"=>{"name"=>""}}
2006
- 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", "92bc1692-d41a-4bbf-b1ce-fc466200731d"], ["LIMIT", 1]]
2007
-  (0.1ms) SAVEPOINT active_record_2
2008
- 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", "92bc1692-d41a-4bbf-b1ce-fc466200731d"], ["LIMIT", 1]]
2009
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
2010
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin
2011
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.7ms)
2012
- Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.5ms)
2013
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2014
-  (0.1ms) ROLLBACK
2015
-  (0.1ms) BEGIN
2016
- ------------------------------------------------------------------------------------------------------
2017
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
2018
- ------------------------------------------------------------------------------------------------------
2019
-  (0.1ms) SAVEPOINT active_record_1
2020
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2021
-  (0.0ms) SAVEPOINT active_record_1
2022
- Processing by PushType::ConfirmationsController#show as HTML
2023
- Parameters: {"confirmation_token"=>"invalid"}
2024
- 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]]
2025
- 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]]
2026
- 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", "4a5945a6f29b843da9845481e49d2521932f5436c50528654ad90bbbb92d60b8"], ["LIMIT", 1]]
2027
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
2028
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.4ms)
2029
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (3.3ms)
2030
- Completed 200 OK in 236ms (Views: 10.0ms | ActiveRecord: 0.6ms)
2031
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2032
-  (0.1ms) ROLLBACK
2033
-  (0.1ms) BEGIN
2034
- ------------------------------------------------------------------------------------------------------
2035
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
2036
- ------------------------------------------------------------------------------------------------------
2037
-  (0.1ms) SAVEPOINT active_record_1
2038
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2039
-  (0.1ms) SAVEPOINT active_record_1
2040
- Processing by PushType::ConfirmationsController#show as HTML
2041
- Parameters: {"confirmation_token"=>"invalid"}
2042
- 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]]
2043
- 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]]
2044
- 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", "4a5945a6f29b843da9845481e49d2521932f5436c50528654ad90bbbb92d60b8"], ["LIMIT", 1]]
2045
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
2046
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2047
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.3ms)
2048
- Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.3ms)
2049
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2050
-  (0.1ms) ROLLBACK
2051
-  (0.0ms) BEGIN
2052
- -----------------------------------------------------------------------------------
2053
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
2054
- -----------------------------------------------------------------------------------
2055
-  (0.0ms) SAVEPOINT active_record_1
2056
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2057
-  (0.0ms) SAVEPOINT active_record_1
2058
-  (0.1ms) SAVEPOINT active_record_2
2059
- 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]]
2060
- 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]]
2061
- 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-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2062
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2063
- Processing by PushType::ProfilesController#update as HTML
2064
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2065
- 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", "a4b27367-0909-41dd-90bc-28464868015e"], ["LIMIT", 1]]
2066
-  (0.1ms) SAVEPOINT active_record_2
2067
- 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-15@example.com"], ["id", "a4b27367-0909-41dd-90bc-28464868015e"], ["LIMIT", 1]]
2068
- 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-07-25 10:46:32 UTC], ["id", "a4b27367-0909-41dd-90bc-28464868015e"]]
2069
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2070
- Redirected to http://test.host/push_type/profile/edit
2071
- Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
2072
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2073
-  (0.1ms) ROLLBACK
2074
-  (0.1ms) BEGIN
2075
- -----------------------------------------------------------------------------------
2076
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
2077
- -----------------------------------------------------------------------------------
2078
-  (0.1ms) SAVEPOINT active_record_1
2079
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2080
-  (0.1ms) SAVEPOINT active_record_1
2081
-  (0.1ms) SAVEPOINT active_record_2
2082
- 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]]
2083
- 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]]
2084
- 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-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2085
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2086
- Processing by PushType::ProfilesController#update as HTML
2087
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2088
- 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", "4d28cd8d-bf5f-4b61-8f93-cc14ec84ba3e"], ["LIMIT", 1]]
2089
-  (0.1ms) SAVEPOINT active_record_2
2090
- 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-16@example.com"], ["id", "4d28cd8d-bf5f-4b61-8f93-cc14ec84ba3e"], ["LIMIT", 1]]
2091
- 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-07-25 10:46:32 UTC], ["id", "4d28cd8d-bf5f-4b61-8f93-cc14ec84ba3e"]]
2092
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2093
- Redirected to http://test.host/push_type/profile/edit
2094
- Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
2095
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "4d28cd8d-bf5f-4b61-8f93-cc14ec84ba3e"], ["LIMIT", 1]]
2096
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2097
-  (0.1ms) ROLLBACK
2098
-  (0.1ms) BEGIN
2099
- -----------------------------------------------------------------------------------
2100
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
2101
- -----------------------------------------------------------------------------------
2102
-  (0.1ms) SAVEPOINT active_record_1
2103
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2104
-  (0.0ms) SAVEPOINT active_record_1
2105
-  (0.1ms) SAVEPOINT active_record_2
2106
- 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]]
2107
- 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]]
2108
- 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-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2109
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2110
- Processing by PushType::ProfilesController#update as HTML
2111
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2112
- 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", "e25d4029-ecb9-4b99-bf64-e69e98456154"], ["LIMIT", 1]]
2113
-  (0.1ms) SAVEPOINT active_record_2
2114
- 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", "e25d4029-ecb9-4b99-bf64-e69e98456154"], ["LIMIT", 1]]
2115
- 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-07-25 10:46:32 UTC], ["id", "e25d4029-ecb9-4b99-bf64-e69e98456154"]]
2116
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2117
- Redirected to http://test.host/push_type/profile/edit
2118
- Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2119
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2120
-  (0.1ms) ROLLBACK
2121
-  (0.1ms) BEGIN
2122
- ------------------------------------------------------------------------------------------
2123
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
2124
- ------------------------------------------------------------------------------------------
2125
-  (0.0ms) SAVEPOINT active_record_1
2126
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2127
-  (0.0ms) SAVEPOINT active_record_1
2090
+ Processing by PushType::UsersController#invite as HTML
2091
+ Parameters: {"id"=>"0859bdb5-cc6e-4e62-b5f5-8945cdc055ad"}
2092
+ 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", "dcda10ec-395d-48bd-8ab9-bdb53f3478a0"], ["LIMIT", 1]]
2093
+ 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", "0859bdb5-cc6e-4e62-b5f5-8945cdc055ad"], ["LIMIT", 1]]
2128
2094
   (0.1ms) SAVEPOINT active_record_2
2129
- 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]]
2130
- 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]]
2131
- 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-18@example.com"], ["created_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "_gkGABdfLXx6rbo49CcW"], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2132
2095
   (0.1ms) RELEASE SAVEPOINT active_record_2
2133
2096
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2134
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2135
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
2136
- Sent mail to joe-18@example.com (3.8ms)
2137
- Date: Mon, 25 Jul 2016 11:46:32 +0100
2097
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2098
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
2099
+ Sent mail to joe-15@example.com (3.3ms)
2100
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
2138
2101
  From: pushtype@example.com
2139
2102
  Reply-To: pushtype@example.com
2140
- To: joe-18@example.com
2141
- Message-ID: <5795ee08c83eb_142ce3fde9203f9fc621a@Aarons-iMac.local.mail>
2103
+ To: joe-15@example.com
2104
+ Message-ID: <5798bfa4a84ce_90b53fd9e443f9ec27423@Aarons-iMac.local.mail>
2142
2105
  Subject: [PushType] Confirm your account
2143
2106
  Mime-Version: 1.0
2144
2107
  Content-Type: multipart/alternative;
2145
- boundary="--==_mimepart_5795ee08c7f9f_142ce3fde9203f9fc620a0";
2108
+ boundary="--==_mimepart_5798bfa4a808d_90b53fd9e443f9ec273bb";
2146
2109
  charset=UTF-8
2147
2110
  Content-Transfer-Encoding: 7bit
2148
2111
 
2149
2112
 
2150
- ----==_mimepart_5795ee08c7f9f_142ce3fde9203f9fc620a0
2113
+ ----==_mimepart_5798bfa4a808d_90b53fd9e443f9ec273bb
2151
2114
  Content-Type: text/plain;
2152
2115
  charset=UTF-8
2153
2116
  Content-Transfer-Encoding: 7bit
@@ -2163,11 +2126,11 @@ To get started, confirm your account and set your own password by
2163
2126
  clicking the link below:
2164
2127
 
2165
2128
  Confirm my account
2166
- ( http://localhost:3000/push_type/confirmation?confirmation_token=_gkGABdfLXx6rbo49CcW )
2129
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=AzH5VWgYSz-uH1SC9ypU )
2167
2130
 
2168
2131
 
2169
2132
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2170
- ----==_mimepart_5795ee08c7f9f_142ce3fde9203f9fc620a0
2133
+ ----==_mimepart_5798bfa4a808d_90b53fd9e443f9ec273bb
2171
2134
  Content-Type: text/html;
2172
2135
  charset=UTF-8
2173
2136
  Content-Transfer-Encoding: 7bit
@@ -2213,7 +2176,7 @@ body {
2213
2176
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
2214
2177
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2215
2178
  <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;">
2216
- <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/push_type/confirmation?confirmation_token=_gkGABdfLXx6rbo49CcW" 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>
2179
+ <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/push_type/confirmation?confirmation_token=AzH5VWgYSz-uH1SC9ypU" 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>
2217
2180
  </td>
2218
2181
  </tr>
2219
2182
  </table>
@@ -2258,48 +2221,42 @@ body {
2258
2221
  </body>
2259
2222
  </html>
2260
2223
 
2261
- ----==_mimepart_5795ee08c7f9f_142ce3fde9203f9fc620a0--
2224
+ ----==_mimepart_5798bfa4a808d_90b53fd9e443f9ec273bb--
2262
2225
 
2263
- Processing by PushType::ConfirmationsController#update as HTML
2264
- Parameters: {"user"=>{"confirmation_token"=>"_gkGABdfLXx6rbo49CcW", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2265
- 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", "_gkGABdfLXx6rbo49CcW"], ["LIMIT", 1]]
2266
- 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", "c59210c8-a9a4-4599-b248-d278ef55b9e1"], ["LIMIT", 1]]
2267
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2268
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2269
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (2.4ms)
2270
- Completed 200 OK in 18ms (Views: 15.1ms | ActiveRecord: 0.4ms)
2271
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
2226
+ Redirected to http://test.host/push_type/users
2227
+ Completed 302 Found in 39ms (ActiveRecord: 0.4ms)
2228
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2272
2229
   (0.1ms) ROLLBACK
2273
-  (0.1ms) BEGIN
2274
- ------------------------------------------------------------------------------------------
2275
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
2276
- ------------------------------------------------------------------------------------------
2230
+  (0.0ms) BEGIN
2231
+ ----------------------------------------------------------------------------------------
2232
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
2233
+ ----------------------------------------------------------------------------------------
2277
2234
   (0.0ms) SAVEPOINT active_record_1
2278
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2279
2236
   (0.0ms) SAVEPOINT active_record_1
2280
2237
   (0.1ms) SAVEPOINT active_record_2
2281
- 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]]
2282
- 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]]
2283
- 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-19@example.com"], ["created_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "e2HBBGnm5bWpicdvm4AY"], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2238
+ 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]]
2239
+ 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]]
2240
+ 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-16@example.com"], ["created_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "wZstLfpGabe3yFjQsodM"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
2284
2241
   (0.1ms) RELEASE SAVEPOINT active_record_2
2285
2242
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2286
2243
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2287
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
2288
- Sent mail to joe-19@example.com (3.6ms)
2289
- Date: Mon, 25 Jul 2016 11:46:32 +0100
2244
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
2245
+ Sent mail to joe-16@example.com (3.4ms)
2246
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
2290
2247
  From: pushtype@example.com
2291
2248
  Reply-To: pushtype@example.com
2292
- To: joe-19@example.com
2293
- Message-ID: <5795ee08d7f44_142ce3fde9203f9fc6248c@Aarons-iMac.local.mail>
2249
+ To: joe-16@example.com
2250
+ Message-ID: <5798bfa4b1954_90b53fd9e443f9ec27745@Aarons-iMac.local.mail>
2294
2251
  Subject: [PushType] Confirm your account
2295
2252
  Mime-Version: 1.0
2296
2253
  Content-Type: multipart/alternative;
2297
- boundary="--==_mimepart_5795ee08d7af5_142ce3fde9203f9fc6238f";
2254
+ boundary="--==_mimepart_5798bfa4b154f_90b53fd9e443f9ec27657";
2298
2255
  charset=UTF-8
2299
2256
  Content-Transfer-Encoding: 7bit
2300
2257
 
2301
2258
 
2302
- ----==_mimepart_5795ee08d7af5_142ce3fde9203f9fc6238f
2259
+ ----==_mimepart_5798bfa4b154f_90b53fd9e443f9ec27657
2303
2260
  Content-Type: text/plain;
2304
2261
  charset=UTF-8
2305
2262
  Content-Transfer-Encoding: 7bit
@@ -2315,11 +2272,11 @@ To get started, confirm your account and set your own password by
2315
2272
  clicking the link below:
2316
2273
 
2317
2274
  Confirm my account
2318
- ( http://localhost:3000/push_type/confirmation?confirmation_token=e2HBBGnm5bWpicdvm4AY )
2275
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=wZstLfpGabe3yFjQsodM )
2319
2276
 
2320
2277
 
2321
2278
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2322
- ----==_mimepart_5795ee08d7af5_142ce3fde9203f9fc6238f
2279
+ ----==_mimepart_5798bfa4b154f_90b53fd9e443f9ec27657
2323
2280
  Content-Type: text/html;
2324
2281
  charset=UTF-8
2325
2282
  Content-Transfer-Encoding: 7bit
@@ -2365,7 +2322,7 @@ body {
2365
2322
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
2366
2323
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2367
2324
  <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;">
2368
- <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/push_type/confirmation?confirmation_token=e2HBBGnm5bWpicdvm4AY" 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>
2325
+ <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/push_type/confirmation?confirmation_token=wZstLfpGabe3yFjQsodM" 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>
2369
2326
  </td>
2370
2327
  </tr>
2371
2328
  </table>
@@ -2410,48 +2367,53 @@ body {
2410
2367
  </body>
2411
2368
  </html>
2412
2369
 
2413
- ----==_mimepart_5795ee08d7af5_142ce3fde9203f9fc6238f--
2370
+ ----==_mimepart_5798bfa4b154f_90b53fd9e443f9ec27657--
2414
2371
 
2415
2372
  Processing by PushType::ConfirmationsController#update as HTML
2416
- Parameters: {"user"=>{"confirmation_token"=>"e2HBBGnm5bWpicdvm4AY", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2417
- 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", "e2HBBGnm5bWpicdvm4AY"], ["LIMIT", 1]]
2418
- 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", "ce3f3f12-f291-4f49-96b8-d43d39fb6ea7"], ["LIMIT", 1]]
2419
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2420
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2421
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.8ms)
2422
- Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.4ms)
2373
+ Parameters: {"user"=>{"confirmation_token"=>"wZstLfpGabe3yFjQsodM", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2374
+ 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", "wZstLfpGabe3yFjQsodM"], ["LIMIT", 1]]
2375
+ 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-16@example.com"], ["id", "57c703fb-b278-4785-9a1f-12ddbdad53e6"], ["LIMIT", 1]]
2376
+  (0.1ms) SAVEPOINT active_record_2
2377
+ 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$cPNaBn2sUkrp2jYM3.YD9OOxqizfnXPZ4i9SK0oBN7zZ0HQLZJC1C"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["id", "57c703fb-b278-4785-9a1f-12ddbdad53e6"]]
2378
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2379
+  (0.1ms) SAVEPOINT active_record_2
2380
+ 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-07-27 14:05:24 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-07-27 14:05:24 UTC], ["last_sign_in_at", 2016-07-27 14:05:24 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "57c703fb-b278-4785-9a1f-12ddbdad53e6"]]
2381
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2382
+ Redirected to http://test.host/push_type/
2383
+ Completed 302 Found in 8ms (ActiveRecord: 1.2ms)
2384
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "57c703fb-b278-4785-9a1f-12ddbdad53e6"], ["LIMIT", 1]]
2423
2385
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2424
2386
   (0.1ms) ROLLBACK
2425
2387
   (0.1ms) BEGIN
2426
- ------------------------------------------------------------------------------------------
2427
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
2428
- ------------------------------------------------------------------------------------------
2429
-  (0.1ms) SAVEPOINT active_record_1
2430
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2388
+ ----------------------------------------------------------------------------------------
2389
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
2390
+ ----------------------------------------------------------------------------------------
2431
2391
   (0.0ms) SAVEPOINT active_record_1
2432
-  (0.0ms) SAVEPOINT active_record_2
2433
- 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]]
2434
- 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]]
2435
- 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-20@example.com"], ["created_at", 2016-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "LA9MdQ-Ugcd8Po9qEJZY"], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2393
+  (0.0ms) SAVEPOINT active_record_1
2394
+  (0.1ms) SAVEPOINT active_record_2
2395
+ 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]]
2396
+ 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]]
2397
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "tDytBsksX55fn73dTnnN"], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
2436
2398
   (0.1ms) RELEASE SAVEPOINT active_record_2
2437
2399
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2438
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
2439
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
2440
- Sent mail to joe-20@example.com (4.0ms)
2441
- Date: Mon, 25 Jul 2016 11:46:32 +0100
2400
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2401
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
2402
+ Sent mail to joe-17@example.com (3.4ms)
2403
+ Date: Wed, 27 Jul 2016 15:05:24 +0100
2442
2404
  From: pushtype@example.com
2443
2405
  Reply-To: pushtype@example.com
2444
- To: joe-20@example.com
2445
- Message-ID: <5795ee08e5c7b_142ce3fde9203f9fc627ee@Aarons-iMac.local.mail>
2406
+ To: joe-17@example.com
2407
+ Message-ID: <5798bfa4bcea6_90b53fd9e443f9ec28036@Aarons-iMac.local.mail>
2446
2408
  Subject: [PushType] Confirm your account
2447
2409
  Mime-Version: 1.0
2448
2410
  Content-Type: multipart/alternative;
2449
- boundary="--==_mimepart_5795ee08e56e0_142ce3fde9203f9fc62683";
2411
+ boundary="--==_mimepart_5798bfa4bca99_90b53fd9e443f9ec279d";
2450
2412
  charset=UTF-8
2451
2413
  Content-Transfer-Encoding: 7bit
2452
2414
 
2453
2415
 
2454
- ----==_mimepart_5795ee08e56e0_142ce3fde9203f9fc62683
2416
+ ----==_mimepart_5798bfa4bca99_90b53fd9e443f9ec279d
2455
2417
  Content-Type: text/plain;
2456
2418
  charset=UTF-8
2457
2419
  Content-Transfer-Encoding: 7bit
@@ -2467,11 +2429,11 @@ To get started, confirm your account and set your own password by
2467
2429
  clicking the link below:
2468
2430
 
2469
2431
  Confirm my account
2470
- ( http://localhost:3000/push_type/confirmation?confirmation_token=LA9MdQ-Ugcd8Po9qEJZY )
2432
+ ( http://localhost:3000/push_type/confirmation?confirmation_token=tDytBsksX55fn73dTnnN )
2471
2433
 
2472
2434
 
2473
2435
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2474
- ----==_mimepart_5795ee08e56e0_142ce3fde9203f9fc62683
2436
+ ----==_mimepart_5798bfa4bca99_90b53fd9e443f9ec279d
2475
2437
  Content-Type: text/html;
2476
2438
  charset=UTF-8
2477
2439
  Content-Transfer-Encoding: 7bit
@@ -2517,7 +2479,7 @@ body {
2517
2479
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%;">
2518
2480
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2519
2481
  <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;">
2520
- <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/push_type/confirmation?confirmation_token=LA9MdQ-Ugcd8Po9qEJZY" 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>
2482
+ <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/push_type/confirmation?confirmation_token=tDytBsksX55fn73dTnnN" 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>
2521
2483
  </td>
2522
2484
  </tr>
2523
2485
  </table>
@@ -2562,107 +2524,145 @@ body {
2562
2524
  </body>
2563
2525
  </html>
2564
2526
 
2565
- ----==_mimepart_5795ee08e56e0_142ce3fde9203f9fc62683--
2527
+ ----==_mimepart_5798bfa4bca99_90b53fd9e443f9ec279d--
2566
2528
 
2567
2529
  Processing by PushType::ConfirmationsController#update as HTML
2568
- Parameters: {"user"=>{"confirmation_token"=>"LA9MdQ-Ugcd8Po9qEJZY", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2569
- 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", "LA9MdQ-Ugcd8Po9qEJZY"], ["LIMIT", 1]]
2570
- 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-20@example.com"], ["id", "e25fb999-cd81-4348-ae26-64f991b55b5d"], ["LIMIT", 1]]
2571
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2572
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2573
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
2574
- Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.4ms)
2530
+ Parameters: {"user"=>{"confirmation_token"=>"tDytBsksX55fn73dTnnN", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2531
+ 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", "tDytBsksX55fn73dTnnN"], ["LIMIT", 1]]
2532
+ 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", "87f614f4-b1fd-4639-8f2f-5ab3d9237b94"], ["LIMIT", 1]]
2533
+  (0.1ms) SAVEPOINT active_record_2
2534
+ 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$DIE3XBVngc.pd1jQxgTYPObjeugv8WNnGejF7ydPmmUBcSvL8jDru"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["id", "87f614f4-b1fd-4639-8f2f-5ab3d9237b94"]]
2535
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2536
+  (0.1ms) SAVEPOINT active_record_2
2537
+ 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-07-27 14:05:24 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2016-07-27 14:05:24 UTC], ["last_sign_in_at", 2016-07-27 14:05:24 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "87f614f4-b1fd-4639-8f2f-5ab3d9237b94"]]
2538
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2539
+ Redirected to http://test.host/push_type/
2540
+ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
2575
2541
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2576
2542
   (0.1ms) ROLLBACK
2577
2543
   (0.1ms) BEGIN
2578
- ---------------------------------------------------------------
2579
- PushType::AuthenticatableTest::validatable: test_0001_anonymous
2580
- ---------------------------------------------------------------
2581
-  (0.1ms) SAVEPOINT active_record_1
2582
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2544
+ --------------------------------------------------------
2545
+ PushType::AuthenticationMethodsTest: test_0002_anonymous
2546
+ --------------------------------------------------------
2583
2547
   (0.0ms) SAVEPOINT active_record_1
2584
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2585
-  (0.1ms) ROLLBACK
2586
-  (0.1ms) BEGIN
2587
- ---------------------------------------------------------------
2588
- PushType::AuthenticatableTest::validatable: test_0002_anonymous
2589
- ---------------------------------------------------------------
2590
-  (0.1ms) SAVEPOINT active_record_1
2591
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2592
-  (0.1ms) SAVEPOINT active_record_1
2593
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2549
+  (0.0ms) SAVEPOINT active_record_1
2550
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2594
2551
   (0.0ms) ROLLBACK
2595
2552
   (0.1ms) BEGIN
2553
+ --------------------------------------------------------
2554
+ PushType::AuthenticationMethodsTest: test_0001_anonymous
2555
+ --------------------------------------------------------
2556
+  (0.0ms) SAVEPOINT active_record_1
2557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2558
+  (0.0ms) SAVEPOINT active_record_1
2559
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2560
+  (0.0ms) ROLLBACK
2561
+  (0.0ms) BEGIN
2596
2562
  ----------------------------------------------------------------
2597
2563
  PushType::ProfilesControllerTest::GET #edit: test_0001_anonymous
2598
2564
  ----------------------------------------------------------------
2599
-  (0.1ms) SAVEPOINT active_record_1
2600
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2601
-  (0.1ms) SAVEPOINT active_record_1
2565
+  (0.0ms) SAVEPOINT active_record_1
2566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2567
+  (0.0ms) SAVEPOINT active_record_1
2602
2568
   (0.1ms) SAVEPOINT active_record_2
2603
- 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]]
2604
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2605
- 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-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2569
+ 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]]
2570
+ 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]]
2571
+ 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-18@example.com"], ["created_at", 2016-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
2606
2572
   (0.1ms) RELEASE SAVEPOINT active_record_2
2607
2573
  Processing by PushType::ProfilesController#edit as HTML
2608
- 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", "a7c5be36-a5aa-451e-be77-352b7fe0b354"], ["LIMIT", 1]]
2574
+ 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", "16511873-53d1-4ab2-ac85-650d311dbc06"], ["LIMIT", 1]]
2609
2575
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin
2610
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (2.1ms)
2611
- Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.2ms)
2576
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.7ms)
2577
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms)
2612
2578
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2613
2579
   (0.1ms) ROLLBACK
2614
2580
   (0.1ms) BEGIN
2615
2581
  ----------------------------------------------------------------
2616
2582
  PushType::ProfilesControllerTest::GET #edit: test_0002_anonymous
2617
2583
  ----------------------------------------------------------------
2618
-  (0.1ms) SAVEPOINT active_record_1
2584
+  (0.0ms) SAVEPOINT active_record_1
2619
2585
   (0.0ms) RELEASE SAVEPOINT active_record_1
2620
2586
   (0.0ms) SAVEPOINT active_record_1
2621
2587
   (0.1ms) SAVEPOINT active_record_2
2622
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2623
- 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]]
2624
- 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-07-25 10:46:32 UTC], ["updated_at", 2016-07-25 10:46:32 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-25 10:46:32 UTC], ["confirmation_sent_at", 2016-07-25 10:46:32 UTC]]
2588
+ 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]]
2589
+ 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]]
2590
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
2625
2591
   (0.1ms) RELEASE SAVEPOINT active_record_2
2626
2592
  Processing by PushType::ProfilesController#edit as HTML
2627
- 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", "e68dc1e7-841d-4e7b-86e8-7e75e66a893b"], ["LIMIT", 1]]
2593
+ 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", "e0b22503-f80a-4344-9577-94aefa4a0a77"], ["LIMIT", 1]]
2628
2594
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin
2629
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (2.2ms)
2630
- Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.1ms)
2595
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.5ms)
2596
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.1ms)
2631
2597
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2632
2598
   (0.1ms) ROLLBACK
2633
2599
   (0.1ms) BEGIN
2634
- -------------------------------------------------------------
2635
- PushType::AuthenticatableTest::trackable: test_0001_anonymous
2636
- -------------------------------------------------------------
2637
-  (0.1ms) SAVEPOINT active_record_1
2638
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2639
-  (0.1ms) SAVEPOINT active_record_1
2640
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2641
-  (0.1ms) ROLLBACK
2642
-  (0.0ms) BEGIN
2643
- ---------------------------------------------------------------------------
2644
- PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
2645
- ---------------------------------------------------------------------------
2646
-  (0.1ms) SAVEPOINT active_record_1
2600
+ -----------------------------------------------------------------------------------
2601
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
2602
+ -----------------------------------------------------------------------------------
2603
+  (0.0ms) SAVEPOINT active_record_1
2647
2604
   (0.0ms) RELEASE SAVEPOINT active_record_1
2648
2605
   (0.0ms) SAVEPOINT active_record_1
2606
+  (0.1ms) SAVEPOINT active_record_2
2607
+ 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]]
2608
+ 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]]
2609
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
2610
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2611
+ Processing by PushType::ProfilesController#update as HTML
2612
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
2613
+ 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", "fae30dd8-d48d-4f73-8181-e8ecc33f20c9"], ["LIMIT", 1]]
2614
+  (0.1ms) SAVEPOINT active_record_2
2615
+ 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-20@example.com"], ["id", "fae30dd8-d48d-4f73-8181-e8ecc33f20c9"], ["LIMIT", 1]]
2616
+ 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-07-27 14:05:24 UTC], ["id", "fae30dd8-d48d-4f73-8181-e8ecc33f20c9"]]
2617
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2618
+ Redirected to http://test.host/push_type/profile/edit
2619
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
2649
2620
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2650
-  (0.0ms) ROLLBACK
2621
+  (0.1ms) ROLLBACK
2651
2622
   (0.1ms) BEGIN
2652
- ---------------------------------------------------------------------------
2653
- PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
2654
- ---------------------------------------------------------------------------
2623
+ -----------------------------------------------------------------------------------
2624
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
2625
+ -----------------------------------------------------------------------------------
2655
2626
   (0.0ms) SAVEPOINT active_record_1
2656
2627
   (0.0ms) RELEASE SAVEPOINT active_record_1
2657
-  (0.1ms) SAVEPOINT active_record_1
2628
+  (0.0ms) SAVEPOINT active_record_1
2629
+  (0.1ms) SAVEPOINT active_record_2
2630
+ 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]]
2631
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2632
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
2633
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2634
+ Processing by PushType::ProfilesController#update as HTML
2635
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
2636
+ 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", "ac0fb1fb-00be-4deb-8328-d66acbac7c0b"], ["LIMIT", 1]]
2637
+  (0.1ms) SAVEPOINT active_record_2
2638
+ 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", "ac0fb1fb-00be-4deb-8328-d66acbac7c0b"], ["LIMIT", 1]]
2639
+ 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-07-27 14:05:24 UTC], ["id", "ac0fb1fb-00be-4deb-8328-d66acbac7c0b"]]
2640
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2641
+ Redirected to http://test.host/push_type/profile/edit
2642
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
2658
2643
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2659
2644
   (0.1ms) ROLLBACK
2660
2645
   (0.1ms) BEGIN
2661
- ----------------------------------------------------------------
2662
- PushType::AuthenticatableTest::rememberable: test_0001_anonymous
2663
- ----------------------------------------------------------------
2664
-  (0.1ms) SAVEPOINT active_record_1
2665
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2646
+ -----------------------------------------------------------------------------------
2647
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
2648
+ -----------------------------------------------------------------------------------
2649
+  (0.0ms) SAVEPOINT active_record_1
2650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2666
2651
   (0.0ms) SAVEPOINT active_record_1
2652
+  (0.1ms) SAVEPOINT active_record_2
2653
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2654
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2655
+ 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-07-27 14:05:24 UTC], ["updated_at", 2016-07-27 14:05:24 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2016-07-27 14:05:24 UTC], ["confirmation_sent_at", 2016-07-27 14:05:24 UTC]]
2656
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2657
+ Processing by PushType::ProfilesController#update as HTML
2658
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
2659
+ 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", "dbe53bf7-7022-468b-afc1-6f19e793a4aa"], ["LIMIT", 1]]
2660
+  (0.1ms) SAVEPOINT active_record_2
2661
+ 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", "dbe53bf7-7022-468b-afc1-6f19e793a4aa"], ["LIMIT", 1]]
2662
+ 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-07-27 14:05:24 UTC], ["id", "dbe53bf7-7022-468b-afc1-6f19e793a4aa"]]
2663
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2664
+ Redirected to http://test.host/push_type/profile/edit
2665
+ Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
2666
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "dbe53bf7-7022-468b-afc1-6f19e793a4aa"], ["LIMIT", 1]]
2667
2667
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2668
2668
   (0.1ms) ROLLBACK