push_type_auth 0.8.0.beta.1 → 0.8.0.beta.2

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/test/dummy/config/initializers/push_type.rb +1 -1
  3. data/test/dummy/config/secrets.yml +2 -2
  4. data/test/dummy/db/migrate/{20160206155218_create_push_type_users.push_type.rb → 20160215150646_create_push_type_users.push_type.rb} +0 -0
  5. data/test/dummy/db/migrate/{20160206155219_create_push_type_nodes.push_type.rb → 20160215150647_create_push_type_nodes.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20160206155220_create_push_type_node_hierarchies.push_type.rb → 20160215150648_create_push_type_node_hierarchies.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20160206155221_create_push_type_assets.push_type.rb → 20160215150649_create_push_type_assets.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20160206155222_add_field_store_default_values.push_type.rb → 20160215150650_add_field_store_default_values.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20160206155223_drop_legacy_push_type_taxonomies.push_type.rb → 20160215150651_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20160206155224_devise_extend_push_type_users.push_type_auth.rb → 20160215150652_devise_extend_push_type_users.push_type_auth.rb} +0 -0
  11. data/test/dummy/db/schema.rb +1 -1
  12. data/test/dummy/log/test.log +728 -728
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-TRQY1YqvyETtQ7_ex5HHxgDCLKiPxGStsXn6F-sxdg.cache +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{3MQmaz-NsBCVyDCuJOkpNEflQgdjAz6zhUyyE1PTXU4.cache → 3W9HTiA8BZFhGmfOMiC2KqWDgE4o9UfTttag0MmgWPA.cache} +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/6tKB6qnPaIvmB9w5BH4E9Wl6yPCC3Hrhf-JATqLD2CU.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{55mpPSNMrwbX0uhGkfVKh-sJ6I8pxfzzjcJQIhzABII.cache → 9U-pbFXThINeV3y-iRcdccNz2AjsSaHVpIIz8Cv4BUA.cache} +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/C5l5iYuNwAu3E42gkR4GTFcCYwCuUFEA_Pz880H6f_0.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{C8MLY-Nj3LreIOB4MlNM8EzMDbfsDIEgkoiQRF74DYM.cache → NJYPSK9GM4NZfpYT9MmRuTEw53CFLM-7paHBMQw4nYQ.cache} +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OQhY_BVQRdv31fTpuWRAbujd1K0_jQ3JyjsFUCX1t0E.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{LEzqvjuxVe0WR_fUWRcZEPbLle1HFZLEURm0wgih0i8.cache → QHVOsGqa5eVyXVl3Je-KMQ_RzacIg5GYPTEY3xhZIwE.cache} +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{2wVdsuL0sB8cqP1r9nRztkhppQleKzOdE5bXJGVs_JU.cache → QkM_oPNC5Mmu4JrIhgLbE3AcPJwSicKnVWnvNYf4iIs.cache} +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/SsE-zKn7_HS7N5gKvRqclLE4QSkdVS8XsiC2_4D-dNA.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/U8zCXxUjRIhXiH_CGwPR_-ZkD7dRElkK9dBDgucU5GY.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{zGPffSgMIbrmfYfPxbPkmK5kbJCdfl89eCpnRNhkzP8.cache → Xu7ujeMc-WqLDKgKgns8k-6g6qNcBapx29L91JZHTLU.cache} +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{bLprhR-Yw2rxW2YMhQLDBRk1pl9SvkrTcEDloVy3qCw.cache → Y6cn9SRZhGbW-q4aa4PwFev8MHUzYzmq9W_VsL_CkJ4.cache} +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ZFq-AJgBiFxa3a1AvDYIH7TlZzRUXCBjKh5XFRaUCFw.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{rxXAiHGmaJVL_IhLsFC76Tvc-bs-15cognX2LGX-I6A.cache → aCaQYd3pf59l_IpTAui4u-pPqF-B_ArbuBcQGeVl9sk.cache} +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{UJrOD95kcxcs14yzeyIZPm8ys-3_EV3Sp8oM4lECPEs.cache → dMQ64p_vMV2oC_4nIWJd4nxk_jDUGuhcoVIELXQQPA8.cache} +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{UJ23ZX6xyuta8fJKIZvPyvOwGJc8jsphhBpk0dGQ8HM.cache → fDLL7reK5KvL-QTRZthC-Ls7lQLbpt1R-ddyS9ARyaE.cache} +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fX719A72YIlhqOeoAaFIsdRMhwIa6hQJweKL797xdG4.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/iRHEN3ndFMv61O9-9s7zxz427SIY9HEPG149F8j27HI.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/puRAIyne67epLvfqS52jpVKw2N2eCHKLro4tFoF2lt4.cache +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uCvqeWga1seYQqxpXxUzBtDZXdGrSNkzV4rdnTftk70.cache +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{37_VJjnnuvPoeW8UtEA3uy-A1Yvkg__c29uQMO9Ei5I.cache → uJAkPdHinv1seoXFGYGsZ5I1Xq2X4LXy432TJksVKXY.cache} +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{iV3VWH36-BfPqSXua9clDKoWw8dOi3CUHxJl-j1eZZ0.cache → uSnpIfT5pCQf1SLwlv3vFrX2UCIVPQWMMovVzwB4Iws.cache} +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uquHYO67o4GaCroPKazscIdBCvlpC2XGkQUf7qgHOMc.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{uhAkimdCjhGc0W2cO7z8J6rXtugXS7msKbxAvibMGds.cache → wQV2LKBBj6a8FaGBpsAdqkyXCwYXDLpEgJnCTbYEdi4.cache} +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{EHUbuDQjBwl86pv6aOhT-FObtpuBp7eFI1bSCOEZH_k.cache → yhHoN9VG3tnTvJGodSq_xKiJVfI2BWy33CJ5J8gRUOo.cache} +0 -0
  39. metadata +48 -48
@@ -1,65 +1,65 @@
1
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20160206155218)
4
+ Migrating to CreatePushTypeUsers (20160215150646)
5
5
   (0.1ms) BEGIN
6
6
  SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.6ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160206155218"]]
7
+  (2.2ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160215150646"]]
9
9
   (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20160206155219)
10
+ Migrating to CreatePushTypeNodes (20160215150647)
11
11
   (0.1ms) BEGIN
12
-  (2.0ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160206155219"]]
12
+  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160215150647"]]
14
14
   (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20160206155220)
15
+ Migrating to CreatePushTypeNodeHierarchies (20160215150648)
16
16
   (0.1ms) BEGIN
17
17
   (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (0.8ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
-  (0.6ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160206155220"]]
18
+  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160215150648"]]
21
21
   (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20160206155221)
22
+ Migrating to CreatePushTypeAssets (20160215150649)
23
23
   (0.1ms) BEGIN
24
-  (1.9ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160206155221"]]
24
+  (1.7ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160215150649"]]
26
26
   (0.4ms) COMMIT
27
- Migrating to AddFieldStoreDefaultValues (20160206155222)
27
+ Migrating to AddFieldStoreDefaultValues (20160215150650)
28
28
   (0.1ms) BEGIN
29
-  (0.4ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
30
-  (0.3ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
29
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
30
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
31
31
   (0.3ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
32
-  (0.1ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
32
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
33
33
   (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
34
-  (0.3ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
34
+  (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
35
35
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
36
36
   (0.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
37
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160206155222"]]
38
-  (0.5ms) COMMIT
39
- Migrating to DropLegacyPushTypeTaxonomies (20160206155223)
37
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160215150650"]]
38
+  (0.4ms) COMMIT
39
+ Migrating to DropLegacyPushTypeTaxonomies (20160215150651)
40
40
   (0.1ms) BEGIN
41
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160206155223"]]
42
-  (0.5ms) COMMIT
43
- Migrating to DeviseExtendPushTypeUsers (20160206155224)
41
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160215150651"]]
42
+  (0.3ms) COMMIT
43
+ Migrating to DeviseExtendPushTypeUsers (20160215150652)
44
44
   (0.1ms) BEGIN
45
-  (2.7ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
45
+  (2.6ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
46
46
   (0.2ms) ALTER TABLE "push_type_users" ADD "reset_password_token" character varying
47
-  (0.1ms) ALTER TABLE "push_type_users" ADD "reset_password_sent_at" timestamp
48
-  (0.2ms) ALTER TABLE "push_type_users" ADD "remember_created_at" timestamp
49
-  (2.1ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
47
+  (0.2ms) ALTER TABLE "push_type_users" ADD "reset_password_sent_at" timestamp
48
+  (0.1ms) ALTER TABLE "push_type_users" ADD "remember_created_at" timestamp
49
+  (3.4ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
50
50
   (0.2ms) ALTER TABLE "push_type_users" ADD "current_sign_in_at" timestamp
51
-  (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
51
+  (0.2ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
52
52
   (0.1ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
53
53
   (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_ip" character varying
54
54
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_token" character varying
55
55
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmed_at" timestamp
56
56
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_sent_at" timestamp
57
-  (0.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
58
-  (0.8ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
59
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160206155224"]]
60
-  (0.9ms) COMMIT
57
+  (0.5ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
58
+  (0.5ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
59
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160215150652"]]
60
+  (1.0ms) COMMIT
61
61
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
-  (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
62
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
63
63
  FROM pg_constraint c
64
64
  JOIN pg_class t1 ON c.conrelid = t1.oid
65
65
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -71,7 +71,7 @@ WHERE c.contype = 'f'
71
71
  AND t3.nspname = ANY (current_schemas(false))
72
72
  ORDER BY c.conname
73
73
  
74
-  (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
74
+  (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
75
75
  FROM pg_constraint c
76
76
  JOIN pg_class t1 ON c.conrelid = t1.oid
77
77
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -83,7 +83,7 @@ WHERE c.contype = 'f'
83
83
  AND t3.nspname = ANY (current_schemas(false))
84
84
  ORDER BY c.conname
85
85
 
86
-  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
86
+  (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
87
87
  FROM pg_constraint c
88
88
  JOIN pg_class t1 ON c.conrelid = t1.oid
89
89
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -95,7 +95,7 @@ WHERE c.contype = 'f'
95
95
  AND t3.nspname = ANY (current_schemas(false))
96
96
  ORDER BY c.conname
97
97
  
98
-  (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
98
+  (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
99
99
  FROM pg_constraint c
100
100
  JOIN pg_class t1 ON c.conrelid = t1.oid
101
101
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -109,7 +109,7 @@ ORDER BY c.conname
109
109
 
110
110
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
111
111
   (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL
112
-  (1.1ms)  SELECT schemaname || '.' || tablename
112
+  (0.9ms)  SELECT schemaname || '.' || tablename
113
113
  FROM pg_tables
114
114
  WHERE
115
115
  tablename !~ '_prt_' AND
@@ -117,39 +117,98 @@ ORDER BY c.conname
117
117
  schemaname = ANY (current_schemas(false))
118
118
  
119
119
   (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
120
-  (8.0ms) TRUNCATE TABLE "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets", "public"."push_type_users" RESTART IDENTITY CASCADE;
121
-  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
120
+  (7.5ms) TRUNCATE TABLE "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets", "public"."push_type_users" RESTART IDENTITY CASCADE;
121
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
122
122
   (0.1ms) BEGIN
123
- --------------------------------------------------------------------------------------------------------------
124
- PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
125
- --------------------------------------------------------------------------------------------------------------
123
+ -------------------------------------------------------------------------------------
124
+ PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
125
+ -------------------------------------------------------------------------------------
126
126
   (0.1ms) SAVEPOINT active_record_1
127
127
   (0.1ms) RELEASE SAVEPOINT active_record_1
128
-  (0.0ms) SAVEPOINT active_record_1
128
+  (0.1ms) SAVEPOINT active_record_1
129
129
   (0.1ms) SAVEPOINT active_record_2
130
130
  PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
131
131
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
132
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "9299f4207b53c6c729d74c41d229a2fab51779396b6f6f269ab566b099e2133c"]]
133
- SQL (0.7ms) 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-02-06 15:52:23.863596"], ["updated_at", "2016-02-06 15:52:23.863596"], ["confirmation_token", "5Nrp-e_4nVhygKLxs4MQ"], ["confirmation_sent_at", "2016-02-06 15:52:24.042393"]]
134
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (1.5ms)
132
+ SQL (0.7ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-1@example.com"], ["confirmation_sent_at", "2016-02-15 15:06:51.375836"], ["confirmed_at", "2016-02-15 15:06:51.375909"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:06:51.386552"], ["updated_at", "2016-02-15 15:06:51.386552"]]
133
+  (0.1ms) RELEASE SAVEPOINT active_record_2
134
+ Processing by PushType::ProfilesController#update as HTML
135
+ Parameters: {"user"=>{"name"=>""}}
136
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "29aae61a-8be0-492a-8724-8910a9de6a62"]]
137
+  (0.1ms) SAVEPOINT active_record_2
138
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-1@example.com' AND "push_type_users"."id" != '29aae61a-8be0-492a-8724-8910a9de6a62') LIMIT 1
139
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
140
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (10.0ms)
141
+ DEPRECATION WARNING on line 78 of /Users/aaron/.rvm/gems/ruby-2.1.4@push_type/gems/foundation-rails-5.5.3.2/vendor/assets/stylesheets/foundation/components/_top-bar.scss: #{} interpolation near operators will be simplified
142
+ in a future version of Sass. To preserve the current behavior, use quotes:
143
+
144
+ unquote("#{lower-bound($medium-range)}")
145
+
146
+
147
+ Completed 200 OK in 9901ms (Views: 9883.8ms | ActiveRecord: 0.9ms)
148
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
149
+  (0.2ms) ROLLBACK
150
+  (0.1ms) BEGIN
151
+ -------------------------------------------------------------------------------------
152
+ PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
153
+ -------------------------------------------------------------------------------------
154
+  (0.1ms) SAVEPOINT active_record_1
155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
156
+  (0.1ms) SAVEPOINT active_record_1
157
+  (0.1ms) SAVEPOINT active_record_2
158
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
159
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
160
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:01.296643"], ["confirmed_at", "2016-02-15 15:07:01.296734"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:01.298450"], ["updated_at", "2016-02-15 15:07:01.298450"]]
161
+  (0.1ms) RELEASE SAVEPOINT active_record_2
162
+ Processing by PushType::ProfilesController#update as HTML
163
+ Parameters: {"user"=>{"name"=>""}}
164
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "3341bea7-208d-4ce6-9c57-487a462d3bb0"]]
165
+  (0.1ms) SAVEPOINT active_record_2
166
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-2@example.com' AND "push_type_users"."id" != '3341bea7-208d-4ce6-9c57-487a462d3bb0') LIMIT 1
167
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
168
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.9ms)
169
+ Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.6ms)
170
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
171
+  (0.1ms) ROLLBACK
172
+  (0.1ms) BEGIN
173
+ -------------------------------------------------------------
174
+ PushType::AuthenticatableTest::trackable: test_0001_anonymous
175
+ -------------------------------------------------------------
176
+  (0.1ms) SAVEPOINT active_record_1
177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+  (0.0ms) SAVEPOINT active_record_1
179
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
180
+  (0.1ms) ROLLBACK
181
+  (0.0ms) BEGIN
182
+ ----------------------------------------------------------------------------------------------------
183
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
184
+ ----------------------------------------------------------------------------------------------------
185
+  (0.1ms) SAVEPOINT active_record_1
186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
187
+  (0.1ms) SAVEPOINT active_record_1
188
+  (0.1ms) SAVEPOINT active_record_2
189
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
190
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
191
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "e97fa8873d073a5783a95da5f0fc77b9e8ccc8c7c9b6af840c3b912a1ab58bda"]]
192
+ 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-02-15 15:07:01.322538"], ["updated_at", "2016-02-15 15:07:01.322538"], ["confirmation_token", "dL37q1sV1VBQY-EiaFGe"], ["confirmation_sent_at", "2016-02-15 15:07:01.480943"]]
193
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.7ms)
135
194
 
136
- Devise::Mailer#confirmation_instructions: processed outbound mail in 260.1ms
195
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 110.0ms
137
196
 
138
- Sent mail to joe-1@example.com (6.6ms)
139
- Date: Sat, 06 Feb 2016 15:52:24 +0000
197
+ Sent mail to joe-3@example.com (6.4ms)
198
+ Date: Mon, 15 Feb 2016 15:07:01 +0000
140
199
  From: pushtype@example.com
141
200
  Reply-To: pushtype@example.com
142
- To: joe-1@example.com
143
- Message-ID: <56b616b853ade_10603fe961463be4484cf@Aarons-iMac.local.mail>
201
+ To: joe-3@example.com
202
+ Message-ID: <56c1e99599d39_40ab3fd7acc63be49703c@Aarons-iMac.local.mail>
144
203
  Subject: [PushType] Confirm your account
145
204
  Mime-Version: 1.0
146
205
  Content-Type: multipart/alternative;
147
- boundary="--==_mimepart_56b616b852c4f_10603fe961463be44837";
206
+ boundary="--==_mimepart_56c1e99598eda_40ab3fd7acc63be49693";
148
207
  charset=UTF-8
149
208
  Content-Transfer-Encoding: 7bit
150
209
 
151
210
 
152
- ----==_mimepart_56b616b852c4f_10603fe961463be44837
211
+ ----==_mimepart_56c1e99598eda_40ab3fd7acc63be49693
153
212
  Content-Type: text/plain;
154
213
  charset=UTF-8
155
214
  Content-Transfer-Encoding: 7bit
@@ -164,10 +223,10 @@ created for you.
164
223
  To get started, confirm your account and set your own password by
165
224
  clicking the link below:
166
225
 
167
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=5Nrp-e_4nVhygKLxs4MQ )
226
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=dL37q1sV1VBQY-EiaFGe )
168
227
 
169
228
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
170
- ----==_mimepart_56b616b852c4f_10603fe961463be44837
229
+ ----==_mimepart_56c1e99598eda_40ab3fd7acc63be49693
171
230
  Content-Type: text/html;
172
231
  charset=UTF-8
173
232
  Content-Transfer-Encoding: 7bit
@@ -213,7 +272,7 @@ body {
213
272
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
214
273
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
215
274
  <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">
216
- <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=5Nrp-e_4nVhygKLxs4MQ" 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>
275
+ <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=dL37q1sV1VBQY-EiaFGe" 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>
217
276
  </td>
218
277
  </tr>
219
278
  </table>
@@ -258,190 +317,48 @@ body {
258
317
  </body>
259
318
  </html>
260
319
 
261
- ----==_mimepart_56b616b852c4f_10603fe961463be44837--
320
+ ----==_mimepart_56c1e99598eda_40ab3fd7acc63be49693--
262
321
 
263
322
   (0.1ms) RELEASE SAVEPOINT active_record_2
264
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
265
-  (0.2ms) ROLLBACK
266
-  (0.1ms) BEGIN
267
- ----------------------------------------------------------------
268
- PushType::AuthenticatableTest::rememberable: test_0001_anonymous
269
- ----------------------------------------------------------------
270
-  (0.1ms) SAVEPOINT active_record_1
271
-  (0.1ms) RELEASE SAVEPOINT active_record_1
272
-  (0.0ms) SAVEPOINT active_record_1
273
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
274
-  (0.1ms) ROLLBACK
275
-  (0.0ms) BEGIN
276
- ---------------------------------------------------------------------------
277
- PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
278
- ---------------------------------------------------------------------------
279
-  (0.0ms) SAVEPOINT active_record_1
280
-  (0.0ms) RELEASE SAVEPOINT active_record_1
281
-  (0.0ms) SAVEPOINT active_record_1
282
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
283
-  (0.0ms) ROLLBACK
284
-  (0.1ms) BEGIN
285
- ---------------------------------------------------------------------------
286
- PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
287
- ---------------------------------------------------------------------------
288
-  (0.1ms) SAVEPOINT active_record_1
289
-  (0.0ms) RELEASE SAVEPOINT active_record_1
290
-  (0.0ms) SAVEPOINT active_record_1
291
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
292
-  (0.0ms) ROLLBACK
293
-  (0.1ms) BEGIN
294
- --------------------------------------------------------
295
- PushType::AuthenticationMethodsTest: test_0001_anonymous
296
- --------------------------------------------------------
297
-  (0.1ms) SAVEPOINT active_record_1
298
-  (0.0ms) RELEASE SAVEPOINT active_record_1
299
-  (0.0ms) SAVEPOINT active_record_1
300
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
301
-  (0.0ms) ROLLBACK
302
-  (0.1ms) BEGIN
303
- --------------------------------------------------------
304
- PushType::AuthenticationMethodsTest: test_0002_anonymous
305
- --------------------------------------------------------
306
-  (0.0ms) SAVEPOINT active_record_1
307
-  (0.0ms) RELEASE SAVEPOINT active_record_1
308
-  (0.0ms) SAVEPOINT active_record_1
309
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
310
-  (0.0ms) ROLLBACK
311
-  (0.1ms) BEGIN
312
- ------------------------------------------------------------------------------------------------------
313
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
314
- ------------------------------------------------------------------------------------------------------
315
-  (0.1ms) SAVEPOINT active_record_1
316
-  (0.1ms) RELEASE SAVEPOINT active_record_1
317
-  (0.1ms) SAVEPOINT active_record_1
318
323
  Processing by PushType::ConfirmationsController#show as HTML
319
- Parameters: {"confirmation_token"=>"invalid"}
320
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
321
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
322
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "a40eaa005842176504641871c1a9936b3ad4f46bf1301caf3ae3f3e22037b976"]]
323
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.0ms)
324
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (8.3ms)
325
- DEPRECATION WARNING on line 78 of /Users/aaron/.rvm/gems/ruby-2.1.4@push_type/gems/foundation-rails-5.5.3.2/vendor/assets/stylesheets/foundation/components/_top-bar.scss: #{} interpolation near operators will be simplified
326
- in a future version of Sass. To preserve the current behavior, use quotes:
327
-
328
- unquote("#{lower-bound($medium-range)}")
329
-
330
-
331
- Completed 200 OK in 9921ms (Views: 9917.2ms | ActiveRecord: 0.4ms)
332
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
324
+ Parameters: {"confirmation_token"=>"dL37q1sV1VBQY-EiaFGe"}
325
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "dL37q1sV1VBQY-EiaFGe"]]
326
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.9ms)
327
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (6.4ms)
328
+ Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.2ms)
329
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
333
330
   (0.1ms) ROLLBACK
334
331
   (0.1ms) BEGIN
335
- ------------------------------------------------------------------------------------------------------
336
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
337
- ------------------------------------------------------------------------------------------------------
338
-  (0.1ms) SAVEPOINT active_record_1
332
+ ----------------------------------------------------------------------------------------------------
333
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
334
+ ----------------------------------------------------------------------------------------------------
335
+  (0.0ms) SAVEPOINT active_record_1
339
336
   (0.0ms) RELEASE SAVEPOINT active_record_1
340
337
   (0.0ms) SAVEPOINT active_record_1
341
- Processing by PushType::ConfirmationsController#show as HTML
342
- Parameters: {"confirmation_token"=>"invalid"}
343
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
344
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
345
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "a40eaa005842176504641871c1a9936b3ad4f46bf1301caf3ae3f3e22037b976"]]
346
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.5ms)
347
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (2.8ms)
348
- Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 0.7ms)
349
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
350
-  (0.1ms) ROLLBACK
351
-  (0.1ms) BEGIN
352
- ----------------------------------------------------
353
- PushType::InvitationMethodsTest: test_0001_anonymous
354
- ----------------------------------------------------
355
-  (0.1ms) SAVEPOINT active_record_1
356
-  (0.1ms) RELEASE SAVEPOINT active_record_1
357
-  (0.1ms) SAVEPOINT active_record_1
358
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
359
-  (0.1ms) ROLLBACK
360
-  (0.1ms) BEGIN
361
- ----------------------------------------------------------------
362
- PushType::ProfilesControllerTest::GET #edit: test_0002_anonymous
363
- ----------------------------------------------------------------
364
-  (0.1ms) SAVEPOINT active_record_1
365
-  (0.1ms) RELEASE SAVEPOINT active_record_1
366
-  (0.1ms) SAVEPOINT active_record_1
367
-  (0.1ms) SAVEPOINT active_record_2
368
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
369
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
370
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:34.337187"], ["confirmed_at", "2016-02-06 15:52:34.337286"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:34.339207"], ["updated_at", "2016-02-06 15:52:34.339207"]]
371
-  (0.1ms) RELEASE SAVEPOINT active_record_2
372
- Processing by PushType::ProfilesController#edit as HTML
373
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "b5e879e9-468d-436d-9bc3-0232b95b236b"]]
374
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (9.7ms)
375
- Completed 200 OK in 204ms (Views: 201.0ms | ActiveRecord: 0.4ms)
376
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
377
-  (0.1ms) ROLLBACK
378
-  (0.1ms) BEGIN
379
- ----------------------------------------------------------------
380
- PushType::ProfilesControllerTest::GET #edit: test_0001_anonymous
381
- ----------------------------------------------------------------
382
-  (0.1ms) SAVEPOINT active_record_1
383
-  (0.1ms) RELEASE SAVEPOINT active_record_1
384
-  (0.1ms) SAVEPOINT active_record_1
385
-  (0.1ms) SAVEPOINT active_record_2
386
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
387
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
388
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-3@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:34.551429"], ["confirmed_at", "2016-02-06 15:52:34.551525"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:34.553283"], ["updated_at", "2016-02-06 15:52:34.553283"]]
389
-  (0.1ms) RELEASE SAVEPOINT active_record_2
390
- Processing by PushType::ProfilesController#edit as HTML
391
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "fcedc04c-fbe6-45a7-8a46-c69043040d90"]]
392
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (2.4ms)
393
- Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.2ms)
394
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
395
-  (0.1ms) ROLLBACK
396
-  (0.1ms) BEGIN
397
- ---------------------------------------------------------------
398
- PushType::AuthenticatableTest::validatable: test_0001_anonymous
399
- ---------------------------------------------------------------
400
-  (0.1ms) SAVEPOINT active_record_1
401
-  (0.1ms) RELEASE SAVEPOINT active_record_1
402
-  (0.1ms) SAVEPOINT active_record_1
403
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
404
-  (0.1ms) ROLLBACK
405
-  (0.1ms) BEGIN
406
- ---------------------------------------------------------------
407
- PushType::AuthenticatableTest::validatable: test_0002_anonymous
408
- ---------------------------------------------------------------
409
-  (0.0ms) SAVEPOINT active_record_1
410
-  (0.0ms) RELEASE SAVEPOINT active_record_1
411
-  (0.0ms) SAVEPOINT active_record_1
412
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
413
-  (0.1ms) ROLLBACK
414
-  (0.1ms) BEGIN
415
- ----------------------------------------------------------------------------------------
416
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
417
- ----------------------------------------------------------------------------------------
418
-  (0.0ms) SAVEPOINT active_record_1
419
-  (0.0ms) RELEASE SAVEPOINT active_record_1
420
-  (0.0ms) SAVEPOINT active_record_1
421
-  (0.0ms) SAVEPOINT active_record_2
422
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
338
+  (0.1ms) SAVEPOINT active_record_2
423
339
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
424
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "f936bb05b1e22fed957714ceee34180b8896bc22cfe957226746859e307945ee"]]
425
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", "2016-02-06 15:52:34.573417"], ["updated_at", "2016-02-06 15:52:34.573417"], ["confirmation_token", "5LurrzUUsJuGUG4Niga7"], ["confirmation_sent_at", "2016-02-06 15:52:34.574221"]]
426
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
340
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
341
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "3452f6406e3fd40f8358c92f484ba1d4b20f3c5ad53dfef097c710d23774219a"]]
342
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", "2016-02-15 15:07:01.651408"], ["updated_at", "2016-02-15 15:07:01.651408"], ["confirmation_token", "Qeyvkqr_W6skkPgbVsvT"], ["confirmation_sent_at", "2016-02-15 15:07:01.652202"]]
343
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
427
344
 
428
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
345
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
429
346
 
430
- Sent mail to joe-4@example.com (3.6ms)
431
- Date: Sat, 06 Feb 2016 15:52:34 +0000
347
+ Sent mail to joe-4@example.com (3.0ms)
348
+ Date: Mon, 15 Feb 2016 15:07:01 +0000
432
349
  From: pushtype@example.com
433
350
  Reply-To: pushtype@example.com
434
351
  To: joe-4@example.com
435
- Message-ID: <56b616c2951d0_10603fe961463be448721@Aarons-iMac.local.mail>
352
+ Message-ID: <56c1e995a6bd3_40ab3fd7acc63be4973bb@Aarons-iMac.local.mail>
436
353
  Subject: [PushType] Confirm your account
437
354
  Mime-Version: 1.0
438
355
  Content-Type: multipart/alternative;
439
- boundary="--==_mimepart_56b616c294bc1_10603fe961463be448614";
356
+ boundary="--==_mimepart_56c1e995a6683_40ab3fd7acc63be49722b";
440
357
  charset=UTF-8
441
358
  Content-Transfer-Encoding: 7bit
442
359
 
443
360
 
444
- ----==_mimepart_56b616c294bc1_10603fe961463be448614
361
+ ----==_mimepart_56c1e995a6683_40ab3fd7acc63be49722b
445
362
  Content-Type: text/plain;
446
363
  charset=UTF-8
447
364
  Content-Transfer-Encoding: 7bit
@@ -456,10 +373,10 @@ created for you.
456
373
  To get started, confirm your account and set your own password by
457
374
  clicking the link below:
458
375
 
459
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=5LurrzUUsJuGUG4Niga7 )
376
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Qeyvkqr_W6skkPgbVsvT )
460
377
 
461
378
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
462
- ----==_mimepart_56b616c294bc1_10603fe961463be448614
379
+ ----==_mimepart_56c1e995a6683_40ab3fd7acc63be49722b
463
380
  Content-Type: text/html;
464
381
  charset=UTF-8
465
382
  Content-Transfer-Encoding: 7bit
@@ -505,7 +422,7 @@ body {
505
422
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
506
423
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
507
424
  <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">
508
- <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=5LurrzUUsJuGUG4Niga7" 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>
425
+ <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=Qeyvkqr_W6skkPgbVsvT" 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>
509
426
  </td>
510
427
  </tr>
511
428
  </table>
@@ -550,55 +467,226 @@ body {
550
467
  </body>
551
468
  </html>
552
469
 
553
- ----==_mimepart_56b616c294bc1_10603fe961463be448614--
470
+ ----==_mimepart_56c1e995a6683_40ab3fd7acc63be49722b--
554
471
 
472
+  (0.1ms) RELEASE SAVEPOINT active_record_2
473
+ Processing by PushType::ConfirmationsController#show as HTML
474
+ Parameters: {"confirmation_token"=>"Qeyvkqr_W6skkPgbVsvT"}
475
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "Qeyvkqr_W6skkPgbVsvT"]]
476
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
477
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
478
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms)
479
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
480
+  (0.1ms) ROLLBACK
481
+  (0.1ms) BEGIN
482
+ ----------------------------------------------------------------
483
+ PushType::ProfilesControllerTest::GET #edit: test_0001_anonymous
484
+ ----------------------------------------------------------------
485
+  (0.1ms) SAVEPOINT active_record_1
486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
487
+  (0.0ms) SAVEPOINT active_record_1
488
+  (0.1ms) SAVEPOINT active_record_2
489
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
490
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
491
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:01.695331"], ["confirmed_at", "2016-02-15 15:07:01.695388"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:01.696753"], ["updated_at", "2016-02-15 15:07:01.696753"]]
492
+  (0.1ms) RELEASE SAVEPOINT active_record_2
493
+ Processing by PushType::ProfilesController#edit as HTML
494
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "a7939294-d697-4442-8925-57ef4956c029"]]
495
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.7ms)
496
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.2ms)
497
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
498
+  (0.1ms) ROLLBACK
499
+  (0.1ms) BEGIN
500
+ ----------------------------------------------------------------
501
+ PushType::ProfilesControllerTest::GET #edit: test_0002_anonymous
502
+ ----------------------------------------------------------------
503
+  (0.0ms) SAVEPOINT active_record_1
504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
505
+  (0.0ms) SAVEPOINT active_record_1
506
+  (0.1ms) SAVEPOINT active_record_2
507
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
508
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
509
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:01.708416"], ["confirmed_at", "2016-02-15 15:07:01.708468"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:01.709751"], ["updated_at", "2016-02-15 15:07:01.709751"]]
510
+  (0.1ms) RELEASE SAVEPOINT active_record_2
511
+ Processing by PushType::ProfilesController#edit as HTML
512
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "8ecef287-30e4-471d-8e26-ebcd68cfbf42"]]
513
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.7ms)
514
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.2ms)
515
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
516
+  (0.1ms) ROLLBACK
517
+  (0.1ms) BEGIN
518
+ --------------------------------------------------------------------------------------
519
+ PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
520
+ --------------------------------------------------------------------------------------
521
+  (0.1ms) SAVEPOINT active_record_1
522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
523
+  (0.0ms) SAVEPOINT active_record_1
524
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
525
+  (0.0ms) ROLLBACK
526
+  (0.1ms) BEGIN
527
+ -----------------------------------------------------------------------------------
528
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
529
+ -----------------------------------------------------------------------------------
530
+  (0.0ms) SAVEPOINT active_record_1
531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
532
+  (0.0ms) SAVEPOINT active_record_1
533
+  (0.1ms) SAVEPOINT active_record_2
534
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
535
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
536
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:01.723847"], ["confirmed_at", "2016-02-15 15:07:01.723911"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:01.725323"], ["updated_at", "2016-02-15 15:07:01.725323"]]
537
+  (0.1ms) RELEASE SAVEPOINT active_record_2
538
+ Processing by PushType::ProfilesController#update as HTML
539
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
540
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "641348b8-111f-4258-a56e-2ca1fa2165e9"]]
541
+  (0.1ms) SAVEPOINT active_record_2
542
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-7@example.com' AND "push_type_users"."id" != '641348b8-111f-4258-a56e-2ca1fa2165e9') LIMIT 1
543
+ 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-02-15 15:07:01.729337"], ["id", "641348b8-111f-4258-a56e-2ca1fa2165e9"]]
544
+  (0.1ms) RELEASE SAVEPOINT active_record_2
545
+ Redirected to http://test.host/push_type/profile/edit
546
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
547
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "641348b8-111f-4258-a56e-2ca1fa2165e9"]]
548
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
549
+  (0.1ms) ROLLBACK
550
+  (0.1ms) BEGIN
551
+ -----------------------------------------------------------------------------------
552
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
553
+ -----------------------------------------------------------------------------------
554
+  (0.1ms) SAVEPOINT active_record_1
555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
556
+  (0.0ms) SAVEPOINT active_record_1
557
+  (0.1ms) SAVEPOINT active_record_2
558
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
559
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
560
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:01.733931"], ["confirmed_at", "2016-02-15 15:07:01.733977"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:01.735156"], ["updated_at", "2016-02-15 15:07:01.735156"]]
555
561
   (0.1ms) RELEASE SAVEPOINT active_record_2
556
- Processing by PushType::ConfirmationsController#update as HTML
557
- Parameters: {"user"=>{"confirmation_token"=>"5LurrzUUsJuGUG4Niga7", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
558
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5LurrzUUsJuGUG4Niga7"]]
559
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != 'abb8c671-f75a-4901-8883-09b16efcffe9') LIMIT 1
560
-  (0.1ms) SAVEPOINT active_record_2
561
- 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$gO0TNj0LVWUSwGO/xr3rGezE9xqmvQP2ovsPVYVYYy2TSPP5QyhPO"], ["confirmed_at", "2016-02-06 15:52:34.618649"], ["updated_at", "2016-02-06 15:52:34.618991"], ["id", "abb8c671-f75a-4901-8883-09b16efcffe9"]]
562
+ Processing by PushType::ProfilesController#update as HTML
563
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
564
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "37d160a7-7f9a-4ad1-9a9e-efb402c5fd1b"]]
565
+  (0.1ms) SAVEPOINT active_record_2
566
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-8@example.com' AND "push_type_users"."id" != '37d160a7-7f9a-4ad1-9a9e-efb402c5fd1b') LIMIT 1
567
+ SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2016-02-15 15:07:01.738972"], ["id", "37d160a7-7f9a-4ad1-9a9e-efb402c5fd1b"]]
562
568
   (0.1ms) RELEASE SAVEPOINT active_record_2
569
+ Redirected to http://test.host/push_type/profile/edit
570
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
571
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
572
+  (0.1ms) ROLLBACK
573
+  (0.1ms) BEGIN
574
+ -----------------------------------------------------------------------------------
575
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
576
+ -----------------------------------------------------------------------------------
577
+  (0.1ms) SAVEPOINT active_record_1
578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
579
+  (0.0ms) SAVEPOINT active_record_1
563
580
   (0.1ms) SAVEPOINT active_record_2
564
- SQL (0.2ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2016-02-06 15:52:34.621008"], ["current_sign_in_at", "2016-02-06 15:52:34.621008"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2016-02-06 15:52:34.621584"], ["id", "abb8c671-f75a-4901-8883-09b16efcffe9"]]
581
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
582
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
583
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:01.741979"], ["confirmed_at", "2016-02-15 15:07:01.742022"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:01.743192"], ["updated_at", "2016-02-15 15:07:01.743192"]]
565
584
   (0.1ms) RELEASE SAVEPOINT active_record_2
566
- Redirected to http://test.host/push_type/
567
- Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
568
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "abb8c671-f75a-4901-8883-09b16efcffe9"]]
585
+ Processing by PushType::ProfilesController#update as HTML
586
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
587
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "b69ae75a-544a-41bd-b31e-991a1bf5e610"]]
588
+  (0.1ms) SAVEPOINT active_record_2
589
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-9@example.com' AND "push_type_users"."id" != 'b69ae75a-544a-41bd-b31e-991a1bf5e610') LIMIT 1
590
+ SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2016-02-15 15:07:01.746754"], ["id", "b69ae75a-544a-41bd-b31e-991a1bf5e610"]]
591
+  (0.1ms) RELEASE SAVEPOINT active_record_2
592
+ Redirected to http://test.host/push_type/profile/edit
593
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
569
594
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
570
595
   (0.1ms) ROLLBACK
571
596
   (0.1ms) BEGIN
572
- ----------------------------------------------------------------------------------------
573
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
574
- ----------------------------------------------------------------------------------------
597
+ ----------------------------------------------------
598
+ PushType::InvitationMethodsTest: test_0001_anonymous
599
+ ----------------------------------------------------
600
+  (0.0ms) SAVEPOINT active_record_1
601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
602
+  (0.0ms) SAVEPOINT active_record_1
603
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
604
+  (0.0ms) ROLLBACK
605
+  (0.0ms) BEGIN
606
+ ---------------------------------------------------------------
607
+ PushType::AuthenticatableTest::confirmable: test_0001_anonymous
608
+ ---------------------------------------------------------------
609
+  (0.0ms) SAVEPOINT active_record_1
610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
611
+  (0.0ms) SAVEPOINT active_record_1
612
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
613
+  (0.0ms) ROLLBACK
614
+  (0.0ms) BEGIN
615
+ ---------------------------------------------------------------------------
616
+ PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
617
+ ---------------------------------------------------------------------------
618
+  (0.0ms) SAVEPOINT active_record_1
619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
620
+  (0.0ms) SAVEPOINT active_record_1
621
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
622
+  (0.0ms) ROLLBACK
623
+  (0.1ms) BEGIN
624
+ ---------------------------------------------------------------------------
625
+ PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
626
+ ---------------------------------------------------------------------------
627
+  (0.0ms) SAVEPOINT active_record_1
628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
629
+  (0.1ms) SAVEPOINT active_record_1
630
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
631
+  (0.0ms) ROLLBACK
632
+  (0.0ms) BEGIN
633
+ ---------------------------------------------------------------
634
+ PushType::AuthenticatableTest::validatable: test_0001_anonymous
635
+ ---------------------------------------------------------------
636
+  (0.0ms) SAVEPOINT active_record_1
637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
638
+  (0.0ms) SAVEPOINT active_record_1
639
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
640
+  (0.0ms) ROLLBACK
641
+  (0.1ms) BEGIN
642
+ ---------------------------------------------------------------
643
+ PushType::AuthenticatableTest::validatable: test_0002_anonymous
644
+ ---------------------------------------------------------------
645
+  (0.0ms) SAVEPOINT active_record_1
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+  (0.1ms) SAVEPOINT active_record_1
648
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
649
+  (0.0ms) ROLLBACK
650
+  (0.0ms) BEGIN
651
+ ----------------------------------------------------------------
652
+ PushType::AuthenticatableTest::rememberable: test_0001_anonymous
653
+ ----------------------------------------------------------------
654
+  (0.0ms) SAVEPOINT active_record_1
655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
656
+  (0.0ms) SAVEPOINT active_record_1
657
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
658
+  (0.0ms) ROLLBACK
659
+  (0.1ms) BEGIN
660
+ --------------------------------------------------------------------------------------------------------------
661
+ PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
662
+ --------------------------------------------------------------------------------------------------------------
575
663
   (0.1ms) SAVEPOINT active_record_1
576
664
   (0.1ms) RELEASE SAVEPOINT active_record_1
577
665
   (0.1ms) SAVEPOINT active_record_1
578
666
   (0.1ms) SAVEPOINT active_record_2
579
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
580
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
581
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "5cf2183a78b53a5579d8a08afe9d332d0df0e5c4222b992d8d79544037504579"]]
582
- 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-02-06 15:52:34.627786"], ["updated_at", "2016-02-06 15:52:34.627786"], ["confirmation_token", "sybdWrvo6k8q9uipcYVy"], ["confirmation_sent_at", "2016-02-06 15:52:34.628633"]]
583
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
667
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
668
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
669
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "e59a3174ec38422a734b5a62274b54fe87136c922e79b853af8702faa62c4716"]]
670
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", "2016-02-15 15:07:01.761751"], ["updated_at", "2016-02-15 15:07:01.761751"], ["confirmation_token", "tTbCMR2vFabR6xpTCzZ_"], ["confirmation_sent_at", "2016-02-15 15:07:01.762450"]]
671
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
584
672
 
585
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
673
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
586
674
 
587
- Sent mail to joe-5@example.com (48.9ms)
588
- Date: Sat, 06 Feb 2016 15:52:34 +0000
675
+ Sent mail to joe-10@example.com (3.0ms)
676
+ Date: Mon, 15 Feb 2016 15:07:01 +0000
589
677
  From: pushtype@example.com
590
678
  Reply-To: pushtype@example.com
591
- To: joe-5@example.com
592
- Message-ID: <56b616c2a2856_10603fe961463be44902a@Aarons-iMac.local.mail>
679
+ To: joe-10@example.com
680
+ Message-ID: <56c1e995c1ace_40ab3fd7acc63be4976de@Aarons-iMac.local.mail>
593
681
  Subject: [PushType] Confirm your account
594
682
  Mime-Version: 1.0
595
683
  Content-Type: multipart/alternative;
596
- boundary="--==_mimepart_56b616c2a222f_10603fe961463be4489b9";
684
+ boundary="--==_mimepart_56c1e995c1575_40ab3fd7acc63be4975f9";
597
685
  charset=UTF-8
598
686
  Content-Transfer-Encoding: 7bit
599
687
 
600
688
 
601
- ----==_mimepart_56b616c2a222f_10603fe961463be4489b9
689
+ ----==_mimepart_56c1e995c1575_40ab3fd7acc63be4975f9
602
690
  Content-Type: text/plain;
603
691
  charset=UTF-8
604
692
  Content-Transfer-Encoding: 7bit
@@ -613,10 +701,10 @@ created for you.
613
701
  To get started, confirm your account and set your own password by
614
702
  clicking the link below:
615
703
 
616
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=sybdWrvo6k8q9uipcYVy )
704
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=tTbCMR2vFabR6xpTCzZ_ )
617
705
 
618
706
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
619
- ----==_mimepart_56b616c2a222f_10603fe961463be4489b9
707
+ ----==_mimepart_56c1e995c1575_40ab3fd7acc63be4975f9
620
708
  Content-Type: text/html;
621
709
  charset=UTF-8
622
710
  Content-Transfer-Encoding: 7bit
@@ -662,7 +750,7 @@ body {
662
750
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
663
751
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
664
752
  <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">
665
- <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=sybdWrvo6k8q9uipcYVy" 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>
753
+ <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=tTbCMR2vFabR6xpTCzZ_" 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>
666
754
  </td>
667
755
  </tr>
668
756
  </table>
@@ -707,195 +795,42 @@ body {
707
795
  </body>
708
796
  </html>
709
797
 
710
- ----==_mimepart_56b616c2a222f_10603fe961463be4489b9--
798
+ ----==_mimepart_56c1e995c1575_40ab3fd7acc63be4975f9--
711
799
 
712
800
   (0.1ms) RELEASE SAVEPOINT active_record_2
713
- Processing by PushType::ConfirmationsController#update as HTML
714
- Parameters: {"user"=>{"confirmation_token"=>"sybdWrvo6k8q9uipcYVy", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
715
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "sybdWrvo6k8q9uipcYVy"]]
716
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-5@example.com' AND "push_type_users"."id" != 'ee233617-e00f-41e0-bdbd-4f6f21f56933') LIMIT 1
717
-  (0.1ms) SAVEPOINT active_record_2
718
- 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$yvHFNRW/UCq4GQOuBjBJAevi7yhaSiCeDEgFu8faCnXT/oZun8h4S"], ["confirmed_at", "2016-02-06 15:52:34.717857"], ["updated_at", "2016-02-06 15:52:34.718175"], ["id", "ee233617-e00f-41e0-bdbd-4f6f21f56933"]]
719
-  (0.1ms) RELEASE SAVEPOINT active_record_2
720
-  (0.1ms) SAVEPOINT active_record_2
721
- SQL (0.1ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2016-02-06 15:52:34.719793"], ["current_sign_in_at", "2016-02-06 15:52:34.719793"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2016-02-06 15:52:34.720162"], ["id", "ee233617-e00f-41e0-bdbd-4f6f21f56933"]]
722
-  (0.1ms) RELEASE SAVEPOINT active_record_2
723
- Redirected to http://test.host/push_type/
724
- Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
725
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
726
-  (0.1ms) ROLLBACK
727
-  (0.1ms) BEGIN
728
- -------------------------------------------------------------
729
- PushType::AuthenticatableTest::trackable: test_0001_anonymous
730
- -------------------------------------------------------------
731
-  (0.1ms) SAVEPOINT active_record_1
732
-  (0.0ms) RELEASE SAVEPOINT active_record_1
733
-  (0.0ms) SAVEPOINT active_record_1
734
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
735
-  (0.1ms) ROLLBACK
736
-  (0.1ms) BEGIN
737
- -----------------------------------------------------------------------------------
738
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
739
- -----------------------------------------------------------------------------------
740
-  (0.0ms) SAVEPOINT active_record_1
741
-  (0.0ms) RELEASE SAVEPOINT active_record_1
742
-  (0.0ms) SAVEPOINT active_record_1
743
-  (0.1ms) SAVEPOINT active_record_2
744
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
745
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
746
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:34.725843"], ["confirmed_at", "2016-02-06 15:52:34.725892"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:34.727207"], ["updated_at", "2016-02-06 15:52:34.727207"]]
747
-  (0.1ms) RELEASE SAVEPOINT active_record_2
748
- Processing by PushType::ProfilesController#update as HTML
749
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
750
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "48c2d3e7-eb31-4ea2-bd98-4f2b2494da1e"]]
751
-  (0.1ms) SAVEPOINT active_record_2
752
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-6@example.com' AND "push_type_users"."id" != '48c2d3e7-eb31-4ea2-bd98-4f2b2494da1e') LIMIT 1
753
- 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-02-06 15:52:34.732052"], ["id", "48c2d3e7-eb31-4ea2-bd98-4f2b2494da1e"]]
754
-  (0.1ms) RELEASE SAVEPOINT active_record_2
755
- Redirected to http://test.host/push_type/profile/edit
756
- Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
757
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "48c2d3e7-eb31-4ea2-bd98-4f2b2494da1e"]]
758
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
759
-  (0.1ms) ROLLBACK
760
-  (0.1ms) BEGIN
761
- -----------------------------------------------------------------------------------
762
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
763
- -----------------------------------------------------------------------------------
764
-  (0.1ms) SAVEPOINT active_record_1
765
-  (0.0ms) RELEASE SAVEPOINT active_record_1
766
-  (0.0ms) SAVEPOINT active_record_1
767
-  (0.1ms) SAVEPOINT active_record_2
768
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
769
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
770
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:34.735939"], ["confirmed_at", "2016-02-06 15:52:34.735987"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:34.737308"], ["updated_at", "2016-02-06 15:52:34.737308"]]
771
-  (0.1ms) RELEASE SAVEPOINT active_record_2
772
- Processing by PushType::ProfilesController#update as HTML
773
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
774
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "f1bc7cad-734f-4237-8606-0c707972b672"]]
775
-  (0.1ms) SAVEPOINT active_record_2
776
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-7@example.com' AND "push_type_users"."id" != 'f1bc7cad-734f-4237-8606-0c707972b672') LIMIT 1
777
- SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2016-02-06 15:52:34.741195"], ["id", "f1bc7cad-734f-4237-8606-0c707972b672"]]
778
-  (0.1ms) RELEASE SAVEPOINT active_record_2
779
- Redirected to http://test.host/push_type/profile/edit
780
- Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
781
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
782
-  (0.1ms) ROLLBACK
783
-  (0.1ms) BEGIN
784
- -----------------------------------------------------------------------------------
785
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
786
- -----------------------------------------------------------------------------------
787
-  (0.0ms) SAVEPOINT active_record_1
788
-  (0.0ms) RELEASE SAVEPOINT active_record_1
789
-  (0.0ms) SAVEPOINT active_record_1
790
-  (0.1ms) SAVEPOINT active_record_2
791
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
792
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
793
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:34.744169"], ["confirmed_at", "2016-02-06 15:52:34.744214"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:34.745584"], ["updated_at", "2016-02-06 15:52:34.745584"]]
794
-  (0.1ms) RELEASE SAVEPOINT active_record_2
795
- Processing by PushType::ProfilesController#update as HTML
796
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
797
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "a5291110-4322-4ce2-9d06-311937d4c7c2"]]
798
-  (0.1ms) SAVEPOINT active_record_2
799
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-8@example.com' AND "push_type_users"."id" != 'a5291110-4322-4ce2-9d06-311937d4c7c2') LIMIT 1
800
- SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2016-02-06 15:52:34.750169"], ["id", "a5291110-4322-4ce2-9d06-311937d4c7c2"]]
801
-  (0.1ms) RELEASE SAVEPOINT active_record_2
802
- Redirected to http://test.host/push_type/profile/edit
803
- Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
804
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
805
-  (0.1ms) ROLLBACK
806
-  (0.0ms) BEGIN
807
- --------------------------------------------------------------------------------------
808
- PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
809
- --------------------------------------------------------------------------------------
810
-  (0.0ms) SAVEPOINT active_record_1
811
-  (0.0ms) RELEASE SAVEPOINT active_record_1
812
-  (0.0ms) SAVEPOINT active_record_1
813
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
814
-  (0.0ms) ROLLBACK
815
-  (0.0ms) BEGIN
816
- ---------------------------------------------------------------
817
- PushType::AuthenticatableTest::recoverable: test_0001_anonymous
818
- ---------------------------------------------------------------
819
-  (0.0ms) SAVEPOINT active_record_1
820
-  (0.0ms) RELEASE SAVEPOINT active_record_1
821
-  (0.0ms) SAVEPOINT active_record_1
822
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
823
-  (0.1ms) ROLLBACK
824
-  (0.1ms) BEGIN
825
- -------------------------------------------------------------------------------------
826
- PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
827
- -------------------------------------------------------------------------------------
828
-  (0.1ms) SAVEPOINT active_record_1
829
-  (0.1ms) RELEASE SAVEPOINT active_record_1
830
-  (0.1ms) SAVEPOINT active_record_1
831
-  (0.1ms) SAVEPOINT active_record_2
832
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
833
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
834
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:34.757639"], ["confirmed_at", "2016-02-06 15:52:34.757693"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:34.759130"], ["updated_at", "2016-02-06 15:52:34.759130"]]
835
-  (0.1ms) RELEASE SAVEPOINT active_record_2
836
- Processing by PushType::ProfilesController#update as HTML
837
- Parameters: {"user"=>{"name"=>""}}
838
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "49c0e729-372e-4cb8-9336-5b3e5f40d385"]]
839
-  (0.1ms) SAVEPOINT active_record_2
840
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-9@example.com' AND "push_type_users"."id" != '49c0e729-372e-4cb8-9336-5b3e5f40d385') LIMIT 1
841
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
842
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.9ms)
843
- Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.6ms)
844
801
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
845
802
   (0.1ms) ROLLBACK
846
803
   (0.1ms) BEGIN
847
- -------------------------------------------------------------------------------------
848
- PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
849
- -------------------------------------------------------------------------------------
850
-  (0.0ms) SAVEPOINT active_record_1
851
-  (0.0ms) RELEASE SAVEPOINT active_record_1
852
-  (0.0ms) SAVEPOINT active_record_1
853
-  (0.1ms) SAVEPOINT active_record_2
854
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
855
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
856
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:34.773786"], ["confirmed_at", "2016-02-06 15:52:34.773851"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:34.775297"], ["updated_at", "2016-02-06 15:52:34.775297"]]
857
-  (0.1ms) RELEASE SAVEPOINT active_record_2
858
- Processing by PushType::ProfilesController#update as HTML
859
- Parameters: {"user"=>{"name"=>""}}
860
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "e5781b48-50d2-4bcf-84da-8cb68318075a"]]
861
-  (0.1ms) SAVEPOINT active_record_2
862
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-10@example.com' AND "push_type_users"."id" != 'e5781b48-50d2-4bcf-84da-8cb68318075a') LIMIT 1
863
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
864
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (2.0ms)
865
- Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.6ms)
866
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
867
-  (0.1ms) ROLLBACK
868
-  (0.1ms) BEGIN
869
804
  --------------------------------------------------------------------------------------------------------------
870
805
  PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
871
806
  --------------------------------------------------------------------------------------------------------------
872
-  (0.1ms) SAVEPOINT active_record_1
873
-  (0.1ms) RELEASE SAVEPOINT active_record_1
874
-  (0.0ms) SAVEPOINT active_record_1
875
-  (0.1ms) SAVEPOINT active_record_2
807
+  (0.0ms) SAVEPOINT active_record_1
808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
809
+  (0.0ms) SAVEPOINT active_record_1
810
+  (0.0ms) SAVEPOINT active_record_2
811
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
876
812
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
877
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
878
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "0967b8d09fded25af6a2dd4a188303f8aa259a3993f40f4988e52d56a20c86c5"]]
879
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", "2016-02-06 15:52:34.791965"], ["updated_at", "2016-02-06 15:52:34.791965"], ["confirmation_token", "JhefnzqijsE5cSoX4Vem"], ["confirmation_sent_at", "2016-02-06 15:52:34.792728"]]
880
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
813
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "a9b2ea06ca4ac0665d51a33eb57d10ad067d9602c5eda0b6f1a9d0121eecda15"]]
814
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", "2016-02-15 15:07:01.832354"], ["updated_at", "2016-02-15 15:07:01.832354"], ["confirmation_token", "mEQySfd8Ea7KaUDxDpsA"], ["confirmation_sent_at", "2016-02-15 15:07:01.833107"]]
815
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
881
816
 
882
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
817
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
883
818
 
884
- Sent mail to joe-11@example.com (3.2ms)
885
- Date: Sat, 06 Feb 2016 15:52:34 +0000
819
+ Sent mail to joe-11@example.com (2.9ms)
820
+ Date: Mon, 15 Feb 2016 15:07:01 +0000
886
821
  From: pushtype@example.com
887
822
  Reply-To: pushtype@example.com
888
823
  To: joe-11@example.com
889
- Message-ID: <56b616c2c9bbc_10603fe961463be4493a5@Aarons-iMac.local.mail>
824
+ Message-ID: <56c1e995d2e26_40ab3fd7acc63be497966@Aarons-iMac.local.mail>
890
825
  Subject: [PushType] Confirm your account
891
826
  Mime-Version: 1.0
892
827
  Content-Type: multipart/alternative;
893
- boundary="--==_mimepart_56b616c2c9645_10603fe961463be449249";
828
+ boundary="--==_mimepart_56c1e995d28ed_40ab3fd7acc63be49788a";
894
829
  charset=UTF-8
895
830
  Content-Transfer-Encoding: 7bit
896
831
 
897
832
 
898
- ----==_mimepart_56b616c2c9645_10603fe961463be449249
833
+ ----==_mimepart_56c1e995d28ed_40ab3fd7acc63be49788a
899
834
  Content-Type: text/plain;
900
835
  charset=UTF-8
901
836
  Content-Transfer-Encoding: 7bit
@@ -910,10 +845,10 @@ created for you.
910
845
  To get started, confirm your account and set your own password by
911
846
  clicking the link below:
912
847
 
913
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=JhefnzqijsE5cSoX4Vem )
848
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=mEQySfd8Ea7KaUDxDpsA )
914
849
 
915
850
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
916
- ----==_mimepart_56b616c2c9645_10603fe961463be449249
851
+ ----==_mimepart_56c1e995d28ed_40ab3fd7acc63be49788a
917
852
  Content-Type: text/html;
918
853
  charset=UTF-8
919
854
  Content-Transfer-Encoding: 7bit
@@ -959,7 +894,7 @@ body {
959
894
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
960
895
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
961
896
  <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">
962
- <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=JhefnzqijsE5cSoX4Vem" 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>
897
+ <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=mEQySfd8Ea7KaUDxDpsA" 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>
963
898
  </td>
964
899
  </tr>
965
900
  </table>
@@ -1004,42 +939,47 @@ body {
1004
939
  </body>
1005
940
  </html>
1006
941
 
1007
- ----==_mimepart_56b616c2c9645_10603fe961463be449249--
942
+ ----==_mimepart_56c1e995d28ed_40ab3fd7acc63be49788a--
1008
943
 
1009
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1010
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1011
-  (0.1ms) ROLLBACK
1012
-  (0.0ms) BEGIN
1013
- ------------------------------------------------------------------------------------------
1014
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
1015
- ------------------------------------------------------------------------------------------
1016
-  (0.0ms) SAVEPOINT active_record_1
1017
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1018
-  (0.0ms) SAVEPOINT active_record_1
1019
-  (0.1ms) SAVEPOINT active_record_2
1020
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
944
+  (0.1ms) RELEASE SAVEPOINT active_record_2
945
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
946
+  (0.1ms) ROLLBACK
947
+  (0.1ms) BEGIN
948
+ ---------------------------------------------------------------
949
+ PushType::UsersControllerTest::PUT #invite: test_0002_anonymous
950
+ ---------------------------------------------------------------
951
+  (0.0ms) SAVEPOINT active_record_1
952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
953
+  (0.0ms) SAVEPOINT active_record_1
954
+  (0.1ms) SAVEPOINT active_record_2
1021
955
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
1022
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ed35e3c7dd20638a96f008f23655a06327ee4d41d12170d192ce36bc23c5b3bc"]]
1023
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", "2016-02-06 15:52:34.832855"], ["updated_at", "2016-02-06 15:52:34.832855"], ["confirmation_token", "A9Ar-ZRsNt5v5unbNZ_m"], ["confirmation_sent_at", "2016-02-06 15:52:34.833585"]]
956
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
957
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:01.868609"], ["confirmed_at", "2016-02-15 15:07:01.868659"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:01.870059"], ["updated_at", "2016-02-15 15:07:01.870059"]]
958
+  (0.1ms) RELEASE SAVEPOINT active_record_2
959
+  (0.0ms) SAVEPOINT active_record_2
960
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
961
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
962
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "a517a3999fc2071dc53bdc734926c33662f9d3c4fa0167651f30981264bb251f"]]
963
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["created_at", "2016-02-15 15:07:01.872377"], ["updated_at", "2016-02-15 15:07:01.872377"], ["confirmation_token", "rdSsBW4X49XoutBpccT9"], ["confirmation_sent_at", "2016-02-15 15:07:01.873082"]]
1024
964
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1025
965
 
1026
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
966
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
1027
967
 
1028
- Sent mail to joe-12@example.com (3.4ms)
1029
- Date: Sat, 06 Feb 2016 15:52:34 +0000
968
+ Sent mail to joe-13@example.com (3.3ms)
969
+ Date: Mon, 15 Feb 2016 15:07:01 +0000
1030
970
  From: pushtype@example.com
1031
971
  Reply-To: pushtype@example.com
1032
- To: joe-12@example.com
1033
- Message-ID: <56b616c2d3875_10603fe961463be44964f@Aarons-iMac.local.mail>
972
+ To: joe-13@example.com
973
+ Message-ID: <56c1e995e675e_40ab3fd7acc63be4982a5@Aarons-iMac.local.mail>
1034
974
  Subject: [PushType] Confirm your account
1035
975
  Mime-Version: 1.0
1036
976
  Content-Type: multipart/alternative;
1037
- boundary="--==_mimepart_56b616c2d316b_10603fe961463be44957f";
977
+ boundary="--==_mimepart_56c1e995e6136_40ab3fd7acc63be49816a";
1038
978
  charset=UTF-8
1039
979
  Content-Transfer-Encoding: 7bit
1040
980
 
1041
981
 
1042
- ----==_mimepart_56b616c2d316b_10603fe961463be44957f
982
+ ----==_mimepart_56c1e995e6136_40ab3fd7acc63be49816a
1043
983
  Content-Type: text/plain;
1044
984
  charset=UTF-8
1045
985
  Content-Transfer-Encoding: 7bit
@@ -1054,10 +994,10 @@ created for you.
1054
994
  To get started, confirm your account and set your own password by
1055
995
  clicking the link below:
1056
996
 
1057
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=A9Ar-ZRsNt5v5unbNZ_m )
997
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=rdSsBW4X49XoutBpccT9 )
1058
998
 
1059
999
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1060
- ----==_mimepart_56b616c2d316b_10603fe961463be44957f
1000
+ ----==_mimepart_56c1e995e6136_40ab3fd7acc63be49816a
1061
1001
  Content-Type: text/html;
1062
1002
  charset=UTF-8
1063
1003
  Content-Transfer-Encoding: 7bit
@@ -1103,7 +1043,7 @@ body {
1103
1043
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1104
1044
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1105
1045
  <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">
1106
- <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=A9Ar-ZRsNt5v5unbNZ_m" 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>
1046
+ <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=rdSsBW4X49XoutBpccT9" 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>
1107
1047
  </td>
1108
1048
  </tr>
1109
1049
  </table>
@@ -1140,57 +1080,42 @@ body {
1140
1080
  <!-- /content -->
1141
1081
 
1142
1082
  </td>
1143
- <td style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0"></td>
1144
- </tr>
1145
- </table>
1146
- <!-- /footer -->
1147
-
1148
- </body>
1149
- </html>
1150
-
1151
- ----==_mimepart_56b616c2d316b_10603fe961463be44957f--
1152
-
1153
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1154
- Processing by PushType::ConfirmationsController#update as HTML
1155
- Parameters: {"user"=>{"confirmation_token"=>"A9Ar-ZRsNt5v5unbNZ_m", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1156
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "A9Ar-ZRsNt5v5unbNZ_m"]]
1157
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-12@example.com' AND "push_type_users"."id" != 'c33d73a4-0d5d-4cce-8f8f-517283cf6e2d') LIMIT 1
1158
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1159
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (4.3ms)
1160
- Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms)
1161
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1162
-  (0.1ms) ROLLBACK
1163
-  (0.1ms) BEGIN
1164
- ------------------------------------------------------------------------------------------
1165
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
1166
- ------------------------------------------------------------------------------------------
1167
-  (0.0ms) SAVEPOINT active_record_1
1168
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1169
-  (0.0ms) SAVEPOINT active_record_1
1083
+ <td style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0"></td>
1084
+ </tr>
1085
+ </table>
1086
+ <!-- /footer -->
1087
+
1088
+ </body>
1089
+ </html>
1090
+
1091
+ ----==_mimepart_56c1e995e6136_40ab3fd7acc63be49816a--
1092
+
1093
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1094
+ Processing by PushType::UsersController#invite as HTML
1095
+ Parameters: {"id"=>"fdc132fe-c8ab-4060-a82b-68f1c358a300"}
1096
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "c2c97020-b2a2-480a-aecd-e6607a6ee15b"]]
1097
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "fdc132fe-c8ab-4060-a82b-68f1c358a300"]]
1170
1098
   (0.1ms) SAVEPOINT active_record_2
1171
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
1172
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
1173
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "3e6a92ade44b2587af977e56b306169b41bfb503bcec5818325f1b6289d1b5db"]]
1174
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["created_at", "2016-02-06 15:52:34.884177"], ["updated_at", "2016-02-06 15:52:34.884177"], ["confirmation_token", "uG2BhRWVDJTcCa1HGyZ_"], ["confirmation_sent_at", "2016-02-06 15:52:34.885048"]]
1175
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1099
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1100
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1176
1101
 
1177
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
1102
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.4ms
1178
1103
 
1179
- Sent mail to joe-13@example.com (3.1ms)
1180
- Date: Sat, 06 Feb 2016 15:52:34 +0000
1104
+ Sent mail to joe-13@example.com (3.2ms)
1105
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
1181
1106
  From: pushtype@example.com
1182
1107
  Reply-To: pushtype@example.com
1183
1108
  To: joe-13@example.com
1184
- Message-ID: <56b616c2e00ba_10603fe961463be44998c@Aarons-iMac.local.mail>
1109
+ Message-ID: <56c1e99623ef_40ab3fd7acc63be49857f@Aarons-iMac.local.mail>
1185
1110
  Subject: [PushType] Confirm your account
1186
1111
  Mime-Version: 1.0
1187
1112
  Content-Type: multipart/alternative;
1188
- boundary="--==_mimepart_56b616c2dfb49_10603fe961463be449852";
1113
+ boundary="--==_mimepart_56c1e9961e4e_40ab3fd7acc63be49849c";
1189
1114
  charset=UTF-8
1190
1115
  Content-Transfer-Encoding: 7bit
1191
1116
 
1192
1117
 
1193
- ----==_mimepart_56b616c2dfb49_10603fe961463be449852
1118
+ ----==_mimepart_56c1e9961e4e_40ab3fd7acc63be49849c
1194
1119
  Content-Type: text/plain;
1195
1120
  charset=UTF-8
1196
1121
  Content-Transfer-Encoding: 7bit
@@ -1205,10 +1130,10 @@ created for you.
1205
1130
  To get started, confirm your account and set your own password by
1206
1131
  clicking the link below:
1207
1132
 
1208
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=uG2BhRWVDJTcCa1HGyZ_ )
1133
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=rdSsBW4X49XoutBpccT9 )
1209
1134
 
1210
1135
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1211
- ----==_mimepart_56b616c2dfb49_10603fe961463be449852
1136
+ ----==_mimepart_56c1e9961e4e_40ab3fd7acc63be49849c
1212
1137
  Content-Type: text/html;
1213
1138
  charset=UTF-8
1214
1139
  Content-Transfer-Encoding: 7bit
@@ -1254,7 +1179,7 @@ body {
1254
1179
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1255
1180
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1256
1181
  <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">
1257
- <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=uG2BhRWVDJTcCa1HGyZ_" 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>
1182
+ <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=rdSsBW4X49XoutBpccT9" 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>
1258
1183
  </td>
1259
1184
  </tr>
1260
1185
  </table>
@@ -1299,49 +1224,48 @@ body {
1299
1224
  </body>
1300
1225
  </html>
1301
1226
 
1302
- ----==_mimepart_56b616c2dfb49_10603fe961463be449852--
1227
+ ----==_mimepart_56c1e9961e4e_40ab3fd7acc63be49849c--
1303
1228
 
1304
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1305
- Processing by PushType::ConfirmationsController#update as HTML
1306
- Parameters: {"user"=>{"confirmation_token"=>"uG2BhRWVDJTcCa1HGyZ_", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1307
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "uG2BhRWVDJTcCa1HGyZ_"]]
1308
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-13@example.com' AND "push_type_users"."id" != '6dc91ab6-7a14-415e-a859-2a2895eeb066') LIMIT 1
1309
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1310
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1311
- Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
1229
+ Redirected to /push_type/users
1230
+ Completed 302 Found in 64ms (ActiveRecord: 0.4ms)
1312
1231
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1313
1232
   (0.1ms) ROLLBACK
1314
1233
   (0.1ms) BEGIN
1315
- ------------------------------------------------------------------------------------------
1316
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
1317
- ------------------------------------------------------------------------------------------
1234
+ ---------------------------------------------------------------
1235
+ PushType::UsersControllerTest::PUT #invite: test_0003_anonymous
1236
+ ---------------------------------------------------------------
1318
1237
   (0.0ms) SAVEPOINT active_record_1
1319
1238
   (0.0ms) RELEASE SAVEPOINT active_record_1
1320
1239
   (0.0ms) SAVEPOINT active_record_1
1321
-  (0.0ms) SAVEPOINT active_record_2
1240
+  (0.1ms) SAVEPOINT active_record_2
1322
1241
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1323
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1324
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "f03cc5f5154d773c4c787921bd55b6a2381003c506b2342f5175881fd5428660"]]
1325
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", "2016-02-06 15:52:34.931939"], ["updated_at", "2016-02-06 15:52:34.931939"], ["confirmation_token", "b-eB-TF3Az_y53iq1gRN"], ["confirmation_sent_at", "2016-02-06 15:52:34.932741"]]
1242
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1243
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:02.013602"], ["confirmed_at", "2016-02-15 15:07:02.013658"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:02.015110"], ["updated_at", "2016-02-15 15:07:02.015110"]]
1244
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1245
+  (0.0ms) SAVEPOINT active_record_2
1246
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1247
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1248
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "cbc221ba39e378e720179a240dd1b13eb182ff3f721c4ae7ad2a84a5937ef5b6"]]
1249
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", "2016-02-15 15:07:02.017526"], ["updated_at", "2016-02-15 15:07:02.017526"], ["confirmation_token", "Q4f4uXxb_sD6sYgy56Fa"], ["confirmation_sent_at", "2016-02-15 15:07:02.019209"]]
1326
1250
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1327
1251
 
1328
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1252
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
1329
1253
 
1330
- Sent mail to joe-14@example.com (3.4ms)
1331
- Date: Sat, 06 Feb 2016 15:52:34 +0000
1254
+ Sent mail to joe-15@example.com (3.1ms)
1255
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
1332
1256
  From: pushtype@example.com
1333
1257
  Reply-To: pushtype@example.com
1334
- To: joe-14@example.com
1335
- Message-ID: <56b616c2eb731_10603fe961463be450289@Aarons-iMac.local.mail>
1258
+ To: joe-15@example.com
1259
+ Message-ID: <56c1e996103e3_40ab3fd7acc63be49882@Aarons-iMac.local.mail>
1336
1260
  Subject: [PushType] Confirm your account
1337
1261
  Mime-Version: 1.0
1338
1262
  Content-Type: multipart/alternative;
1339
- boundary="--==_mimepart_56b616c2eb15e_10603fe961463be45011";
1263
+ boundary="--==_mimepart_56c1e996fe46_40ab3fd7acc63be4987b6";
1340
1264
  charset=UTF-8
1341
1265
  Content-Transfer-Encoding: 7bit
1342
1266
 
1343
1267
 
1344
- ----==_mimepart_56b616c2eb15e_10603fe961463be45011
1268
+ ----==_mimepart_56c1e996fe46_40ab3fd7acc63be4987b6
1345
1269
  Content-Type: text/plain;
1346
1270
  charset=UTF-8
1347
1271
  Content-Transfer-Encoding: 7bit
@@ -1356,10 +1280,10 @@ created for you.
1356
1280
  To get started, confirm your account and set your own password by
1357
1281
  clicking the link below:
1358
1282
 
1359
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=b-eB-TF3Az_y53iq1gRN )
1283
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Q4f4uXxb_sD6sYgy56Fa )
1360
1284
 
1361
1285
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1362
- ----==_mimepart_56b616c2eb15e_10603fe961463be45011
1286
+ ----==_mimepart_56c1e996fe46_40ab3fd7acc63be4987b6
1363
1287
  Content-Type: text/html;
1364
1288
  charset=UTF-8
1365
1289
  Content-Transfer-Encoding: 7bit
@@ -1405,7 +1329,7 @@ body {
1405
1329
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1406
1330
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1407
1331
  <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">
1408
- <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=b-eB-TF3Az_y53iq1gRN" 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>
1332
+ <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=Q4f4uXxb_sD6sYgy56Fa" 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>
1409
1333
  </td>
1410
1334
  </tr>
1411
1335
  </table>
@@ -1450,58 +1374,34 @@ body {
1450
1374
  </body>
1451
1375
  </html>
1452
1376
 
1453
- ----==_mimepart_56b616c2eb15e_10603fe961463be45011--
1377
+ ----==_mimepart_56c1e996fe46_40ab3fd7acc63be4987b6--
1454
1378
 
1455
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1456
- Processing by PushType::ConfirmationsController#update as HTML
1457
- Parameters: {"user"=>{"confirmation_token"=>"b-eB-TF3Az_y53iq1gRN", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1458
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "b-eB-TF3Az_y53iq1gRN"]]
1459
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-14@example.com' AND "push_type_users"."id" != '677b139a-b36e-41fe-8068-013bc4af10ad') LIMIT 1
1460
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1461
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
1462
- Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.3ms)
1463
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1464
-  (0.1ms) ROLLBACK
1465
-  (0.1ms) BEGIN
1466
- ---------------------------------------------------------------
1467
- PushType::AuthenticatableTest::confirmable: test_0001_anonymous
1468
- ---------------------------------------------------------------
1469
-  (0.1ms) SAVEPOINT active_record_1
1470
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1471
-  (0.0ms) SAVEPOINT active_record_1
1472
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1473
-  (0.1ms) ROLLBACK
1474
-  (0.1ms) BEGIN
1475
- ----------------------------------------------------------------------------------------------------
1476
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
1477
- ----------------------------------------------------------------------------------------------------
1478
-  (0.1ms) SAVEPOINT active_record_1
1479
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1480
-  (0.1ms) SAVEPOINT active_record_1
1481
-  (0.1ms) SAVEPOINT active_record_2
1482
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1483
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1484
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "8160c33ee5e99faab4d03a5dbab62df662908488cc835a2f79be6452bbc48af4"]]
1485
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", "2016-02-06 15:52:34.984319"], ["updated_at", "2016-02-06 15:52:34.984319"], ["confirmation_token", "xy3Thnw4-jKVPFS5C2ft"], ["confirmation_sent_at", "2016-02-06 15:52:34.985079"]]
1486
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1379
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1380
+ Processing by PushType::UsersController#invite as HTML
1381
+ Parameters: {"id"=>"d6be2ddd-410a-4619-894c-daa1c513eba9"}
1382
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "800d5e93-cb0a-46d6-b35a-5a2411be54a5"]]
1383
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "d6be2ddd-410a-4619-894c-daa1c513eba9"]]
1384
+  (0.1ms) SAVEPOINT active_record_2
1385
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1386
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1487
1387
 
1488
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
1388
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
1489
1389
 
1490
- Sent mail to joe-15@example.com (3.2ms)
1491
- Date: Sat, 06 Feb 2016 15:52:35 +0000
1390
+ Sent mail to joe-15@example.com (3.3ms)
1391
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
1492
1392
  From: pushtype@example.com
1493
1393
  Reply-To: pushtype@example.com
1494
1394
  To: joe-15@example.com
1495
- Message-ID: <56b616c34795_10603fe961463be4505f9@Aarons-iMac.local.mail>
1395
+ Message-ID: <56c1e9961b81d_40ab3fd7acc63be4991de@Aarons-iMac.local.mail>
1496
1396
  Subject: [PushType] Confirm your account
1497
1397
  Mime-Version: 1.0
1498
1398
  Content-Type: multipart/alternative;
1499
- boundary="--==_mimepart_56b616c3420f_10603fe961463be450454";
1399
+ boundary="--==_mimepart_56c1e9961b232_40ab3fd7acc63be49907c";
1500
1400
  charset=UTF-8
1501
1401
  Content-Transfer-Encoding: 7bit
1502
1402
 
1503
1403
 
1504
- ----==_mimepart_56b616c3420f_10603fe961463be450454
1404
+ ----==_mimepart_56c1e9961b232_40ab3fd7acc63be49907c
1505
1405
  Content-Type: text/plain;
1506
1406
  charset=UTF-8
1507
1407
  Content-Transfer-Encoding: 7bit
@@ -1516,10 +1416,10 @@ created for you.
1516
1416
  To get started, confirm your account and set your own password by
1517
1417
  clicking the link below:
1518
1418
 
1519
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=xy3Thnw4-jKVPFS5C2ft )
1419
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Q4f4uXxb_sD6sYgy56Fa )
1520
1420
 
1521
1421
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1522
- ----==_mimepart_56b616c3420f_10603fe961463be450454
1422
+ ----==_mimepart_56c1e9961b232_40ab3fd7acc63be49907c
1523
1423
  Content-Type: text/html;
1524
1424
  charset=UTF-8
1525
1425
  Content-Transfer-Encoding: 7bit
@@ -1565,7 +1465,7 @@ body {
1565
1465
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1566
1466
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1567
1467
  <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">
1568
- <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=xy3Thnw4-jKVPFS5C2ft" 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>
1468
+ <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=Q4f4uXxb_sD6sYgy56Fa" 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>
1569
1469
  </td>
1570
1470
  </tr>
1571
1471
  </table>
@@ -1610,48 +1510,48 @@ body {
1610
1510
  </body>
1611
1511
  </html>
1612
1512
 
1613
- ----==_mimepart_56b616c3420f_10603fe961463be450454--
1513
+ ----==_mimepart_56c1e9961b232_40ab3fd7acc63be49907c--
1614
1514
 
1615
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1616
- Processing by PushType::ConfirmationsController#show as HTML
1617
- Parameters: {"confirmation_token"=>"xy3Thnw4-jKVPFS5C2ft"}
1618
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "xy3Thnw4-jKVPFS5C2ft"]]
1619
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1620
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
1621
- Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.1ms)
1515
+ Redirected to /push_type/users
1516
+ Completed 302 Found in 45ms (ActiveRecord: 0.4ms)
1622
1517
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1623
1518
   (0.1ms) ROLLBACK
1624
1519
   (0.1ms) BEGIN
1625
- ----------------------------------------------------------------------------------------------------
1626
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
1627
- ----------------------------------------------------------------------------------------------------
1520
+ ---------------------------------------------------------------
1521
+ PushType::UsersControllerTest::PUT #invite: test_0001_anonymous
1522
+ ---------------------------------------------------------------
1628
1523
   (0.0ms) SAVEPOINT active_record_1
1629
1524
   (0.0ms) RELEASE SAVEPOINT active_record_1
1630
1525
   (0.0ms) SAVEPOINT active_record_1
1631
1526
   (0.1ms) SAVEPOINT active_record_2
1632
1527
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1633
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1634
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "339784d041a541032fc8036a132cf2f32bce378d24fa82a7e07efce239dadd49"]]
1635
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", "2016-02-06 15:52:35.032036"], ["updated_at", "2016-02-06 15:52:35.032036"], ["confirmation_token", "7pJpwsGtGYEizKLyKaAK"], ["confirmation_sent_at", "2016-02-06 15:52:35.032786"]]
1528
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1529
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["confirmation_sent_at", "2016-02-15 15:07:02.116794"], ["confirmed_at", "2016-02-15 15:07:02.116893"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-15 15:07:02.118361"], ["updated_at", "2016-02-15 15:07:02.118361"]]
1530
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1531
+  (0.0ms) SAVEPOINT active_record_2
1532
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
1533
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
1534
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "df5b2c78b6dc4261677428ece32f2ce6af9d8e8afd7e798e7bd07475ee46024b"]]
1535
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", "2016-02-15 15:07:02.120847"], ["updated_at", "2016-02-15 15:07:02.120847"], ["confirmation_token", "9Ri294HH2uRVZQx3WRRv"], ["confirmation_sent_at", "2016-02-15 15:07:02.121645"]]
1636
1536
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1637
1537
 
1638
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1538
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
1639
1539
 
1640
- Sent mail to joe-16@example.com (3.3ms)
1641
- Date: Sat, 06 Feb 2016 15:52:35 +0000
1540
+ Sent mail to joe-17@example.com (3.4ms)
1541
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
1642
1542
  From: pushtype@example.com
1643
1543
  Reply-To: pushtype@example.com
1644
- To: joe-16@example.com
1645
- Message-ID: <56b616c3fe39_10603fe961463be450853@Aarons-iMac.local.mail>
1544
+ To: joe-17@example.com
1545
+ Message-ID: <56c1e99626655_40ab3fd7acc63be49948@Aarons-iMac.local.mail>
1646
1546
  Subject: [PushType] Confirm your account
1647
1547
  Mime-Version: 1.0
1648
1548
  Content-Type: multipart/alternative;
1649
- boundary="--==_mimepart_56b616c3f8a2_10603fe961463be45077f";
1549
+ boundary="--==_mimepart_56c1e99626090_40ab3fd7acc63be4993b1";
1650
1550
  charset=UTF-8
1651
1551
  Content-Transfer-Encoding: 7bit
1652
1552
 
1653
1553
 
1654
- ----==_mimepart_56b616c3f8a2_10603fe961463be45077f
1554
+ ----==_mimepart_56c1e99626090_40ab3fd7acc63be4993b1
1655
1555
  Content-Type: text/plain;
1656
1556
  charset=UTF-8
1657
1557
  Content-Transfer-Encoding: 7bit
@@ -1666,10 +1566,10 @@ created for you.
1666
1566
  To get started, confirm your account and set your own password by
1667
1567
  clicking the link below:
1668
1568
 
1669
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=7pJpwsGtGYEizKLyKaAK )
1569
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=9Ri294HH2uRVZQx3WRRv )
1670
1570
 
1671
1571
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1672
- ----==_mimepart_56b616c3f8a2_10603fe961463be45077f
1572
+ ----==_mimepart_56c1e99626090_40ab3fd7acc63be4993b1
1673
1573
  Content-Type: text/html;
1674
1574
  charset=UTF-8
1675
1575
  Content-Transfer-Encoding: 7bit
@@ -1715,7 +1615,7 @@ body {
1715
1615
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1716
1616
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1717
1617
  <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">
1718
- <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=7pJpwsGtGYEizKLyKaAK" 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>
1618
+ <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=9Ri294HH2uRVZQx3WRRv" 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>
1719
1619
  </td>
1720
1620
  </tr>
1721
1621
  </table>
@@ -1760,53 +1660,34 @@ body {
1760
1660
  </body>
1761
1661
  </html>
1762
1662
 
1763
- ----==_mimepart_56b616c3f8a2_10603fe961463be45077f--
1663
+ ----==_mimepart_56c1e99626090_40ab3fd7acc63be4993b1--
1764
1664
 
1765
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1766
- Processing by PushType::ConfirmationsController#show as HTML
1767
- Parameters: {"confirmation_token"=>"7pJpwsGtGYEizKLyKaAK"}
1768
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "7pJpwsGtGYEizKLyKaAK"]]
1769
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1770
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
1771
- Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.1ms)
1772
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1773
-  (0.1ms) ROLLBACK
1774
-  (0.1ms) BEGIN
1775
- ---------------------------------------------------------------
1776
- PushType::UsersControllerTest::PUT #invite: test_0001_anonymous
1777
- ---------------------------------------------------------------
1778
-  (0.1ms) SAVEPOINT active_record_1
1779
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1780
-  (0.0ms) SAVEPOINT active_record_1
1665
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1666
+ Processing by PushType::UsersController#invite as HTML
1667
+ Parameters: {"id"=>"a39bd8c0-a973-49fc-82f1-2f76f6e4bdd1"}
1668
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "d3cbda52-920e-4619-ab3e-b19b8680bab8"]]
1669
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "a39bd8c0-a973-49fc-82f1-2f76f6e4bdd1"]]
1781
1670
   (0.1ms) SAVEPOINT active_record_2
1782
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
1783
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
1784
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:35.077796"], ["confirmed_at", "2016-02-06 15:52:35.077862"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:35.079334"], ["updated_at", "2016-02-06 15:52:35.079334"]]
1785
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1786
-  (0.1ms) SAVEPOINT active_record_2
1787
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
1788
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
1789
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "63f4c53980542b9bbb950f9c24dd3efa31863481d312b26c270f337883d50ec0"]]
1790
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", "2016-02-06 15:52:35.081807"], ["updated_at", "2016-02-06 15:52:35.081807"], ["confirmation_token", "zJWxfHLGRrZQyM5eWsTM"], ["confirmation_sent_at", "2016-02-06 15:52:35.082478"]]
1791
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1671
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1672
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1792
1673
 
1793
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
1674
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1794
1675
 
1795
- Sent mail to joe-18@example.com (3.5ms)
1796
- Date: Sat, 06 Feb 2016 15:52:35 +0000
1676
+ Sent mail to joe-17@example.com (3.1ms)
1677
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
1797
1678
  From: pushtype@example.com
1798
1679
  Reply-To: pushtype@example.com
1799
- To: joe-18@example.com
1800
- Message-ID: <56b616c31c7fc_10603fe961463be451130@Aarons-iMac.local.mail>
1680
+ To: joe-17@example.com
1681
+ Message-ID: <56c1e9962fd34_40ab3fd7acc63be49977c@Aarons-iMac.local.mail>
1801
1682
  Subject: [PushType] Confirm your account
1802
1683
  Mime-Version: 1.0
1803
1684
  Content-Type: multipart/alternative;
1804
- boundary="--==_mimepart_56b616c31c104_10603fe961463be4510cf";
1685
+ boundary="--==_mimepart_56c1e9962f7ba_40ab3fd7acc63be4996da";
1805
1686
  charset=UTF-8
1806
1687
  Content-Transfer-Encoding: 7bit
1807
1688
 
1808
1689
 
1809
- ----==_mimepart_56b616c31c104_10603fe961463be4510cf
1690
+ ----==_mimepart_56c1e9962f7ba_40ab3fd7acc63be4996da
1810
1691
  Content-Type: text/plain;
1811
1692
  charset=UTF-8
1812
1693
  Content-Transfer-Encoding: 7bit
@@ -1821,10 +1702,10 @@ created for you.
1821
1702
  To get started, confirm your account and set your own password by
1822
1703
  clicking the link below:
1823
1704
 
1824
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=zJWxfHLGRrZQyM5eWsTM )
1705
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=9Ri294HH2uRVZQx3WRRv )
1825
1706
 
1826
1707
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1827
- ----==_mimepart_56b616c31c104_10603fe961463be4510cf
1708
+ ----==_mimepart_56c1e9962f7ba_40ab3fd7acc63be4996da
1828
1709
  Content-Type: text/html;
1829
1710
  charset=UTF-8
1830
1711
  Content-Transfer-Encoding: 7bit
@@ -1870,7 +1751,7 @@ body {
1870
1751
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1871
1752
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1872
1753
  <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">
1873
- <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=zJWxfHLGRrZQyM5eWsTM" 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>
1754
+ <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=9Ri294HH2uRVZQx3WRRv" 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>
1874
1755
  </td>
1875
1756
  </tr>
1876
1757
  </table>
@@ -1915,34 +1796,70 @@ body {
1915
1796
  </body>
1916
1797
  </html>
1917
1798
 
1918
- ----==_mimepart_56b616c31c104_10603fe961463be4510cf--
1799
+ ----==_mimepart_56c1e9962f7ba_40ab3fd7acc63be4996da--
1919
1800
 
1920
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1921
- Processing by PushType::UsersController#invite as HTML
1922
- Parameters: {"id"=>"3d3025df-7844-4360-af0a-31c8faf6319c"}
1923
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "b104b3b6-ca97-4f61-b5bb-c14b95b39480"]]
1924
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "3d3025df-7844-4360-af0a-31c8faf6319c"]]
1925
-  (0.1ms) SAVEPOINT active_record_2
1926
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1801
+ Redirected to /push_type/users
1802
+ Completed 302 Found in 37ms (ActiveRecord: 0.4ms)
1803
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1804
+  (0.1ms) ROLLBACK
1805
+  (0.1ms) BEGIN
1806
+ ---------------------------------------------------------------
1807
+ PushType::AuthenticatableTest::recoverable: test_0001_anonymous
1808
+ ---------------------------------------------------------------
1809
+  (0.1ms) SAVEPOINT active_record_1
1810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1811
+  (0.0ms) SAVEPOINT active_record_1
1812
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1813
+  (0.1ms) ROLLBACK
1814
+  (0.1ms) BEGIN
1815
+ --------------------------------------------------------
1816
+ PushType::AuthenticationMethodsTest: test_0001_anonymous
1817
+ --------------------------------------------------------
1818
+  (0.1ms) SAVEPOINT active_record_1
1819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1820
+  (0.0ms) SAVEPOINT active_record_1
1821
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1822
+  (0.0ms) ROLLBACK
1823
+  (0.1ms) BEGIN
1824
+ --------------------------------------------------------
1825
+ PushType::AuthenticationMethodsTest: test_0002_anonymous
1826
+ --------------------------------------------------------
1827
+  (0.0ms) SAVEPOINT active_record_1
1828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1829
+  (0.0ms) SAVEPOINT active_record_1
1830
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1831
+  (0.0ms) ROLLBACK
1832
+  (0.0ms) BEGIN
1833
+ ----------------------------------------------------------------------------------------
1834
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
1835
+ ----------------------------------------------------------------------------------------
1836
+  (0.0ms) SAVEPOINT active_record_1
1837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1838
+  (0.0ms) SAVEPOINT active_record_1
1839
+  (0.0ms) SAVEPOINT active_record_2
1840
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
1841
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
1842
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "d8d0e76112bc7bb56e45bb91aa6adf9921b097b16d04c8ba9601d4f234dd3c94"]]
1843
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", "2016-02-15 15:07:02.206397"], ["updated_at", "2016-02-15 15:07:02.206397"], ["confirmation_token", "XzVFqbkxi4hkcb2ZN7tx"], ["confirmation_sent_at", "2016-02-15 15:07:02.207114"]]
1927
1844
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1928
1845
 
1929
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1846
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
1930
1847
 
1931
- Sent mail to joe-18@example.com (3.1ms)
1932
- Date: Sat, 06 Feb 2016 15:52:35 +0000
1848
+ Sent mail to joe-18@example.com (2.9ms)
1849
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
1933
1850
  From: pushtype@example.com
1934
1851
  Reply-To: pushtype@example.com
1935
1852
  To: joe-18@example.com
1936
- Message-ID: <56b616c325f94_10603fe961463be4514db@Aarons-iMac.local.mail>
1853
+ Message-ID: <56c1e9963b1f7_40ab3fd7acc63be41000c@Aarons-iMac.local.mail>
1937
1854
  Subject: [PushType] Confirm your account
1938
1855
  Mime-Version: 1.0
1939
1856
  Content-Type: multipart/alternative;
1940
- boundary="--==_mimepart_56b616c325a26_10603fe961463be45138b";
1857
+ boundary="--==_mimepart_56c1e9963acbe_40ab3fd7acc63be499911";
1941
1858
  charset=UTF-8
1942
1859
  Content-Transfer-Encoding: 7bit
1943
1860
 
1944
1861
 
1945
- ----==_mimepart_56b616c325a26_10603fe961463be45138b
1862
+ ----==_mimepart_56c1e9963acbe_40ab3fd7acc63be499911
1946
1863
  Content-Type: text/plain;
1947
1864
  charset=UTF-8
1948
1865
  Content-Transfer-Encoding: 7bit
@@ -1957,10 +1874,10 @@ created for you.
1957
1874
  To get started, confirm your account and set your own password by
1958
1875
  clicking the link below:
1959
1876
 
1960
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=zJWxfHLGRrZQyM5eWsTM )
1877
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=XzVFqbkxi4hkcb2ZN7tx )
1961
1878
 
1962
1879
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1963
- ----==_mimepart_56b616c325a26_10603fe961463be45138b
1880
+ ----==_mimepart_56c1e9963acbe_40ab3fd7acc63be499911
1964
1881
  Content-Type: text/html;
1965
1882
  charset=UTF-8
1966
1883
  Content-Transfer-Encoding: 7bit
@@ -2006,7 +1923,7 @@ body {
2006
1923
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2007
1924
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2008
1925
  <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">
2009
- <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=zJWxfHLGRrZQyM5eWsTM" 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>
1926
+ <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=XzVFqbkxi4hkcb2ZN7tx" 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>
2010
1927
  </td>
2011
1928
  </tr>
2012
1929
  </table>
@@ -2051,48 +1968,55 @@ body {
2051
1968
  </body>
2052
1969
  </html>
2053
1970
 
2054
- ----==_mimepart_56b616c325a26_10603fe961463be45138b--
1971
+ ----==_mimepart_56c1e9963acbe_40ab3fd7acc63be499911--
2055
1972
 
2056
- Redirected to /push_type/users
2057
- Completed 302 Found in 37ms (ActiveRecord: 0.4ms)
1973
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1974
+ Processing by PushType::ConfirmationsController#update as HTML
1975
+ Parameters: {"user"=>{"confirmation_token"=>"XzVFqbkxi4hkcb2ZN7tx", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1976
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "XzVFqbkxi4hkcb2ZN7tx"]]
1977
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-18@example.com' AND "push_type_users"."id" != 'c7da2289-6627-4779-b084-170180d816f2') LIMIT 1
1978
+  (0.1ms) SAVEPOINT active_record_2
1979
+ 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$T98UcqW0.5zzBpjI7fyeD.hKRuoxrAjiJ0m9dGtC1WclMb0sCtYLO"], ["confirmed_at", "2016-02-15 15:07:02.248290"], ["updated_at", "2016-02-15 15:07:02.248723"], ["id", "c7da2289-6627-4779-b084-170180d816f2"]]
1980
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1981
+  (0.1ms) SAVEPOINT active_record_2
1982
+ SQL (0.2ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2016-02-15 15:07:02.250236"], ["current_sign_in_at", "2016-02-15 15:07:02.250236"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2016-02-15 15:07:02.250757"], ["id", "c7da2289-6627-4779-b084-170180d816f2"]]
1983
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1984
+ Redirected to http://test.host/push_type/
1985
+ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
1986
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "c7da2289-6627-4779-b084-170180d816f2"]]
2058
1987
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2059
1988
   (0.1ms) ROLLBACK
2060
1989
   (0.1ms) BEGIN
2061
- ---------------------------------------------------------------
2062
- PushType::UsersControllerTest::PUT #invite: test_0002_anonymous
2063
- ---------------------------------------------------------------
2064
-  (0.0ms) SAVEPOINT active_record_1
1990
+ ----------------------------------------------------------------------------------------
1991
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
1992
+ ----------------------------------------------------------------------------------------
1993
+  (0.1ms) SAVEPOINT active_record_1
2065
1994
   (0.0ms) RELEASE SAVEPOINT active_record_1
2066
1995
   (0.0ms) SAVEPOINT active_record_1
2067
1996
   (0.0ms) SAVEPOINT active_record_2
2068
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
2069
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
2070
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:35.159791"], ["confirmed_at", "2016-02-06 15:52:35.159864"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:35.161245"], ["updated_at", "2016-02-06 15:52:35.161245"]]
2071
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2072
-  (0.1ms) SAVEPOINT active_record_2
2073
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2074
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2075
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "1cc66a7c9bbc3ca7c054cfafbaff376daa559639de0477a2a9e9406d3b3c40fe"]]
2076
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", "2016-02-06 15:52:35.163794"], ["updated_at", "2016-02-06 15:52:35.163794"], ["confirmation_token", "HUwuxNm9616micGgtTyS"], ["confirmation_sent_at", "2016-02-06 15:52:35.164496"]]
1997
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
1998
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
1999
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "8af8561289764582fec63e3b46a1459ce134258f987ee2d80de5f62ce8f3741e"]]
2000
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", "2016-02-15 15:07:02.255720"], ["updated_at", "2016-02-15 15:07:02.255720"], ["confirmation_token", "Wq5YPyfBoEa7skPRJvKs"], ["confirmation_sent_at", "2016-02-15 15:07:02.256345"]]
2077
2001
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2078
2002
 
2079
2003
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
2080
2004
 
2081
- Sent mail to joe-20@example.com (3.1ms)
2082
- Date: Sat, 06 Feb 2016 15:52:35 +0000
2005
+ Sent mail to joe-19@example.com (3.0ms)
2006
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
2083
2007
  From: pushtype@example.com
2084
2008
  Reply-To: pushtype@example.com
2085
- To: joe-20@example.com
2086
- Message-ID: <56b616c330311_10603fe961463be45173@Aarons-iMac.local.mail>
2009
+ To: joe-19@example.com
2010
+ Message-ID: <56c1e996461e0_40ab3fd7acc63be41003ad@Aarons-iMac.local.mail>
2087
2011
  Subject: [PushType] Confirm your account
2088
2012
  Mime-Version: 1.0
2089
2013
  Content-Type: multipart/alternative;
2090
- boundary="--==_mimepart_56b616c32fd6e_10603fe961463be451652";
2014
+ boundary="--==_mimepart_56c1e99645c99_40ab3fd7acc63be41002e2";
2091
2015
  charset=UTF-8
2092
2016
  Content-Transfer-Encoding: 7bit
2093
2017
 
2094
2018
 
2095
- ----==_mimepart_56b616c32fd6e_10603fe961463be451652
2019
+ ----==_mimepart_56c1e99645c99_40ab3fd7acc63be41002e2
2096
2020
  Content-Type: text/plain;
2097
2021
  charset=UTF-8
2098
2022
  Content-Transfer-Encoding: 7bit
@@ -2107,10 +2031,10 @@ created for you.
2107
2031
  To get started, confirm your account and set your own password by
2108
2032
  clicking the link below:
2109
2033
 
2110
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=HUwuxNm9616micGgtTyS )
2034
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Wq5YPyfBoEa7skPRJvKs )
2111
2035
 
2112
2036
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2113
- ----==_mimepart_56b616c32fd6e_10603fe961463be451652
2037
+ ----==_mimepart_56c1e99645c99_40ab3fd7acc63be41002e2
2114
2038
  Content-Type: text/html;
2115
2039
  charset=UTF-8
2116
2040
  Content-Transfer-Encoding: 7bit
@@ -2156,7 +2080,7 @@ body {
2156
2080
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2157
2081
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2158
2082
  <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">
2159
- <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=HUwuxNm9616micGgtTyS" 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>
2083
+ <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=Wq5YPyfBoEa7skPRJvKs" 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>
2160
2084
  </td>
2161
2085
  </tr>
2162
2086
  </table>
@@ -2201,34 +2125,88 @@ body {
2201
2125
  </body>
2202
2126
  </html>
2203
2127
 
2204
- ----==_mimepart_56b616c32fd6e_10603fe961463be451652--
2128
+ ----==_mimepart_56c1e99645c99_40ab3fd7acc63be41002e2--
2205
2129
 
2130
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2131
+ Processing by PushType::ConfirmationsController#update as HTML
2132
+ Parameters: {"user"=>{"confirmation_token"=>"Wq5YPyfBoEa7skPRJvKs", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2133
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "Wq5YPyfBoEa7skPRJvKs"]]
2134
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-19@example.com' AND "push_type_users"."id" != 'f7710d29-1e86-49a2-a9fd-fa150e2d7caa') LIMIT 1
2135
+  (0.1ms) SAVEPOINT active_record_2
2136
+ 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$b6OMojGEnWWQaIRTIOA0CuExx2gfQZTHrdzhHUT1p4vAmO9WdvkEq"], ["confirmed_at", "2016-02-15 15:07:02.293134"], ["updated_at", "2016-02-15 15:07:02.293560"], ["id", "f7710d29-1e86-49a2-a9fd-fa150e2d7caa"]]
2206
2137
   (0.1ms) RELEASE SAVEPOINT active_record_2
2207
- Processing by PushType::UsersController#invite as HTML
2208
- Parameters: {"id"=>"012fbebb-1733-46f4-a02f-08a96824d098"}
2209
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "3917bfde-c24f-40c9-a2e3-534bd7c4b831"]]
2210
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "012fbebb-1733-46f4-a02f-08a96824d098"]]
2211
2138
   (0.1ms) SAVEPOINT active_record_2
2212
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2139
+ SQL (0.1ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2016-02-15 15:07:02.294842"], ["current_sign_in_at", "2016-02-15 15:07:02.294842"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2016-02-15 15:07:02.295231"], ["id", "f7710d29-1e86-49a2-a9fd-fa150e2d7caa"]]
2140
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2141
+ Redirected to http://test.host/push_type/
2142
+ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
2143
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2144
+  (0.1ms) ROLLBACK
2145
+  (0.1ms) BEGIN
2146
+ ------------------------------------------------------------------------------------------------------
2147
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
2148
+ ------------------------------------------------------------------------------------------------------
2149
+  (0.1ms) SAVEPOINT active_record_1
2150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2151
+  (0.0ms) SAVEPOINT active_record_1
2152
+ Processing by PushType::ConfirmationsController#show as HTML
2153
+ Parameters: {"confirmation_token"=>"invalid"}
2154
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
2155
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
2156
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ba2627981609cc5370212e149c1bd0b422c4d0872cb27260137da523d795bb55"]]
2157
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2158
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (2.5ms)
2159
+ Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.2ms)
2160
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2161
+  (0.1ms) ROLLBACK
2162
+  (0.1ms) BEGIN
2163
+ ------------------------------------------------------------------------------------------------------
2164
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
2165
+ ------------------------------------------------------------------------------------------------------
2166
+  (0.0ms) SAVEPOINT active_record_1
2167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2168
+  (0.0ms) SAVEPOINT active_record_1
2169
+ Processing by PushType::ConfirmationsController#show as HTML
2170
+ Parameters: {"confirmation_token"=>"invalid"}
2171
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
2172
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
2173
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "ba2627981609cc5370212e149c1bd0b422c4d0872cb27260137da523d795bb55"]]
2174
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.2ms)
2175
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.2ms)
2176
+ Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.3ms)
2177
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2178
+  (0.1ms) ROLLBACK
2179
+  (0.1ms) BEGIN
2180
+ ------------------------------------------------------------------------------------------
2181
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
2182
+ ------------------------------------------------------------------------------------------
2183
+  (0.0ms) SAVEPOINT active_record_1
2184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2185
+  (0.0ms) SAVEPOINT active_record_1
2186
+  (0.0ms) SAVEPOINT active_record_2
2187
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2188
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2189
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "9cbe75ec35cab355d11ffa1df097f18137901f4c1225a8627a12ec1fa9412071"]]
2190
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", "2016-02-15 15:07:02.321086"], ["updated_at", "2016-02-15 15:07:02.321086"], ["confirmation_token", "iVCLqXiXY9ByxKt6Rb_8"], ["confirmation_sent_at", "2016-02-15 15:07:02.321777"]]
2213
2191
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2214
2192
 
2215
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
2193
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
2216
2194
 
2217
- Sent mail to joe-20@example.com (3.2ms)
2218
- Date: Sat, 06 Feb 2016 15:52:35 +0000
2195
+ Sent mail to joe-20@example.com (3.0ms)
2196
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
2219
2197
  From: pushtype@example.com
2220
2198
  Reply-To: pushtype@example.com
2221
2199
  To: joe-20@example.com
2222
- Message-ID: <56b616c339415_10603fe961463be4520ae@Aarons-iMac.local.mail>
2200
+ Message-ID: <56c1e99655fdc_40ab3fd7acc63be410064a@Aarons-iMac.local.mail>
2223
2201
  Subject: [PushType] Confirm your account
2224
2202
  Mime-Version: 1.0
2225
2203
  Content-Type: multipart/alternative;
2226
- boundary="--==_mimepart_56b616c338e90_10603fe961463be451917";
2204
+ boundary="--==_mimepart_56c1e99655a8e_40ab3fd7acc63be41005a3";
2227
2205
  charset=UTF-8
2228
2206
  Content-Transfer-Encoding: 7bit
2229
2207
 
2230
2208
 
2231
- ----==_mimepart_56b616c338e90_10603fe961463be451917
2209
+ ----==_mimepart_56c1e99655a8e_40ab3fd7acc63be41005a3
2232
2210
  Content-Type: text/plain;
2233
2211
  charset=UTF-8
2234
2212
  Content-Transfer-Encoding: 7bit
@@ -2243,10 +2221,10 @@ created for you.
2243
2221
  To get started, confirm your account and set your own password by
2244
2222
  clicking the link below:
2245
2223
 
2246
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=HUwuxNm9616micGgtTyS )
2224
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=iVCLqXiXY9ByxKt6Rb_8 )
2247
2225
 
2248
2226
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2249
- ----==_mimepart_56b616c338e90_10603fe961463be451917
2227
+ ----==_mimepart_56c1e99655a8e_40ab3fd7acc63be41005a3
2250
2228
  Content-Type: text/html;
2251
2229
  charset=UTF-8
2252
2230
  Content-Transfer-Encoding: 7bit
@@ -2292,7 +2270,7 @@ body {
2292
2270
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2293
2271
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2294
2272
  <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">
2295
- <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=HUwuxNm9616micGgtTyS" 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>
2273
+ <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=iVCLqXiXY9ByxKt6Rb_8" 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>
2296
2274
  </td>
2297
2275
  </tr>
2298
2276
  </table>
@@ -2337,48 +2315,49 @@ body {
2337
2315
  </body>
2338
2316
  </html>
2339
2317
 
2340
- ----==_mimepart_56b616c338e90_10603fe961463be451917--
2318
+ ----==_mimepart_56c1e99655a8e_40ab3fd7acc63be41005a3--
2341
2319
 
2342
- Redirected to /push_type/users
2343
- Completed 302 Found in 36ms (ActiveRecord: 0.4ms)
2344
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2345
-  (0.1ms) ROLLBACK
2346
-  (0.1ms) BEGIN
2347
- ---------------------------------------------------------------
2348
- PushType::UsersControllerTest::PUT #invite: test_0003_anonymous
2349
- ---------------------------------------------------------------
2350
-  (0.1ms) SAVEPOINT active_record_1
2351
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2352
-  (0.0ms) SAVEPOINT active_record_1
2353
-  (0.1ms) SAVEPOINT active_record_2
2354
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
2355
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
2356
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["confirmation_sent_at", "2016-02-06 15:52:35.238836"], ["confirmed_at", "2016-02-06 15:52:35.238899"], ["confirmation_token", "Generated account"], ["created_at", "2016-02-06 15:52:35.240286"], ["updated_at", "2016-02-06 15:52:35.240286"]]
2357
2320
   (0.1ms) RELEASE SAVEPOINT active_record_2
2358
-  (0.1ms) SAVEPOINT active_record_2
2359
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2360
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2361
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "9b1d029d210facb4e566150e879462fcb653af05668d65311e37925b34070223"]]
2362
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["created_at", "2016-02-06 15:52:35.242782"], ["updated_at", "2016-02-06 15:52:35.242782"], ["confirmation_token", "5Em4satc1Qies6pB9Dwz"], ["confirmation_sent_at", "2016-02-06 15:52:35.243608"]]
2321
+ Processing by PushType::ConfirmationsController#update as HTML
2322
+ Parameters: {"user"=>{"confirmation_token"=>"iVCLqXiXY9ByxKt6Rb_8", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2323
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "iVCLqXiXY9ByxKt6Rb_8"]]
2324
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-20@example.com' AND "push_type_users"."id" != '3c47fa2e-d482-49d2-ad06-547b2148c372') LIMIT 1
2325
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2326
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
2327
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms)
2328
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2329
+  (0.1ms) ROLLBACK
2330
+  (0.1ms) BEGIN
2331
+ ------------------------------------------------------------------------------------------
2332
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
2333
+ ------------------------------------------------------------------------------------------
2334
+  (0.0ms) SAVEPOINT active_record_1
2335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2336
+  (0.0ms) SAVEPOINT active_record_1
2337
+  (0.0ms) SAVEPOINT active_record_2
2338
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
2339
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
2340
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "47a4aae21dfa404fdd0602d471a43c6469ea674178ec4d390110454eb52ea33a"]]
2341
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["created_at", "2016-02-15 15:07:02.365570"], ["updated_at", "2016-02-15 15:07:02.365570"], ["confirmation_token", "eFXMpM93TXoZYZzsgw1C"], ["confirmation_sent_at", "2016-02-15 15:07:02.366403"]]
2363
2342
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2364
2343
 
2365
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
2344
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
2366
2345
 
2367
- Sent mail to joe-22@example.com (3.2ms)
2368
- Date: Sat, 06 Feb 2016 15:52:35 +0000
2346
+ Sent mail to joe-21@example.com (3.0ms)
2347
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
2369
2348
  From: pushtype@example.com
2370
2349
  Reply-To: pushtype@example.com
2371
- To: joe-22@example.com
2372
- Message-ID: <56b616c34363f_10603fe961463be452353@Aarons-iMac.local.mail>
2350
+ To: joe-21@example.com
2351
+ Message-ID: <56c1e99660c7d_40ab3fd7acc63be41009a9@Aarons-iMac.local.mail>
2373
2352
  Subject: [PushType] Confirm your account
2374
2353
  Mime-Version: 1.0
2375
2354
  Content-Type: multipart/alternative;
2376
- boundary="--==_mimepart_56b616c343093_10603fe961463be4522b6";
2355
+ boundary="--==_mimepart_56c1e9966073e_40ab3fd7acc63be41008d9";
2377
2356
  charset=UTF-8
2378
2357
  Content-Transfer-Encoding: 7bit
2379
2358
 
2380
2359
 
2381
- ----==_mimepart_56b616c343093_10603fe961463be4522b6
2360
+ ----==_mimepart_56c1e9966073e_40ab3fd7acc63be41008d9
2382
2361
  Content-Type: text/plain;
2383
2362
  charset=UTF-8
2384
2363
  Content-Transfer-Encoding: 7bit
@@ -2393,10 +2372,10 @@ created for you.
2393
2372
  To get started, confirm your account and set your own password by
2394
2373
  clicking the link below:
2395
2374
 
2396
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=5Em4satc1Qies6pB9Dwz )
2375
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=eFXMpM93TXoZYZzsgw1C )
2397
2376
 
2398
2377
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2399
- ----==_mimepart_56b616c343093_10603fe961463be4522b6
2378
+ ----==_mimepart_56c1e9966073e_40ab3fd7acc63be41008d9
2400
2379
  Content-Type: text/html;
2401
2380
  charset=UTF-8
2402
2381
  Content-Transfer-Encoding: 7bit
@@ -2442,7 +2421,7 @@ body {
2442
2421
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2443
2422
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2444
2423
  <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">
2445
- <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=5Em4satc1Qies6pB9Dwz" 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>
2424
+ <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=eFXMpM93TXoZYZzsgw1C" 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>
2446
2425
  </td>
2447
2426
  </tr>
2448
2427
  </table>
@@ -2487,34 +2466,49 @@ body {
2487
2466
  </body>
2488
2467
  </html>
2489
2468
 
2490
- ----==_mimepart_56b616c343093_10603fe961463be4522b6--
2469
+ ----==_mimepart_56c1e9966073e_40ab3fd7acc63be41008d9--
2491
2470
 
2492
2471
   (0.1ms) RELEASE SAVEPOINT active_record_2
2493
- Processing by PushType::UsersController#invite as HTML
2494
- Parameters: {"id"=>"fb14ecbb-2b91-4c9b-90c2-5f5448aa0abc"}
2495
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "ab94fd45-c1d9-426a-870f-371db2e90ede"]]
2496
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "fb14ecbb-2b91-4c9b-90c2-5f5448aa0abc"]]
2497
-  (0.1ms) SAVEPOINT active_record_2
2498
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2472
+ Processing by PushType::ConfirmationsController#update as HTML
2473
+ Parameters: {"user"=>{"confirmation_token"=>"eFXMpM93TXoZYZzsgw1C", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2474
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "eFXMpM93TXoZYZzsgw1C"]]
2475
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-21@example.com' AND "push_type_users"."id" != '069c9309-b2b4-417f-af02-0585924bb2e5') LIMIT 1
2476
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2477
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.5ms)
2478
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms)
2479
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2480
+  (0.1ms) ROLLBACK
2481
+  (0.1ms) BEGIN
2482
+ ------------------------------------------------------------------------------------------
2483
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
2484
+ ------------------------------------------------------------------------------------------
2485
+  (0.0ms) SAVEPOINT active_record_1
2486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2487
+  (0.0ms) SAVEPOINT active_record_1
2488
+  (0.0ms) SAVEPOINT active_record_2
2489
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2490
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2491
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "0e3bf893470274dc3eb05e62fdbd98bc13eded3ea6636d3d631f44ed4e320c08"]]
2492
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["created_at", "2016-02-15 15:07:02.409863"], ["updated_at", "2016-02-15 15:07:02.409863"], ["confirmation_token", "Q_k_djTN2dJnXtbJqT8K"], ["confirmation_sent_at", "2016-02-15 15:07:02.410532"]]
2499
2493
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2500
2494
 
2501
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
2495
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
2502
2496
 
2503
- Sent mail to joe-22@example.com (3.2ms)
2504
- Date: Sat, 06 Feb 2016 15:52:35 +0000
2497
+ Sent mail to joe-22@example.com (3.0ms)
2498
+ Date: Mon, 15 Feb 2016 15:07:02 +0000
2505
2499
  From: pushtype@example.com
2506
2500
  Reply-To: pushtype@example.com
2507
2501
  To: joe-22@example.com
2508
- Message-ID: <56b616c34ce40_10603fe961463be4526c6@Aarons-iMac.local.mail>
2502
+ Message-ID: <56c1e9966b8d4_40ab3fd7acc63be410122f@Aarons-iMac.local.mail>
2509
2503
  Subject: [PushType] Confirm your account
2510
2504
  Mime-Version: 1.0
2511
2505
  Content-Type: multipart/alternative;
2512
- boundary="--==_mimepart_56b616c34c86f_10603fe961463be45251c";
2506
+ boundary="--==_mimepart_56c1e9966b39f_40ab3fd7acc63be4101114";
2513
2507
  charset=UTF-8
2514
2508
  Content-Transfer-Encoding: 7bit
2515
2509
 
2516
2510
 
2517
- ----==_mimepart_56b616c34c86f_10603fe961463be45251c
2511
+ ----==_mimepart_56c1e9966b39f_40ab3fd7acc63be4101114
2518
2512
  Content-Type: text/plain;
2519
2513
  charset=UTF-8
2520
2514
  Content-Transfer-Encoding: 7bit
@@ -2529,10 +2523,10 @@ created for you.
2529
2523
  To get started, confirm your account and set your own password by
2530
2524
  clicking the link below:
2531
2525
 
2532
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=5Em4satc1Qies6pB9Dwz )
2526
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Q_k_djTN2dJnXtbJqT8K )
2533
2527
 
2534
2528
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2535
- ----==_mimepart_56b616c34c86f_10603fe961463be45251c
2529
+ ----==_mimepart_56c1e9966b39f_40ab3fd7acc63be4101114
2536
2530
  Content-Type: text/html;
2537
2531
  charset=UTF-8
2538
2532
  Content-Transfer-Encoding: 7bit
@@ -2578,7 +2572,7 @@ body {
2578
2572
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2579
2573
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2580
2574
  <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">
2581
- <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=5Em4satc1Qies6pB9Dwz" 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>
2575
+ <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=Q_k_djTN2dJnXtbJqT8K" 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>
2582
2576
  </td>
2583
2577
  </tr>
2584
2578
  </table>
@@ -2623,9 +2617,15 @@ body {
2623
2617
  </body>
2624
2618
  </html>
2625
2619
 
2626
- ----==_mimepart_56b616c34c86f_10603fe961463be45251c--
2620
+ ----==_mimepart_56c1e9966b39f_40ab3fd7acc63be4101114--
2627
2621
 
2628
- Redirected to /push_type/users
2629
- Completed 302 Found in 38ms (ActiveRecord: 0.4ms)
2622
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2623
+ Processing by PushType::ConfirmationsController#update as HTML
2624
+ Parameters: {"user"=>{"confirmation_token"=>"Q_k_djTN2dJnXtbJqT8K", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2625
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "Q_k_djTN2dJnXtbJqT8K"]]
2626
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-22@example.com' AND "push_type_users"."id" != '154576e5-e143-43cf-af3c-1c64de3188c3') LIMIT 1
2627
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.2ms)
2628
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.5ms)
2629
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms)
2630
2630
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2631
2631
   (0.1ms) ROLLBACK