push_type_auth 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) 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/{20150824095231_create_push_type_users.push_type.rb → 20150928114749_create_push_type_users.push_type.rb} +0 -0
  5. data/test/dummy/db/migrate/{20150824095232_create_push_type_nodes.push_type.rb → 20150928114750_create_push_type_nodes.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20150824095233_create_push_type_node_hierarchies.push_type.rb → 20150928114751_create_push_type_node_hierarchies.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20150824095234_create_push_type_assets.push_type.rb → 20150928114752_create_push_type_assets.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20150824095235_create_push_type_taxonomies.push_type.rb → 20150928114753_create_push_type_taxonomies.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20150824095236_create_push_type_taxonomy_hierarchies.push_type.rb → 20150928114754_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20150824095237_add_field_store_default_values.push_type.rb → 20150928114755_add_field_store_default_values.push_type.rb} +0 -0
  11. data/test/dummy/db/migrate/{20150824095238_devise_extend_push_type_users.push_type_auth.rb → 20150928114756_devise_extend_push_type_users.push_type_auth.rb} +0 -0
  12. data/test/dummy/db/schema.rb +1 -1
  13. data/test/dummy/log/test.log +687 -687
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1IwXnDjpUoS0eTU6wSMi8CLvUNNUHfvoazkg8P0raCE.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{BIcAxHnFRztqOqFfeOZDc90vPc1vEp6Nx2EOZ4hUVgQ.cache → AFosvpRRM0x48rPHPouVE6eBrYZY6rcsRuUatpTfJzY.cache} +3 -4
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{roQZdID5OVEkBhvSpwJF90XjEEUSZNBuxJgoKcoogY8.cache → Dvlpvnnl3KR7OqDq0IHS3rUmMy-l8sddi3lLIhAyy64.cache} +1 -1
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{sZDtGgBFawVRCrD-3UBlByrKSiU4igGf6JiyooAH93s.cache → GBLMJtzXdgs1d5Wj6YdrLfLmLSe1l8rc3w1tfXcxh_c.cache} +1 -1
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{lWIjMusRlLK-G8RwtbFoarhLAiuYVebf0dSMdA6e0pw.cache → RiwrNKijZxRPJcvdNrzjs101s-eH3xlZkaSopyJJX6I.cache} +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{WJtU2FdGu_S_02ZXzsYbR_X545PAX8GQSFGBXau2_Mo.cache → abzucxF2C9WqVEZYDzOGkrgmpo4ryCL2-Smf9tzxx4E.cache} +1 -1
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{r5aclzIdW9wv43vpG7BQudXY1U1-jBp108JCJJF3Jek.cache → d8gmeAr1RVRe468D7_pN7gei0bv0zTKlHOBVSqXFumA.cache} +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hqsXgQKrjrCyBteINTGVVCWP_zSt7zsHA0wpjPl0TUI.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/nyCi63wSIzhvneYoT4G5SKAFrlKAJuY9BNH6pj5J45U.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{eX4AVif45PgHpC1DxSJYbS3YTQDSVu3a0bMDAsTGZh8.cache → pR1mjNIiV0z8PLCDzUMA7pobawnxCzi4o7rs18AcYds.cache} +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{YyRPsQnEhI8vJCWvDi2VvCZPjIovsxRD0z472Y7nL58.cache → tqeTTBSirByDryp3mzWTJzg5eYt1h8Q2NpdCAtIybu0.cache} +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/u_eoxO07vke2i3ZH4Ln21zbYPLZKZEdrCUb_cnM3V2k.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/zikP2qnEFr_45mNBsFma_RuuQ4YSZFcYUhz5Pze3QIs.cache +0 -0
  27. metadata +44 -44
  28. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OqfIbaXj5ucEMam2I6PPD3viDT6CYr4Dt0ccS9_h9ZM.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/svn8H0sQujVcitS-TzKmNYL4qY3QX3SlwGqsdtWUNnI.cache +0 -1
  30. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/wyaHOEzsJy4qL6ifXOIR7S7_Ae94c0XajePrU3S7vsQ.cache +0 -0
@@ -1,61 +1,61 @@
1
-  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20150824095231)
1
+  (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreatePushTypeUsers (20150928114749)
5
5
   (0.1ms) BEGIN
6
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095231"]]
6
+ SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.1ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114749"]]
9
9
   (0.6ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150824095232)
10
+ Migrating to CreatePushTypeNodes (20150928114750)
11
11
   (0.1ms) BEGIN
12
-  (1.8ms) 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", "20150824095232"]]
12
+  (1.7ms) 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", "20150928114750"]]
14
14
   (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150824095233)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150928114751)
16
16
   (0.1ms) BEGIN
17
-  (0.3ms) 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", "20150824095233"]]
17
+  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
+  (0.7ms) CREATE UNIQUE INDEX "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", "20150928114751"]]
21
21
   (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150824095234)
22
+ Migrating to CreatePushTypeAssets (20150928114752)
23
23
   (0.1ms) BEGIN
24
-  (1.8ms) 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", "20150824095234"]]
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", "20150928114752"]]
26
26
   (0.5ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20150824095235)
27
+ Migrating to CreatePushTypeTaxonomies (20150928114753)
28
28
   (0.1ms) BEGIN
29
-  (1.8ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
30
-  (0.3ms) ALTER TABLE "push_type_assets" ADD "tags" character varying[]
31
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095235"]]
32
-  (0.3ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20150824095236)
29
+  (1.5ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
30
+  (0.2ms) ALTER TABLE "push_type_assets" ADD "tags" character varying[]
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114753"]]
32
+  (0.4ms) COMMIT
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150928114754)
34
34
   (0.1ms) BEGIN
35
35
   (0.4ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
-  (0.9ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
36
+  (0.6ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
37
   (0.5ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095236"]]
39
-  (0.3ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20150824095237)
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114754"]]
39
+  (0.4ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20150928114755)
41
41
   (0.1ms) BEGIN
42
-  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
42
+  (0.3ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
43
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
44
44
   (0.2ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
45
45
   (0.1ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
46
   (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
-  (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
47
+  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
48
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
49
   (0.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095237"]]
51
-  (0.4ms) COMMIT
52
- Migrating to DeviseExtendPushTypeUsers (20150824095238)
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114755"]]
51
+  (0.5ms) COMMIT
52
+ Migrating to DeviseExtendPushTypeUsers (20150928114756)
53
53
   (0.1ms) BEGIN
54
-  (3.6ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
55
-  (0.2ms) ALTER TABLE "push_type_users" ADD "reset_password_token" character varying
54
+  (2.5ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
55
+  (0.1ms) ALTER TABLE "push_type_users" ADD "reset_password_token" character varying
56
56
   (0.1ms) ALTER TABLE "push_type_users" ADD "reset_password_sent_at" timestamp
57
57
   (0.1ms) ALTER TABLE "push_type_users" ADD "remember_created_at" timestamp
58
-  (1.9ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
58
+  (2.1ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
59
59
   (0.1ms) ALTER TABLE "push_type_users" ADD "current_sign_in_at" timestamp
60
60
   (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
61
61
   (0.1ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
@@ -63,10 +63,10 @@ Migrating to DeviseExtendPushTypeUsers (20150824095238)
63
63
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_token" character varying
64
64
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmed_at" timestamp
65
65
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_sent_at" timestamp
66
-  (0.5ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
67
-  (0.5ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
68
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095238"]]
69
-  (1.0ms) COMMIT
66
+  (0.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
67
+  (0.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
68
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114756"]]
69
+  (1.1ms) COMMIT
70
70
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
71
71
   (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
72
72
  FROM pg_constraint c
@@ -92,7 +92,7 @@ WHERE c.contype = 'f'
92
92
  AND t3.nspname = ANY (current_schemas(false))
93
93
  ORDER BY c.conname
94
94
 
95
-  (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
95
+  (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
96
96
  FROM pg_constraint c
97
97
  JOIN pg_class t1 ON c.conrelid = t1.oid
98
98
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -104,7 +104,7 @@ WHERE c.contype = 'f'
104
104
  AND t3.nspname = ANY (current_schemas(false))
105
105
  ORDER BY c.conname
106
106
  
107
-  (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
107
+  (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
108
108
  FROM pg_constraint c
109
109
  JOIN pg_class t1 ON c.conrelid = t1.oid
110
110
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -140,90 +140,101 @@ WHERE c.contype = 'f'
140
140
  AND t3.nspname = ANY (current_schemas(false))
141
141
  ORDER BY c.conname
142
142
 
143
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
144
-  (1.0ms) 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_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL
145
-  (2.0ms)  SELECT schemaname || '.' || tablename
143
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
144
+  (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_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL
145
+  (0.9ms)  SELECT schemaname || '.' || tablename
146
146
  FROM pg_tables
147
147
  WHERE
148
148
  tablename !~ '_prt_' AND
149
149
  tablename <> 'schema_migrations' AND
150
150
  schemaname = ANY (current_schemas(false))
151
151
  
152
-  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
153
-  (11.1ms) TRUNCATE TABLE "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies", "public"."push_type_users" RESTART IDENTITY CASCADE;
154
-  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" 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;ALTER TABLE "push_type_taxonomy_hierarchies" ENABLE TRIGGER ALL
152
+  (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
153
+  (10.0ms) TRUNCATE TABLE "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies", "public"."push_type_users" RESTART IDENTITY CASCADE;
154
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" 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;ALTER TABLE "push_type_taxonomy_hierarchies" ENABLE TRIGGER ALL
155
155
   (0.1ms) BEGIN
156
- ----------------------------------------------------------------
157
- PushType::ProfilesControllerTest::GET #edit: test_0001_anonymous
158
- ----------------------------------------------------------------
156
+ ------------------------------------------------------------------------------------------------------
157
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
158
+ ------------------------------------------------------------------------------------------------------
159
159
   (0.1ms) SAVEPOINT active_record_1
160
160
   (0.1ms) RELEASE SAVEPOINT active_record_1
161
161
   (0.1ms) SAVEPOINT active_record_1
162
-  (0.1ms) SAVEPOINT active_record_2
163
- PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
164
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
165
- SQL (0.8ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-1@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:37.260749"], ["confirmed_at", "2015-08-24 09:52:37.260829"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:37.272292"], ["updated_at", "2015-08-24 09:52:37.272292"]]
166
-  (0.1ms) RELEASE SAVEPOINT active_record_2
167
- Processing by PushType::ProfilesController#edit as HTML
168
- 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", "403de84a-903c-4053-a030-5b224a58a57b"]]
169
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (11.7ms)
170
- Completed 200 OK in 10831ms (Views: 10819.8ms | ActiveRecord: 0.3ms)
162
+ Processing by PushType::ConfirmationsController#show as HTML
163
+ Parameters: {"confirmation_token"=>"invalid"}
164
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["confirmation_token", "invalid"]]
165
+ 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"]]
166
+ 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", "5c793a37d5070450b5a9371ce7dc3494302fde0b6d668820c0ea8f4335585cff"]]
167
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.3ms)
168
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (23.7ms)
169
+ Completed 200 OK in 10411ms (Views: 10218.3ms | ActiveRecord: 2.0ms)
170
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
171
+  (0.2ms) ROLLBACK
172
+  (0.1ms) BEGIN
173
+ ------------------------------------------------------------------------------------------------------
174
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
175
+ ------------------------------------------------------------------------------------------------------
176
+  (0.1ms) SAVEPOINT active_record_1
177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
178
+  (0.0ms) SAVEPOINT active_record_1
179
+ Processing by PushType::ConfirmationsController#show as HTML
180
+ Parameters: {"confirmation_token"=>"invalid"}
181
+ 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"]]
182
+ 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"]]
183
+ 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", "5c793a37d5070450b5a9371ce7dc3494302fde0b6d668820c0ea8f4335585cff"]]
184
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
185
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.4ms)
186
+ Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)
171
187
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
172
-  (0.2ms) ROLLBACK
173
-  (0.1ms) BEGIN
174
- ----------------------------------------------------------------
175
- PushType::ProfilesControllerTest::GET #edit: test_0002_anonymous
176
- ----------------------------------------------------------------
188
+  (0.1ms) ROLLBACK
189
+  (0.0ms) BEGIN
190
+ ---------------------------------------------------------------
191
+ PushType::AuthenticatableTest::validatable: test_0001_anonymous
192
+ ---------------------------------------------------------------
177
193
   (0.0ms) SAVEPOINT active_record_1
178
194
   (0.0ms) RELEASE SAVEPOINT active_record_1
179
195
   (0.0ms) SAVEPOINT active_record_1
180
-  (0.1ms) SAVEPOINT active_record_2
181
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
182
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
183
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:48.111367"], ["confirmed_at", "2015-08-24 09:52:48.111449"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:48.113131"], ["updated_at", "2015-08-24 09:52:48.113131"]]
184
-  (0.1ms) RELEASE SAVEPOINT active_record_2
185
- Processing by PushType::ProfilesController#edit as HTML
186
- 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", "33ae4871-5da3-4020-86d6-af9b7227dd60"]]
187
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (2.2ms)
188
- Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.2ms)
189
196
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
190
197
   (0.1ms) ROLLBACK
191
198
   (0.1ms) BEGIN
192
199
  ---------------------------------------------------------------
193
- PushType::UsersControllerTest::PUT #invite: test_0002_anonymous
200
+ PushType::AuthenticatableTest::validatable: test_0002_anonymous
194
201
  ---------------------------------------------------------------
195
202
   (0.1ms) SAVEPOINT active_record_1
196
-  (0.1ms) RELEASE SAVEPOINT active_record_1
203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
204
+  (0.0ms) SAVEPOINT active_record_1
205
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
206
+  (0.0ms) ROLLBACK
207
+  (0.0ms) BEGIN
208
+ --------------------------------------------------------------------------------------------------------------
209
+ PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
210
+ --------------------------------------------------------------------------------------------------------------
211
+  (0.0ms) SAVEPOINT active_record_1
212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
197
213
   (0.0ms) SAVEPOINT active_record_1
198
214
   (0.1ms) SAVEPOINT active_record_2
199
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
200
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
201
- 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", "2015-08-24 09:52:48.128309"], ["confirmed_at", "2015-08-24 09:52:48.128371"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:48.129949"], ["updated_at", "2015-08-24 09:52:48.129949"]]
202
-  (0.1ms) RELEASE SAVEPOINT active_record_2
203
-  (0.1ms) SAVEPOINT active_record_2
204
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
205
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
206
- PushType::User 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", "6f9a17fe77f04aa591db348daeb63b14c8e0266d34820826192606e276592125"]]
207
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", "2015-08-24 09:52:48.132657"], ["updated_at", "2015-08-24 09:52:48.132657"], ["confirmation_token", "Yvsp8xdQYazb63Ampjg2"], ["confirmation_sent_at", "2015-08-24 09:52:48.304089"]]
215
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
216
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
217
+ 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", "0f2261de7e1260ba81a341d40aae842812b1ea3b216af22aad4158ba64a42fe4"]]
218
+ 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", "2015-09-28 11:48:05.569811"], ["updated_at", "2015-09-28 11:48:05.569811"], ["confirmation_token", "zZfQUA5sfFnPq48Pyr28"], ["confirmation_sent_at", "2015-09-28 11:48:05.570627"]]
208
219
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.7ms)
209
220
 
210
- Devise::Mailer#confirmation_instructions: processed outbound mail in 83.6ms
221
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 162.0ms
211
222
 
212
- Sent mail to joe-4@example.com (6.4ms)
213
- Date: Mon, 24 Aug 2015 10:52:48 +0100
223
+ Sent mail to joe-1@example.com (39.0ms)
224
+ Date: Mon, 28 Sep 2015 12:48:05 +0100
214
225
  From: pushtype@example.com
215
226
  Reply-To: pushtype@example.com
216
- To: joe-4@example.com
217
- Message-ID: <55dae97068048_b943fce20465be455895@Aarons-iMac.local.mail>
227
+ To: joe-1@example.com
228
+ Message-ID: <560928f5cccf9_1c123feeca065bf021781@Aarons-iMac.local.mail>
218
229
  Subject: [PushType] Confirm your account
219
230
  Mime-Version: 1.0
220
231
  Content-Type: multipart/alternative;
221
- boundary="--==_mimepart_55dae97067204_b943fce20465be4557cd";
232
+ boundary="--==_mimepart_560928f5c4202_1c123feeca065bf02167d";
222
233
  charset=UTF-8
223
234
  Content-Transfer-Encoding: 7bit
224
235
 
225
236
 
226
- ----==_mimepart_55dae97067204_b943fce20465be4557cd
237
+ ----==_mimepart_560928f5c4202_1c123feeca065bf02167d
227
238
  Content-Type: text/plain;
228
239
  charset=UTF-8
229
240
  Content-Transfer-Encoding: 7bit
@@ -238,10 +249,10 @@ created for you.
238
249
  To get started, confirm your account and set your own password by
239
250
  clicking the link below:
240
251
 
241
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Yvsp8xdQYazb63Ampjg2 )
252
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=zZfQUA5sfFnPq48Pyr28 )
242
253
 
243
254
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
244
- ----==_mimepart_55dae97067204_b943fce20465be4557cd
255
+ ----==_mimepart_560928f5c4202_1c123feeca065bf02167d
245
256
  Content-Type: text/html;
246
257
  charset=UTF-8
247
258
  Content-Transfer-Encoding: 7bit
@@ -287,7 +298,7 @@ body {
287
298
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
288
299
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
289
300
  <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">
290
- <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=Yvsp8xdQYazb63Ampjg2" 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>
301
+ <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=zZfQUA5sfFnPq48Pyr28" 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>
291
302
  </td>
292
303
  </tr>
293
304
  </table>
@@ -332,34 +343,170 @@ body {
332
343
  </body>
333
344
  </html>
334
345
 
335
- ----==_mimepart_55dae97067204_b943fce20465be4557cd--
346
+ ----==_mimepart_560928f5c4202_1c123feeca065bf02167d--
336
347
 
337
-  (0.2ms) RELEASE SAVEPOINT active_record_2
338
- Processing by PushType::UsersController#invite as HTML
339
- Parameters: {"id"=>"651c3d26-9683-4db0-af3b-de9e6651be3c"}
340
- 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", "30f16b1b-2637-4eba-85c5-4e9268100e25"]]
341
- 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", "651c3d26-9683-4db0-af3b-de9e6651be3c"]]
348
+  (0.1ms) RELEASE SAVEPOINT active_record_2
349
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
350
+  (0.1ms) ROLLBACK
351
+  (0.0ms) BEGIN
352
+ -----------------------------------------------------------------------------------
353
+ PushType::ProfilesControllerTest::PUT #update::with valid user: 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) SAVEPOINT active_record_2
359
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
360
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
361
+ 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", "2015-09-28 11:48:05.872867"], ["confirmed_at", "2015-09-28 11:48:05.872953"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:05.874848"], ["updated_at", "2015-09-28 11:48:05.874848"]]
362
+  (0.1ms) RELEASE SAVEPOINT active_record_2
363
+ Processing by PushType::ProfilesController#update as HTML
364
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
365
+ 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", "7d8908e7-b623-4a69-becb-100c467769c1"]]
366
+  (0.1ms) SAVEPOINT active_record_2
367
+ 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" != '7d8908e7-b623-4a69-becb-100c467769c1') LIMIT 1
368
+ SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-09-28 11:48:05.880882"], ["id", "7d8908e7-b623-4a69-becb-100c467769c1"]]
369
+  (0.1ms) RELEASE SAVEPOINT active_record_2
370
+ Redirected to http://test.host/push_type/profile/edit
371
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
372
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "7d8908e7-b623-4a69-becb-100c467769c1"]]
373
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
374
+  (0.1ms) ROLLBACK
375
+  (0.1ms) BEGIN
376
+ -----------------------------------------------------------------------------------
377
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
378
+ -----------------------------------------------------------------------------------
379
+  (0.0ms) SAVEPOINT active_record_1
380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
381
+  (0.0ms) SAVEPOINT active_record_1
382
+  (0.1ms) SAVEPOINT active_record_2
383
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
384
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
385
+ 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", "2015-09-28 11:48:05.885207"], ["confirmed_at", "2015-09-28 11:48:05.885253"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:05.886524"], ["updated_at", "2015-09-28 11:48:05.886524"]]
386
+  (0.1ms) RELEASE SAVEPOINT active_record_2
387
+ Processing by PushType::ProfilesController#update as HTML
388
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
389
+ 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", "305700e8-c2b1-4675-a877-b46fe572bd96"]]
342
390
   (0.1ms) SAVEPOINT active_record_2
391
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != '305700e8-c2b1-4675-a877-b46fe572bd96') LIMIT 1
392
+ SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-09-28 11:48:05.890498"], ["id", "305700e8-c2b1-4675-a877-b46fe572bd96"]]
343
393
   (0.1ms) RELEASE SAVEPOINT active_record_2
344
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
394
+ Redirected to http://test.host/push_type/profile/edit
395
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
396
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
397
+  (0.1ms) ROLLBACK
398
+  (0.1ms) BEGIN
399
+ -----------------------------------------------------------------------------------
400
+ PushType::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
401
+ -----------------------------------------------------------------------------------
402
+  (0.0ms) SAVEPOINT active_record_1
403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
404
+  (0.0ms) SAVEPOINT active_record_1
405
+  (0.1ms) SAVEPOINT active_record_2
406
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
407
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
408
+ 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-4@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:05.893453"], ["confirmed_at", "2015-09-28 11:48:05.893499"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:05.894752"], ["updated_at", "2015-09-28 11:48:05.894752"]]
409
+  (0.1ms) RELEASE SAVEPOINT active_record_2
410
+ Processing by PushType::ProfilesController#update as HTML
411
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
412
+ 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", "de19e010-bb64-43f2-9270-86f14baaa654"]]
413
+  (0.1ms) SAVEPOINT active_record_2
414
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != 'de19e010-bb64-43f2-9270-86f14baaa654') LIMIT 1
415
+ SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-09-28 11:48:05.898761"], ["id", "de19e010-bb64-43f2-9270-86f14baaa654"]]
416
+  (0.1ms) RELEASE SAVEPOINT active_record_2
417
+ Redirected to http://test.host/push_type/profile/edit
418
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
419
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
420
+  (0.1ms) ROLLBACK
421
+  (0.1ms) BEGIN
422
+ ---------------------------------------------------------------
423
+ PushType::AuthenticatableTest::recoverable: test_0001_anonymous
424
+ ---------------------------------------------------------------
425
+  (0.0ms) SAVEPOINT active_record_1
426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
427
+  (0.1ms) SAVEPOINT active_record_1
428
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
429
+  (0.0ms) ROLLBACK
430
+  (0.1ms) BEGIN
431
+ -------------------------------------------------------------------------------------
432
+ PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
433
+ -------------------------------------------------------------------------------------
434
+  (0.1ms) SAVEPOINT active_record_1
435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
436
+  (0.0ms) SAVEPOINT active_record_1
437
+  (0.1ms) SAVEPOINT active_record_2
438
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
439
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
440
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:05.904547"], ["confirmed_at", "2015-09-28 11:48:05.904596"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:05.906031"], ["updated_at", "2015-09-28 11:48:05.906031"]]
441
+  (0.1ms) RELEASE SAVEPOINT active_record_2
442
+ Processing by PushType::ProfilesController#update as HTML
443
+ Parameters: {"user"=>{"name"=>""}}
444
+ 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", "d044616f-0959-4a18-b015-58c610ae8050"]]
445
+  (0.1ms) SAVEPOINT active_record_2
446
+ 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" != 'd044616f-0959-4a18-b015-58c610ae8050') LIMIT 1
447
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
448
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (16.7ms)
449
+ Completed 200 OK in 34ms (Views: 31.3ms | ActiveRecord: 0.5ms)
450
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
451
+  (0.1ms) ROLLBACK
452
+  (0.1ms) BEGIN
453
+ -------------------------------------------------------------------------------------
454
+ PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
455
+ -------------------------------------------------------------------------------------
456
+  (0.1ms) SAVEPOINT active_record_1
457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
458
+  (0.1ms) SAVEPOINT active_record_1
459
+  (0.1ms) SAVEPOINT active_record_2
460
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
461
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
462
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:05.943946"], ["confirmed_at", "2015-09-28 11:48:05.944010"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:05.945516"], ["updated_at", "2015-09-28 11:48:05.945516"]]
463
+  (0.1ms) RELEASE SAVEPOINT active_record_2
464
+ Processing by PushType::ProfilesController#update as HTML
465
+ Parameters: {"user"=>{"name"=>""}}
466
+ 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", "a799eecb-01ea-455f-aa5d-bf05b7a893ce"]]
467
+  (0.1ms) SAVEPOINT active_record_2
468
+ 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" != 'a799eecb-01ea-455f-aa5d-bf05b7a893ce') LIMIT 1
469
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
470
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.8ms)
471
+ Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.6ms)
472
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
473
+  (0.1ms) ROLLBACK
474
+  (0.1ms) BEGIN
475
+ ---------------------------------------------------------------
476
+ PushType::UsersControllerTest::PUT #invite: test_0002_anonymous
477
+ ---------------------------------------------------------------
478
+  (0.1ms) SAVEPOINT active_record_1
479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
480
+  (0.0ms) SAVEPOINT active_record_1
481
+  (0.1ms) SAVEPOINT active_record_2
482
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
483
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
484
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:05.959671"], ["confirmed_at", "2015-09-28 11:48:05.959731"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:05.961223"], ["updated_at", "2015-09-28 11:48:05.961223"]]
485
+  (0.1ms) RELEASE SAVEPOINT active_record_2
486
+  (0.1ms) SAVEPOINT active_record_2
487
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
488
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
489
+ 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", "c88b2c0c932b8fb313ec8ce34893010059d7bfe3d78b38018deeea01804bf49e"]]
490
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["created_at", "2015-09-28 11:48:05.963938"], ["updated_at", "2015-09-28 11:48:05.963938"], ["confirmation_token", "CZcyUDeTR7k36_qFJc-L"], ["confirmation_sent_at", "2015-09-28 11:48:05.964712"]]
491
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
345
492
 
346
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
493
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
347
494
 
348
- Sent mail to joe-4@example.com (3.2ms)
349
- Date: Mon, 24 Aug 2015 10:52:48 +0100
495
+ Sent mail to joe-8@example.com (2.9ms)
496
+ Date: Mon, 28 Sep 2015 12:48:05 +0100
350
497
  From: pushtype@example.com
351
498
  Reply-To: pushtype@example.com
352
- To: joe-4@example.com
353
- Message-ID: <55dae9707136a_b943fce20465be45619c@Aarons-iMac.local.mail>
499
+ To: joe-8@example.com
500
+ Message-ID: <560928f5f2e07_1c123feeca065bf02203e@Aarons-iMac.local.mail>
354
501
  Subject: [PushType] Confirm your account
355
502
  Mime-Version: 1.0
356
503
  Content-Type: multipart/alternative;
357
- boundary="--==_mimepart_55dae97070dd7_b943fce20465be4560f6";
504
+ boundary="--==_mimepart_560928f5f28d1_1c123feeca065bf02197";
358
505
  charset=UTF-8
359
506
  Content-Transfer-Encoding: 7bit
360
507
 
361
508
 
362
- ----==_mimepart_55dae97070dd7_b943fce20465be4560f6
509
+ ----==_mimepart_560928f5f28d1_1c123feeca065bf02197
363
510
  Content-Type: text/plain;
364
511
  charset=UTF-8
365
512
  Content-Transfer-Encoding: 7bit
@@ -374,10 +521,10 @@ created for you.
374
521
  To get started, confirm your account and set your own password by
375
522
  clicking the link below:
376
523
 
377
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Yvsp8xdQYazb63Ampjg2 )
524
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=CZcyUDeTR7k36_qFJc-L )
378
525
 
379
526
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
380
- ----==_mimepart_55dae97070dd7_b943fce20465be4560f6
527
+ ----==_mimepart_560928f5f28d1_1c123feeca065bf02197
381
528
  Content-Type: text/html;
382
529
  charset=UTF-8
383
530
  Content-Transfer-Encoding: 7bit
@@ -423,7 +570,7 @@ body {
423
570
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
424
571
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
425
572
  <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">
426
- <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=Yvsp8xdQYazb63Ampjg2" 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>
573
+ <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=CZcyUDeTR7k36_qFJc-L" 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>
427
574
  </td>
428
575
  </tr>
429
576
  </table>
@@ -468,48 +615,34 @@ body {
468
615
  </body>
469
616
  </html>
470
617
 
471
- ----==_mimepart_55dae97070dd7_b943fce20465be4560f6--
618
+ ----==_mimepart_560928f5f28d1_1c123feeca065bf02197--
472
619
 
473
- Redirected to /push_type/users
474
- Completed 302 Found in 35ms (ActiveRecord: 0.5ms)
475
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
476
-  (0.1ms) ROLLBACK
477
-  (0.1ms) BEGIN
478
- ---------------------------------------------------------------
479
- PushType::UsersControllerTest::PUT #invite: test_0001_anonymous
480
- ---------------------------------------------------------------
481
-  (0.0ms) SAVEPOINT active_record_1
482
-  (0.0ms) RELEASE SAVEPOINT active_record_1
483
-  (0.0ms) SAVEPOINT active_record_1
484
-  (0.1ms) SAVEPOINT active_record_2
485
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
486
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
487
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:48.468073"], ["confirmed_at", "2015-08-24 09:52:48.468134"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:48.469606"], ["updated_at", "2015-08-24 09:52:48.469606"]]
488
620
   (0.1ms) RELEASE SAVEPOINT active_record_2
621
+ Processing by PushType::UsersController#invite as HTML
622
+ Parameters: {"id"=>"19ec4bb4-a2b3-4d5f-9c31-ea0020fc22fa"}
623
+ 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", "ff33720c-b32f-4d69-9e55-f12850b6ccd9"]]
624
+ 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", "19ec4bb4-a2b3-4d5f-9c31-ea0020fc22fa"]]
489
625
   (0.1ms) SAVEPOINT active_record_2
490
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
491
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
492
- 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", "e68addd69c62c6ad8243cf6cdb797a69605cbb2d1537d5c088f2c3edaf25abe8"]]
493
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["created_at", "2015-08-24 09:52:48.472297"], ["updated_at", "2015-08-24 09:52:48.472297"], ["confirmation_token", "BpjFypmeUJboRJmx-QAR"], ["confirmation_sent_at", "2015-08-24 09:52:48.472998"]]
494
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
626
+  (0.1ms) RELEASE SAVEPOINT active_record_2
627
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
495
628
 
496
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
629
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
497
630
 
498
- Sent mail to joe-6@example.com (3.0ms)
499
- Date: Mon, 24 Aug 2015 10:52:48 +0100
631
+ Sent mail to joe-8@example.com (2.9ms)
632
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
500
633
  From: pushtype@example.com
501
634
  Reply-To: pushtype@example.com
502
- To: joe-6@example.com
503
- Message-ID: <55dae9707ae00_b943fce20465be45641b@Aarons-iMac.local.mail>
635
+ To: joe-8@example.com
636
+ Message-ID: <560928f61c1d7_1c123feeca065bf0223cd@Aarons-iMac.local.mail>
504
637
  Subject: [PushType] Confirm your account
505
638
  Mime-Version: 1.0
506
639
  Content-Type: multipart/alternative;
507
- boundary="--==_mimepart_55dae9707a884_b943fce20465be4563b7";
640
+ boundary="--==_mimepart_560928f61bcad_1c123feeca065bf0222e4";
508
641
  charset=UTF-8
509
642
  Content-Transfer-Encoding: 7bit
510
643
 
511
644
 
512
- ----==_mimepart_55dae9707a884_b943fce20465be4563b7
645
+ ----==_mimepart_560928f61bcad_1c123feeca065bf0222e4
513
646
  Content-Type: text/plain;
514
647
  charset=UTF-8
515
648
  Content-Transfer-Encoding: 7bit
@@ -524,10 +657,10 @@ created for you.
524
657
  To get started, confirm your account and set your own password by
525
658
  clicking the link below:
526
659
 
527
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=BpjFypmeUJboRJmx-QAR )
660
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=CZcyUDeTR7k36_qFJc-L )
528
661
 
529
662
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
530
- ----==_mimepart_55dae9707a884_b943fce20465be4563b7
663
+ ----==_mimepart_560928f61bcad_1c123feeca065bf0222e4
531
664
  Content-Type: text/html;
532
665
  charset=UTF-8
533
666
  Content-Transfer-Encoding: 7bit
@@ -573,7 +706,7 @@ body {
573
706
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
574
707
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
575
708
  <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">
576
- <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=BpjFypmeUJboRJmx-QAR" 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>
709
+ <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=CZcyUDeTR7k36_qFJc-L" 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>
577
710
  </td>
578
711
  </tr>
579
712
  </table>
@@ -618,34 +751,48 @@ body {
618
751
  </body>
619
752
  </html>
620
753
 
621
- ----==_mimepart_55dae9707a884_b943fce20465be4563b7--
754
+ ----==_mimepart_560928f61bcad_1c123feeca065bf0222e4--
622
755
 
623
-  (0.1ms) RELEASE SAVEPOINT active_record_2
624
- Processing by PushType::UsersController#invite as HTML
625
- Parameters: {"id"=>"546b8cd5-1b3d-4464-a64b-bb54819f6afb"}
626
- 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", "c4797148-9fb8-4437-b3c0-fa1ab4efa8e6"]]
627
- 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", "546b8cd5-1b3d-4464-a64b-bb54819f6afb"]]
756
+ Redirected to /push_type/users
757
+ Completed 302 Found in 119ms (ActiveRecord: 0.5ms)
758
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
759
+  (0.1ms) ROLLBACK
760
+  (0.1ms) BEGIN
761
+ ---------------------------------------------------------------
762
+ PushType::UsersControllerTest::PUT #invite: test_0001_anonymous
763
+ ---------------------------------------------------------------
764
+  (0.1ms) SAVEPOINT active_record_1
765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
766
+  (0.1ms) SAVEPOINT active_record_1
628
767
   (0.1ms) SAVEPOINT active_record_2
629
-  (0.1ms) RELEASE SAVEPOINT active_record_2
768
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
769
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@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-9@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:06.119332"], ["confirmed_at", "2015-09-28 11:48:06.119394"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:06.120887"], ["updated_at", "2015-09-28 11:48:06.120887"]]
771
+  (0.1ms) RELEASE SAVEPOINT active_record_2
772
+  (0.0ms) SAVEPOINT active_record_2
773
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
774
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
775
+ 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", "317d297c3292d47d5d2729cc9f3b4ed17bb42f3d2e5a4f107fc11c9b5888c0ea"]]
776
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", "2015-09-28 11:48:06.123435"], ["updated_at", "2015-09-28 11:48:06.123435"], ["confirmation_token", "2Y4uDtnMgi7ehDdSF5Cx"], ["confirmation_sent_at", "2015-09-28 11:48:06.124096"]]
630
777
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
631
778
 
632
779
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
633
780
 
634
- Sent mail to joe-6@example.com (3.0ms)
635
- Date: Mon, 24 Aug 2015 10:52:48 +0100
781
+ Sent mail to joe-10@example.com (3.0ms)
782
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
636
783
  From: pushtype@example.com
637
784
  Reply-To: pushtype@example.com
638
- To: joe-6@example.com
639
- Message-ID: <55dae97097a49_b943fce20465be4567d2@Aarons-iMac.local.mail>
785
+ To: joe-10@example.com
786
+ Message-ID: <560928f625d62_1c123feeca065bf022627@Aarons-iMac.local.mail>
640
787
  Subject: [PushType] Confirm your account
641
788
  Mime-Version: 1.0
642
789
  Content-Type: multipart/alternative;
643
- boundary="--==_mimepart_55dae970974a2_b943fce20465be4566b5";
790
+ boundary="--==_mimepart_560928f6257cf_1c123feeca065bf0225c9";
644
791
  charset=UTF-8
645
792
  Content-Transfer-Encoding: 7bit
646
793
 
647
794
 
648
- ----==_mimepart_55dae970974a2_b943fce20465be4566b5
795
+ ----==_mimepart_560928f6257cf_1c123feeca065bf0225c9
649
796
  Content-Type: text/plain;
650
797
  charset=UTF-8
651
798
  Content-Transfer-Encoding: 7bit
@@ -660,10 +807,10 @@ created for you.
660
807
  To get started, confirm your account and set your own password by
661
808
  clicking the link below:
662
809
 
663
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=BpjFypmeUJboRJmx-QAR )
810
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=2Y4uDtnMgi7ehDdSF5Cx )
664
811
 
665
812
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
666
- ----==_mimepart_55dae970974a2_b943fce20465be4566b5
813
+ ----==_mimepart_560928f6257cf_1c123feeca065bf0225c9
667
814
  Content-Type: text/html;
668
815
  charset=UTF-8
669
816
  Content-Transfer-Encoding: 7bit
@@ -709,7 +856,7 @@ body {
709
856
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
710
857
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
711
858
  <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">
712
- <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=BpjFypmeUJboRJmx-QAR" 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>
859
+ <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=2Y4uDtnMgi7ehDdSF5Cx" 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>
713
860
  </td>
714
861
  </tr>
715
862
  </table>
@@ -754,48 +901,34 @@ body {
754
901
  </body>
755
902
  </html>
756
903
 
757
- ----==_mimepart_55dae970974a2_b943fce20465be4566b5--
904
+ ----==_mimepart_560928f6257cf_1c123feeca065bf0225c9--
758
905
 
759
- Redirected to /push_type/users
760
- Completed 302 Found in 117ms (ActiveRecord: 0.6ms)
761
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
762
-  (0.1ms) ROLLBACK
763
-  (0.1ms) BEGIN
764
- ---------------------------------------------------------------
765
- PushType::UsersControllerTest::PUT #invite: test_0003_anonymous
766
- ---------------------------------------------------------------
767
-  (0.0ms) SAVEPOINT active_record_1
768
-  (0.0ms) RELEASE SAVEPOINT active_record_1
769
-  (0.0ms) SAVEPOINT active_record_1
770
-  (0.1ms) SAVEPOINT active_record_2
771
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
772
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
773
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:48.625141"], ["confirmed_at", "2015-08-24 09:52:48.625200"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:48.626680"], ["updated_at", "2015-08-24 09:52:48.626680"]]
774
906
   (0.1ms) RELEASE SAVEPOINT active_record_2
907
+ Processing by PushType::UsersController#invite as HTML
908
+ Parameters: {"id"=>"1e639e39-23bc-491b-a8cb-4c160059a171"}
909
+ 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", "d74c9c72-848d-4145-b496-d9734afed78c"]]
910
+ 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", "1e639e39-23bc-491b-a8cb-4c160059a171"]]
775
911
   (0.1ms) SAVEPOINT active_record_2
776
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
777
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
778
- 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", "cd1b25e3d4d6958441d2575095e326fe9bc350419da5d31616566fbb01c321ef"]]
779
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["created_at", "2015-08-24 09:52:48.629284"], ["updated_at", "2015-08-24 09:52:48.629284"], ["confirmation_token", "iXHPtkxdxhhs9Qn1vSHR"], ["confirmation_sent_at", "2015-08-24 09:52:48.630009"]]
912
+  (0.1ms) RELEASE SAVEPOINT active_record_2
780
913
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
781
914
 
782
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
915
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
783
916
 
784
- Sent mail to joe-8@example.com (3.0ms)
785
- Date: Mon, 24 Aug 2015 10:52:48 +0100
917
+ Sent mail to joe-10@example.com (2.9ms)
918
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
786
919
  From: pushtype@example.com
787
920
  Reply-To: pushtype@example.com
788
- To: joe-8@example.com
789
- Message-ID: <55dae970a148a_b943fce20465be45701d@Aarons-iMac.local.mail>
921
+ To: joe-10@example.com
922
+ Message-ID: <560928f62e701_1c123feeca065bf02298f@Aarons-iMac.local.mail>
790
923
  Subject: [PushType] Confirm your account
791
924
  Mime-Version: 1.0
792
925
  Content-Type: multipart/alternative;
793
- boundary="--==_mimepart_55dae970a0ee9_b943fce20465be456970";
926
+ boundary="--==_mimepart_560928f62e1e9_1c123feeca065bf02281b";
794
927
  charset=UTF-8
795
928
  Content-Transfer-Encoding: 7bit
796
929
 
797
930
 
798
- ----==_mimepart_55dae970a0ee9_b943fce20465be456970
931
+ ----==_mimepart_560928f62e1e9_1c123feeca065bf02281b
799
932
  Content-Type: text/plain;
800
933
  charset=UTF-8
801
934
  Content-Transfer-Encoding: 7bit
@@ -810,10 +943,10 @@ created for you.
810
943
  To get started, confirm your account and set your own password by
811
944
  clicking the link below:
812
945
 
813
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=iXHPtkxdxhhs9Qn1vSHR )
946
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=2Y4uDtnMgi7ehDdSF5Cx )
814
947
 
815
948
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
816
- ----==_mimepart_55dae970a0ee9_b943fce20465be456970
949
+ ----==_mimepart_560928f62e1e9_1c123feeca065bf02281b
817
950
  Content-Type: text/html;
818
951
  charset=UTF-8
819
952
  Content-Transfer-Encoding: 7bit
@@ -859,7 +992,7 @@ body {
859
992
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
860
993
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
861
994
  <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">
862
- <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=iXHPtkxdxhhs9Qn1vSHR" 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>
995
+ <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=2Y4uDtnMgi7ehDdSF5Cx" 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>
863
996
  </td>
864
997
  </tr>
865
998
  </table>
@@ -904,34 +1037,48 @@ body {
904
1037
  </body>
905
1038
  </html>
906
1039
 
907
- ----==_mimepart_55dae970a0ee9_b943fce20465be456970--
1040
+ ----==_mimepart_560928f62e1e9_1c123feeca065bf02281b--
908
1041
 
909
-  (0.1ms) RELEASE SAVEPOINT active_record_2
910
- Processing by PushType::UsersController#invite as HTML
911
- Parameters: {"id"=>"29aad242-5af4-4eda-9783-82b0b8fd7b56"}
912
- 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", "0bbeca30-dbdd-467c-b0c0-7d840d27d034"]]
913
- 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", "29aad242-5af4-4eda-9783-82b0b8fd7b56"]]
1042
+ Redirected to /push_type/users
1043
+ Completed 302 Found in 34ms (ActiveRecord: 0.4ms)
1044
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1045
+  (0.1ms) ROLLBACK
1046
+  (0.1ms) BEGIN
1047
+ ---------------------------------------------------------------
1048
+ PushType::UsersControllerTest::PUT #invite: test_0003_anonymous
1049
+ ---------------------------------------------------------------
1050
+  (0.0ms) SAVEPOINT active_record_1
1051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1052
+  (0.0ms) SAVEPOINT active_record_1
914
1053
   (0.1ms) SAVEPOINT active_record_2
915
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1054
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
1055
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
1056
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:06.194185"], ["confirmed_at", "2015-09-28 11:48:06.194244"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:06.195687"], ["updated_at", "2015-09-28 11:48:06.195687"]]
1057
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1058
+  (0.1ms) SAVEPOINT active_record_2
1059
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
1060
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
1061
+ 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", "7572e4b59de592dc9b628e664d11d09f0e16db2b908b3a6d55da011d71769450"]]
1062
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", "2015-09-28 11:48:06.198517"], ["updated_at", "2015-09-28 11:48:06.198517"], ["confirmation_token", "1_qkwhxhd7LAibQVakQ9"], ["confirmation_sent_at", "2015-09-28 11:48:06.199195"]]
916
1063
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
917
1064
 
918
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.1ms
1065
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
919
1066
 
920
- Sent mail to joe-8@example.com (2.9ms)
921
- Date: Mon, 24 Aug 2015 10:52:48 +0100
1067
+ Sent mail to joe-12@example.com (3.1ms)
1068
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
922
1069
  From: pushtype@example.com
923
1070
  Reply-To: pushtype@example.com
924
- To: joe-8@example.com
925
- Message-ID: <55dae970a9e58_b943fce20465be457314@Aarons-iMac.local.mail>
1071
+ To: joe-12@example.com
1072
+ Message-ID: <560928f637e93_1c123feeca065bf023264@Aarons-iMac.local.mail>
926
1073
  Subject: [PushType] Confirm your account
927
1074
  Mime-Version: 1.0
928
1075
  Content-Type: multipart/alternative;
929
- boundary="--==_mimepart_55dae970a991c_b943fce20465be457213";
1076
+ boundary="--==_mimepart_560928f6378fc_1c123feeca065bf0231eb";
930
1077
  charset=UTF-8
931
1078
  Content-Transfer-Encoding: 7bit
932
1079
 
933
1080
 
934
- ----==_mimepart_55dae970a991c_b943fce20465be457213
1081
+ ----==_mimepart_560928f6378fc_1c123feeca065bf0231eb
935
1082
  Content-Type: text/plain;
936
1083
  charset=UTF-8
937
1084
  Content-Transfer-Encoding: 7bit
@@ -946,10 +1093,10 @@ created for you.
946
1093
  To get started, confirm your account and set your own password by
947
1094
  clicking the link below:
948
1095
 
949
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=iXHPtkxdxhhs9Qn1vSHR )
1096
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=1_qkwhxhd7LAibQVakQ9 )
950
1097
 
951
1098
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
952
- ----==_mimepart_55dae970a991c_b943fce20465be457213
1099
+ ----==_mimepart_560928f6378fc_1c123feeca065bf0231eb
953
1100
  Content-Type: text/html;
954
1101
  charset=UTF-8
955
1102
  Content-Transfer-Encoding: 7bit
@@ -995,7 +1142,7 @@ body {
995
1142
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
996
1143
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
997
1144
  <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">
998
- <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=iXHPtkxdxhhs9Qn1vSHR" 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>
1145
+ <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=1_qkwhxhd7LAibQVakQ9" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none">Confirm my account</a></p>
999
1146
  </td>
1000
1147
  </tr>
1001
1148
  </table>
@@ -1040,52 +1187,34 @@ body {
1040
1187
  </body>
1041
1188
  </html>
1042
1189
 
1043
- ----==_mimepart_55dae970a991c_b943fce20465be457213--
1190
+ ----==_mimepart_560928f6378fc_1c123feeca065bf0231eb--
1044
1191
 
1045
- Redirected to /push_type/users
1046
- Completed 302 Found in 34ms (ActiveRecord: 0.4ms)
1047
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1048
-  (0.1ms) ROLLBACK
1049
-  (0.1ms) BEGIN
1050
- ---------------------------------------------------------------
1051
- PushType::AuthenticatableTest::confirmable: test_0001_anonymous
1052
- ---------------------------------------------------------------
1053
-  (0.1ms) SAVEPOINT active_record_1
1054
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
-  (0.0ms) SAVEPOINT active_record_1
1056
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1057
-  (0.1ms) ROLLBACK
1058
-  (0.1ms) BEGIN
1059
- ----------------------------------------------------------------------------------------------------
1060
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
1061
- ----------------------------------------------------------------------------------------------------
1062
-  (0.1ms) SAVEPOINT active_record_1
1063
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1064
-  (0.1ms) SAVEPOINT active_record_1
1065
-  (0.1ms) SAVEPOINT active_record_2
1066
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
1067
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
1068
- 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", "e8633df7b84f58a09cc7a66549f66433109d401dbdd4a9f7dcedbcbd66560021"]]
1069
- 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-9@example.com"], ["created_at", "2015-08-24 09:52:48.708014"], ["updated_at", "2015-08-24 09:52:48.708014"], ["confirmation_token", "dpP_oXJvWCE7WHiV1k8H"], ["confirmation_sent_at", "2015-08-24 09:52:48.708788"]]
1192
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1193
+ Processing by PushType::UsersController#invite as HTML
1194
+ Parameters: {"id"=>"d5737b15-c300-4d41-89e5-f6f5471c78e1"}
1195
+ 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", "311ca9ce-f63e-480a-90e2-59fe013a4cee"]]
1196
+ 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", "d5737b15-c300-4d41-89e5-f6f5471c78e1"]]
1197
+  (0.1ms) SAVEPOINT active_record_2
1198
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1070
1199
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1071
1200
 
1072
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
1201
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.1ms
1073
1202
 
1074
- Sent mail to joe-9@example.com (3.0ms)
1075
- Date: Mon, 24 Aug 2015 10:52:48 +0100
1203
+ Sent mail to joe-12@example.com (2.9ms)
1204
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
1076
1205
  From: pushtype@example.com
1077
1206
  Reply-To: pushtype@example.com
1078
- To: joe-9@example.com
1079
- Message-ID: <55dae970b49c8_b943fce20465be457686@Aarons-iMac.local.mail>
1207
+ To: joe-12@example.com
1208
+ Message-ID: <560928f6405a2_1c123feeca065bf0235ca@Aarons-iMac.local.mail>
1080
1209
  Subject: [PushType] Confirm your account
1081
1210
  Mime-Version: 1.0
1082
1211
  Content-Type: multipart/alternative;
1083
- boundary="--==_mimepart_55dae970b4483_b943fce20465be4575db";
1212
+ boundary="--==_mimepart_560928f640055_1c123feeca065bf02342e";
1084
1213
  charset=UTF-8
1085
1214
  Content-Transfer-Encoding: 7bit
1086
1215
 
1087
1216
 
1088
- ----==_mimepart_55dae970b4483_b943fce20465be4575db
1217
+ ----==_mimepart_560928f640055_1c123feeca065bf02342e
1089
1218
  Content-Type: text/plain;
1090
1219
  charset=UTF-8
1091
1220
  Content-Transfer-Encoding: 7bit
@@ -1100,10 +1229,10 @@ created for you.
1100
1229
  To get started, confirm your account and set your own password by
1101
1230
  clicking the link below:
1102
1231
 
1103
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=dpP_oXJvWCE7WHiV1k8H )
1232
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=1_qkwhxhd7LAibQVakQ9 )
1104
1233
 
1105
1234
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1106
- ----==_mimepart_55dae970b4483_b943fce20465be4575db
1235
+ ----==_mimepart_560928f640055_1c123feeca065bf02342e
1107
1236
  Content-Type: text/html;
1108
1237
  charset=UTF-8
1109
1238
  Content-Transfer-Encoding: 7bit
@@ -1149,7 +1278,7 @@ body {
1149
1278
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1150
1279
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1151
1280
  <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">
1152
- <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=dpP_oXJvWCE7WHiV1k8H" 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>
1281
+ <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=1_qkwhxhd7LAibQVakQ9" 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>
1153
1282
  </td>
1154
1283
  </tr>
1155
1284
  </table>
@@ -1194,48 +1323,52 @@ body {
1194
1323
  </body>
1195
1324
  </html>
1196
1325
 
1197
- ----==_mimepart_55dae970b4483_b943fce20465be4575db--
1326
+ ----==_mimepart_560928f640055_1c123feeca065bf02342e--
1198
1327
 
1199
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1200
- Processing by PushType::ConfirmationsController#show as HTML
1201
- Parameters: {"confirmation_token"=>"dpP_oXJvWCE7WHiV1k8H"}
1202
- 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", "dpP_oXJvWCE7WHiV1k8H"]]
1203
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.9ms)
1204
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (6.5ms)
1205
- Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.3ms)
1328
+ Redirected to /push_type/users
1329
+ Completed 302 Found in 33ms (ActiveRecord: 0.4ms)
1206
1330
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1207
1331
   (0.1ms) ROLLBACK
1208
1332
   (0.1ms) BEGIN
1209
- ----------------------------------------------------------------------------------------------------
1210
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
1211
- ----------------------------------------------------------------------------------------------------
1333
+ ---------------------------------------------------------------
1334
+ PushType::AuthenticatableTest::confirmable: test_0001_anonymous
1335
+ ---------------------------------------------------------------
1212
1336
   (0.0ms) SAVEPOINT active_record_1
1213
1337
   (0.0ms) RELEASE SAVEPOINT active_record_1
1214
1338
   (0.0ms) SAVEPOINT active_record_1
1215
-  (0.1ms) SAVEPOINT active_record_2
1216
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
1217
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
1218
- 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", "401fad70c9943f273bd400bb2bdaf4fbb396891d8120a3bd03de75ae488afba6"]]
1219
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", "2015-08-24 09:52:48.760168"], ["updated_at", "2015-08-24 09:52:48.760168"], ["confirmation_token", "nu6K8--5y87duy72yM5u"], ["confirmation_sent_at", "2015-08-24 09:52:48.760926"]]
1339
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1340
+  (0.1ms) ROLLBACK
1341
+  (0.1ms) BEGIN
1342
+ --------------------------------------------------------------------------------------------------------------
1343
+ PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
1344
+ --------------------------------------------------------------------------------------------------------------
1345
+  (0.1ms) SAVEPOINT active_record_1
1346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.0ms) SAVEPOINT active_record_1
1348
+  (0.0ms) SAVEPOINT active_record_2
1349
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
1350
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
1351
+ 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", "71c7b8b843f92ef0cbc2f97938480d7901a16b245e59698cd70c06a1034bd95c"]]
1352
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["created_at", "2015-09-28 11:48:06.271251"], ["updated_at", "2015-09-28 11:48:06.271251"], ["confirmation_token", "uysssJFp3uTsxnCWNxkx"], ["confirmation_sent_at", "2015-09-28 11:48:06.271943"]]
1220
1353
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1221
1354
 
1222
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
1355
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.1ms
1223
1356
 
1224
- Sent mail to joe-10@example.com (3.0ms)
1225
- Date: Mon, 24 Aug 2015 10:52:48 +0100
1357
+ Sent mail to joe-13@example.com (3.0ms)
1358
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
1226
1359
  From: pushtype@example.com
1227
1360
  Reply-To: pushtype@example.com
1228
- To: joe-10@example.com
1229
- Message-ID: <55dae970c126f_b943fce20465be4579d4@Aarons-iMac.local.mail>
1361
+ To: joe-13@example.com
1362
+ Message-ID: <560928f649a01_1c123feeca065bf02381d@Aarons-iMac.local.mail>
1230
1363
  Subject: [PushType] Confirm your account
1231
1364
  Mime-Version: 1.0
1232
1365
  Content-Type: multipart/alternative;
1233
- boundary="--==_mimepart_55dae970c0d37_b943fce20465be45783e";
1366
+ boundary="--==_mimepart_560928f64948d_1c123feeca065bf0237af";
1234
1367
  charset=UTF-8
1235
1368
  Content-Transfer-Encoding: 7bit
1236
1369
 
1237
1370
 
1238
- ----==_mimepart_55dae970c0d37_b943fce20465be45783e
1371
+ ----==_mimepart_560928f64948d_1c123feeca065bf0237af
1239
1372
  Content-Type: text/plain;
1240
1373
  charset=UTF-8
1241
1374
  Content-Transfer-Encoding: 7bit
@@ -1250,10 +1383,10 @@ created for you.
1250
1383
  To get started, confirm your account and set your own password by
1251
1384
  clicking the link below:
1252
1385
 
1253
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=nu6K8--5y87duy72yM5u )
1386
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=uysssJFp3uTsxnCWNxkx )
1254
1387
 
1255
1388
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1256
- ----==_mimepart_55dae970c0d37_b943fce20465be45783e
1389
+ ----==_mimepart_560928f64948d_1c123feeca065bf0237af
1257
1390
  Content-Type: text/html;
1258
1391
  charset=UTF-8
1259
1392
  Content-Transfer-Encoding: 7bit
@@ -1299,7 +1432,7 @@ body {
1299
1432
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1300
1433
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1301
1434
  <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">
1302
- <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=nu6K8--5y87duy72yM5u" 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>
1435
+ <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=uysssJFp3uTsxnCWNxkx" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none">Confirm my account</a></p>
1303
1436
  </td>
1304
1437
  </tr>
1305
1438
  </table>
@@ -1344,66 +1477,60 @@ body {
1344
1477
  </body>
1345
1478
  </html>
1346
1479
 
1347
- ----==_mimepart_55dae970c0d37_b943fce20465be45783e--
1480
+ ----==_mimepart_560928f64948d_1c123feeca065bf0237af--
1348
1481
 
1349
1482
   (0.1ms) RELEASE SAVEPOINT active_record_2
1350
- Processing by PushType::ConfirmationsController#show as HTML
1351
- Parameters: {"confirmation_token"=>"nu6K8--5y87duy72yM5u"}
1352
- 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", "nu6K8--5y87duy72yM5u"]]
1353
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1354
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1355
- Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms)
1356
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1357
-  (0.1ms) ROLLBACK
1358
-  (0.1ms) BEGIN
1359
- ----------------------------------------------------
1360
- PushType::InvitationMethodsTest: test_0001_anonymous
1361
- ----------------------------------------------------
1362
-  (0.1ms) SAVEPOINT active_record_1
1363
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1364
-  (0.0ms) SAVEPOINT active_record_1
1365
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1366
-  (0.0ms) ROLLBACK
1367
-  (0.1ms) BEGIN
1368
- -------------------------------------------------------------
1369
- PushType::AuthenticatableTest::trackable: test_0001_anonymous
1370
- -------------------------------------------------------------
1371
-  (0.0ms) SAVEPOINT active_record_1
1372
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1373
-  (0.0ms) SAVEPOINT active_record_1
1374
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1375
-  (0.1ms) ROLLBACK
1376
-  (0.1ms) BEGIN
1377
- --------------------------------------------------------------------------------------------------------------
1378
- PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
1379
- --------------------------------------------------------------------------------------------------------------
1380
-  (0.0ms) SAVEPOINT active_record_1
1381
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1382
-  (0.0ms) SAVEPOINT active_record_1
1383
-  (0.0ms) SAVEPOINT active_record_2
1384
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
1385
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
1386
- 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", "4df3b6e72d44c5823c35310ea278cd77098564b16fe7391b8d44957b77745c28"]]
1387
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", "2015-08-24 09:52:48.806762"], ["updated_at", "2015-08-24 09:52:48.806762"], ["confirmation_token", "7NoHDasPZ3QxNPypGmij"], ["confirmation_sent_at", "2015-08-24 09:52:48.807486"]]
1483
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1484
+  (0.1ms) ROLLBACK
1485
+  (0.1ms) BEGIN
1486
+ ----------------------------------------------------------------
1487
+ PushType::AuthenticatableTest::rememberable: test_0001_anonymous
1488
+ ----------------------------------------------------------------
1489
+  (0.1ms) SAVEPOINT active_record_1
1490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1491
+  (0.0ms) SAVEPOINT active_record_1
1492
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1493
+  (0.1ms) ROLLBACK
1494
+  (0.1ms) BEGIN
1495
+ --------------------------------------------------------------------------------------
1496
+ PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
1497
+ --------------------------------------------------------------------------------------
1498
+  (0.0ms) SAVEPOINT active_record_1
1499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1500
+  (0.0ms) SAVEPOINT active_record_1
1501
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1502
+  (0.0ms) ROLLBACK
1503
+  (0.1ms) BEGIN
1504
+ ------------------------------------------------------------------------------------------
1505
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
1506
+ ------------------------------------------------------------------------------------------
1507
+  (0.0ms) SAVEPOINT active_record_1
1508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1509
+  (0.1ms) SAVEPOINT active_record_1
1510
+  (0.0ms) SAVEPOINT active_record_2
1511
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1512
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1513
+ 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", "f254325edf8d46fa5626704dc0543472af5b577b11c65376f656b079ff5d461a"]]
1514
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", "2015-09-28 11:48:06.311515"], ["updated_at", "2015-09-28 11:48:06.311515"], ["confirmation_token", "Wm8rjrXMoHbdLPuGrSPk"], ["confirmation_sent_at", "2015-09-28 11:48:06.312232"]]
1388
1515
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1389
1516
 
1390
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
1517
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
1391
1518
 
1392
- Sent mail to joe-11@example.com (3.1ms)
1393
- Date: Mon, 24 Aug 2015 10:52:48 +0100
1519
+ Sent mail to joe-14@example.com (2.9ms)
1520
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
1394
1521
  From: pushtype@example.com
1395
1522
  Reply-To: pushtype@example.com
1396
- To: joe-11@example.com
1397
- Message-ID: <55dae970cc89a_b943fce20465be458274@Aarons-iMac.local.mail>
1523
+ To: joe-14@example.com
1524
+ Message-ID: <560928f653891_1c123feeca065bf0241d0@Aarons-iMac.local.mail>
1398
1525
  Subject: [PushType] Confirm your account
1399
1526
  Mime-Version: 1.0
1400
1527
  Content-Type: multipart/alternative;
1401
- boundary="--==_mimepart_55dae970cc313_b943fce20465be458179";
1528
+ boundary="--==_mimepart_560928f65334b_1c123feeca065bf0240f6";
1402
1529
  charset=UTF-8
1403
1530
  Content-Transfer-Encoding: 7bit
1404
1531
 
1405
1532
 
1406
- ----==_mimepart_55dae970cc313_b943fce20465be458179
1533
+ ----==_mimepart_560928f65334b_1c123feeca065bf0240f6
1407
1534
  Content-Type: text/plain;
1408
1535
  charset=UTF-8
1409
1536
  Content-Transfer-Encoding: 7bit
@@ -1418,10 +1545,10 @@ created for you.
1418
1545
  To get started, confirm your account and set your own password by
1419
1546
  clicking the link below:
1420
1547
 
1421
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=7NoHDasPZ3QxNPypGmij )
1548
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Wm8rjrXMoHbdLPuGrSPk )
1422
1549
 
1423
1550
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1424
- ----==_mimepart_55dae970cc313_b943fce20465be458179
1551
+ ----==_mimepart_560928f65334b_1c123feeca065bf0240f6
1425
1552
  Content-Type: text/html;
1426
1553
  charset=UTF-8
1427
1554
  Content-Transfer-Encoding: 7bit
@@ -1467,7 +1594,7 @@ body {
1467
1594
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1468
1595
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1469
1596
  <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">
1470
- <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=7NoHDasPZ3QxNPypGmij" 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>
1597
+ <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=Wm8rjrXMoHbdLPuGrSPk" 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>
1471
1598
  </td>
1472
1599
  </tr>
1473
1600
  </table>
@@ -1512,129 +1639,49 @@ body {
1512
1639
  </body>
1513
1640
  </html>
1514
1641
 
1515
- ----==_mimepart_55dae970cc313_b943fce20465be458179--
1642
+ ----==_mimepart_560928f65334b_1c123feeca065bf0240f6--
1516
1643
 
1517
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1518
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1519
-  (0.1ms) ROLLBACK
1520
-  (0.1ms) BEGIN
1521
- ----------------------------------------------------------------
1522
- PushType::AuthenticatableTest::rememberable: test_0001_anonymous
1523
- ----------------------------------------------------------------
1524
-  (0.1ms) SAVEPOINT active_record_1
1525
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1526
-  (0.1ms) SAVEPOINT active_record_1
1527
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1528
-  (0.1ms) ROLLBACK
1529
-  (0.1ms) BEGIN
1530
- -------------------------------------------------------------------------------------
1531
- PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
1532
- -------------------------------------------------------------------------------------
1533
-  (0.1ms) SAVEPOINT active_record_1
1534
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1535
-  (0.0ms) SAVEPOINT active_record_1
1536
-  (0.1ms) SAVEPOINT active_record_2
1537
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
1538
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
1539
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:48.845010"], ["confirmed_at", "2015-08-24 09:52:48.845064"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:48.846641"], ["updated_at", "2015-08-24 09:52:48.846641"]]
1540
1644
   (0.1ms) RELEASE SAVEPOINT active_record_2
1541
- Processing by PushType::ProfilesController#update as HTML
1542
- Parameters: {"user"=>{"name"=>""}}
1543
- 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", "383f25a5-426d-48fb-84af-c4c8b7700152"]]
1544
-  (0.1ms) SAVEPOINT active_record_2
1545
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-12@example.com' AND "push_type_users"."id" != '383f25a5-426d-48fb-84af-c4c8b7700152') LIMIT 1
1546
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1547
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (2.1ms)
1548
- Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.6ms)
1549
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1550
-  (0.1ms) ROLLBACK
1551
-  (0.1ms) BEGIN
1552
- -------------------------------------------------------------------------------------
1553
- PushType::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
1554
- -------------------------------------------------------------------------------------
1555
-  (0.1ms) SAVEPOINT active_record_1
1556
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1557
-  (0.1ms) SAVEPOINT active_record_1
1558
-  (0.1ms) SAVEPOINT active_record_2
1559
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
1560
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
1561
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:48.861077"], ["confirmed_at", "2015-08-24 09:52:48.861141"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:48.862646"], ["updated_at", "2015-08-24 09:52:48.862646"]]
1562
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1563
- Processing by PushType::ProfilesController#update as HTML
1564
- Parameters: {"user"=>{"name"=>""}}
1565
- 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", "e6536849-2f2e-4e2f-8bf3-a81e45f9b9a0"]]
1566
-  (0.1ms) SAVEPOINT active_record_2
1567
- 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" != 'e6536849-2f2e-4e2f-8bf3-a81e45f9b9a0') LIMIT 1
1568
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1569
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.9ms)
1570
- Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.4ms)
1571
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1572
-  (0.1ms) ROLLBACK
1573
-  (0.1ms) BEGIN
1574
- ------------------------------------------------------------------------------------------------------
1575
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
1576
- ------------------------------------------------------------------------------------------------------
1577
-  (0.1ms) SAVEPOINT active_record_1
1578
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1579
-  (0.0ms) SAVEPOINT active_record_1
1580
- Processing by PushType::ConfirmationsController#show as HTML
1581
- Parameters: {"confirmation_token"=>"invalid"}
1582
- 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"]]
1583
- 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"]]
1584
- 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", "f2350dcb33f99a9ff72614b2c7aec8d310991ebec4e0fc2bf1d9be67ba66f059"]]
1585
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.2ms)
1586
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (2.5ms)
1587
- Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.3ms)
1645
+ Processing by PushType::ConfirmationsController#update as HTML
1646
+ Parameters: {"user"=>{"confirmation_token"=>"Wm8rjrXMoHbdLPuGrSPk", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1647
+ 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", "Wm8rjrXMoHbdLPuGrSPk"]]
1648
+ 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" != '3f83b3df-0bef-4295-9b8c-f2379bf9e6cd') LIMIT 1
1649
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1650
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (4.3ms)
1651
+ Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 0.3ms)
1588
1652
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1589
1653
   (0.1ms) ROLLBACK
1590
1654
   (0.1ms) BEGIN
1591
- ------------------------------------------------------------------------------------------------------
1592
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
1593
- ------------------------------------------------------------------------------------------------------
1594
-  (0.0ms) SAVEPOINT active_record_1
1595
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1596
-  (0.0ms) SAVEPOINT active_record_1
1597
- Processing by PushType::ConfirmationsController#show as HTML
1598
- Parameters: {"confirmation_token"=>"invalid"}
1599
- 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"]]
1600
- 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"]]
1601
- 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", "f2350dcb33f99a9ff72614b2c7aec8d310991ebec4e0fc2bf1d9be67ba66f059"]]
1602
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1603
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.4ms)
1604
- Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.3ms)
1605
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1606
-  (0.1ms) ROLLBACK
1607
-  (0.1ms) BEGIN
1608
1655
  ------------------------------------------------------------------------------------------
1609
1656
  PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
1610
1657
  ------------------------------------------------------------------------------------------
1611
-  (0.1ms) SAVEPOINT active_record_1
1612
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1613
-  (0.1ms) SAVEPOINT active_record_1
1614
-  (0.1ms) SAVEPOINT active_record_2
1615
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1616
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
1617
- 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", "068e25f419796bdd65ebe79d8e6587e9ddd74c9af437a654250d38706ccd7132"]]
1618
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", "2015-08-24 09:52:48.899037"], ["updated_at", "2015-08-24 09:52:48.899037"], ["confirmation_token", "ypGF1mGJu_NDsqT2zmMr"], ["confirmation_sent_at", "2015-08-24 09:52:48.899709"]]
1658
+  (0.0ms) SAVEPOINT active_record_1
1659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1660
+  (0.0ms) SAVEPOINT active_record_1
1661
+  (0.1ms) SAVEPOINT active_record_2
1662
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1663
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1664
+ 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", "05c4ede4363e487eeadd463d65d9a9c24602072e91c814ada663640a82ed2521"]]
1665
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", "2015-09-28 11:48:06.379076"], ["updated_at", "2015-09-28 11:48:06.379076"], ["confirmation_token", "hekAzr2dmWMAbk9hmuKW"], ["confirmation_sent_at", "2015-09-28 11:48:06.379788"]]
1619
1666
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1620
1667
 
1621
1668
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1622
1669
 
1623
- Sent mail to joe-14@example.com (2.9ms)
1624
- Date: Mon, 24 Aug 2015 10:52:48 +0100
1670
+ Sent mail to joe-15@example.com (3.1ms)
1671
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
1625
1672
  From: pushtype@example.com
1626
1673
  Reply-To: pushtype@example.com
1627
- To: joe-14@example.com
1628
- Message-ID: <55dae970e30d0_b943fce20465be4585b7@Aarons-iMac.local.mail>
1674
+ To: joe-15@example.com
1675
+ Message-ID: <560928f6644b6_1c123feeca065bf0244c@Aarons-iMac.local.mail>
1629
1676
  Subject: [PushType] Confirm your account
1630
1677
  Mime-Version: 1.0
1631
1678
  Content-Type: multipart/alternative;
1632
- boundary="--==_mimepart_55dae970e2b8c_b943fce20465be45843e";
1679
+ boundary="--==_mimepart_560928f663ea7_1c123feeca065bf02434b";
1633
1680
  charset=UTF-8
1634
1681
  Content-Transfer-Encoding: 7bit
1635
1682
 
1636
1683
 
1637
- ----==_mimepart_55dae970e2b8c_b943fce20465be45843e
1684
+ ----==_mimepart_560928f663ea7_1c123feeca065bf02434b
1638
1685
  Content-Type: text/plain;
1639
1686
  charset=UTF-8
1640
1687
  Content-Transfer-Encoding: 7bit
@@ -1649,10 +1696,10 @@ created for you.
1649
1696
  To get started, confirm your account and set your own password by
1650
1697
  clicking the link below:
1651
1698
 
1652
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=ypGF1mGJu_NDsqT2zmMr )
1699
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=hekAzr2dmWMAbk9hmuKW )
1653
1700
 
1654
1701
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1655
- ----==_mimepart_55dae970e2b8c_b943fce20465be45843e
1702
+ ----==_mimepart_560928f663ea7_1c123feeca065bf02434b
1656
1703
  Content-Type: text/html;
1657
1704
  charset=UTF-8
1658
1705
  Content-Transfer-Encoding: 7bit
@@ -1698,7 +1745,7 @@ body {
1698
1745
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1699
1746
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1700
1747
  <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">
1701
- <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=ypGF1mGJu_NDsqT2zmMr" 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>
1748
+ <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=hekAzr2dmWMAbk9hmuKW" 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>
1702
1749
  </td>
1703
1750
  </tr>
1704
1751
  </table>
@@ -1743,49 +1790,49 @@ body {
1743
1790
  </body>
1744
1791
  </html>
1745
1792
 
1746
- ----==_mimepart_55dae970e2b8c_b943fce20465be45843e--
1793
+ ----==_mimepart_560928f663ea7_1c123feeca065bf02434b--
1747
1794
 
1748
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1795
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1749
1796
  Processing by PushType::ConfirmationsController#update as HTML
1750
- Parameters: {"user"=>{"confirmation_token"=>"ypGF1mGJu_NDsqT2zmMr", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1751
- 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", "ypGF1mGJu_NDsqT2zmMr"]]
1752
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-14@example.com' AND "push_type_users"."id" != 'ac0c15dd-2223-450f-8b96-fb78ee68adda') LIMIT 1
1797
+ Parameters: {"user"=>{"confirmation_token"=>"hekAzr2dmWMAbk9hmuKW", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1798
+ 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", "hekAzr2dmWMAbk9hmuKW"]]
1799
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-15@example.com' AND "push_type_users"."id" != '8852d94d-306c-4146-8905-f673c474bac3') LIMIT 1
1753
1800
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1754
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
1755
- Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
1756
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1757
-  (0.1ms) ROLLBACK
1758
-  (0.1ms) BEGIN
1801
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1802
+ Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
1803
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1804
+  (0.1ms) ROLLBACK
1805
+  (0.1ms) BEGIN
1759
1806
  ------------------------------------------------------------------------------------------
1760
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
1807
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
1761
1808
  ------------------------------------------------------------------------------------------
1762
-  (0.0ms) SAVEPOINT active_record_1
1763
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1764
-  (0.0ms) SAVEPOINT active_record_1
1765
-  (0.1ms) SAVEPOINT active_record_2
1766
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
1767
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
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", "4b469ab8fc31f3021af131f699a5bb45dfd60848d4fcc8f02649ff1acadc665e"]]
1769
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", "2015-08-24 09:52:48.944097"], ["updated_at", "2015-08-24 09:52:48.944097"], ["confirmation_token", "Ri-bzefBH5oq5wzkyMuv"], ["confirmation_sent_at", "2015-08-24 09:52:48.944830"]]
1809
+  (0.0ms) SAVEPOINT active_record_1
1810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1811
+  (0.0ms) SAVEPOINT active_record_1
1812
+  (0.0ms) SAVEPOINT active_record_2
1813
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1814
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1815
+ 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", "515dfc59f3c38c40b183eed3b548d425a221430b05acb9abfbce4b08626453b9"]]
1816
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", "2015-09-28 11:48:06.424683"], ["updated_at", "2015-09-28 11:48:06.424683"], ["confirmation_token", "PbZixmr6eP5ysG3MvNJY"], ["confirmation_sent_at", "2015-09-28 11:48:06.425377"]]
1770
1817
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1771
1818
 
1772
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
1819
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
1773
1820
 
1774
- Sent mail to joe-15@example.com (2.9ms)
1775
- Date: Mon, 24 Aug 2015 10:52:48 +0100
1821
+ Sent mail to joe-16@example.com (3.0ms)
1822
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
1776
1823
  From: pushtype@example.com
1777
1824
  Reply-To: pushtype@example.com
1778
- To: joe-15@example.com
1779
- Message-ID: <55dae970ee16a_b943fce20465be45887b@Aarons-iMac.local.mail>
1825
+ To: joe-16@example.com
1826
+ Message-ID: <560928f66f3a1_1c123feeca065bf0247f5@Aarons-iMac.local.mail>
1780
1827
  Subject: [PushType] Confirm your account
1781
1828
  Mime-Version: 1.0
1782
1829
  Content-Type: multipart/alternative;
1783
- boundary="--==_mimepart_55dae970edc0a_b943fce20465be458755";
1830
+ boundary="--==_mimepart_560928f66ee5a_1c123feeca065bf0246ca";
1784
1831
  charset=UTF-8
1785
1832
  Content-Transfer-Encoding: 7bit
1786
1833
 
1787
1834
 
1788
- ----==_mimepart_55dae970edc0a_b943fce20465be458755
1835
+ ----==_mimepart_560928f66ee5a_1c123feeca065bf0246ca
1789
1836
  Content-Type: text/plain;
1790
1837
  charset=UTF-8
1791
1838
  Content-Transfer-Encoding: 7bit
@@ -1800,10 +1847,10 @@ created for you.
1800
1847
  To get started, confirm your account and set your own password by
1801
1848
  clicking the link below:
1802
1849
 
1803
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Ri-bzefBH5oq5wzkyMuv )
1850
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=PbZixmr6eP5ysG3MvNJY )
1804
1851
 
1805
1852
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1806
- ----==_mimepart_55dae970edc0a_b943fce20465be458755
1853
+ ----==_mimepart_560928f66ee5a_1c123feeca065bf0246ca
1807
1854
  Content-Type: text/html;
1808
1855
  charset=UTF-8
1809
1856
  Content-Transfer-Encoding: 7bit
@@ -1849,7 +1896,7 @@ body {
1849
1896
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
1850
1897
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
1851
1898
  <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">
1852
- <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=Ri-bzefBH5oq5wzkyMuv" 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>
1899
+ <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=PbZixmr6eP5ysG3MvNJY" 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>
1853
1900
  </td>
1854
1901
  </tr>
1855
1902
  </table>
@@ -1894,49 +1941,85 @@ body {
1894
1941
  </body>
1895
1942
  </html>
1896
1943
 
1897
- ----==_mimepart_55dae970edc0a_b943fce20465be458755--
1944
+ ----==_mimepart_560928f66ee5a_1c123feeca065bf0246ca--
1898
1945
 
1899
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1946
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1900
1947
  Processing by PushType::ConfirmationsController#update as HTML
1901
- Parameters: {"user"=>{"confirmation_token"=>"Ri-bzefBH5oq5wzkyMuv", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1902
- 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", "Ri-bzefBH5oq5wzkyMuv"]]
1903
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-15@example.com' AND "push_type_users"."id" != 'f70685fa-5f34-4736-9c47-7d941f59f6c6') LIMIT 1
1948
+ Parameters: {"user"=>{"confirmation_token"=>"PbZixmr6eP5ysG3MvNJY", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1949
+ 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", "PbZixmr6eP5ysG3MvNJY"]]
1950
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-16@example.com' AND "push_type_users"."id" != 'ab8476be-fb35-43da-9efb-917c2ce97b2a') LIMIT 1
1904
1951
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1905
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1906
- Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
1907
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1908
-  (0.1ms) ROLLBACK
1909
-  (0.1ms) BEGIN
1910
- ------------------------------------------------------------------------------------------
1911
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
1912
- ------------------------------------------------------------------------------------------
1913
-  (0.1ms) SAVEPOINT active_record_1
1914
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1915
-  (0.1ms) SAVEPOINT active_record_1
1916
-  (0.1ms) SAVEPOINT active_record_2
1917
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1918
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
1919
- 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", "7c1ad3db12bc852656b3bbfd44e7c1076485ad2d82656c9801f6fc03733ac7bc"]]
1920
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", "2015-08-24 09:52:48.989067"], ["updated_at", "2015-08-24 09:52:48.989067"], ["confirmation_token", "fmoSCxkcJfHPyq7Bks1u"], ["confirmation_sent_at", "2015-08-24 09:52:48.989785"]]
1952
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
1953
+ Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
1954
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1955
+  (0.1ms) ROLLBACK
1956
+  (0.1ms) BEGIN
1957
+ ---------------------------------------------------------------------------
1958
+ PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
1959
+ ---------------------------------------------------------------------------
1960
+  (0.1ms) SAVEPOINT active_record_1
1961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1962
+  (0.0ms) SAVEPOINT active_record_1
1963
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1964
+  (0.1ms) ROLLBACK
1965
+  (0.1ms) BEGIN
1966
+ ---------------------------------------------------------------------------
1967
+ PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
1968
+ ---------------------------------------------------------------------------
1969
+  (0.1ms) SAVEPOINT active_record_1
1970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1971
+  (0.0ms) SAVEPOINT active_record_1
1972
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1973
+  (0.0ms) ROLLBACK
1974
+  (0.0ms) BEGIN
1975
+ -------------------------------------------------------------
1976
+ PushType::AuthenticatableTest::trackable: test_0001_anonymous
1977
+ -------------------------------------------------------------
1978
+  (0.0ms) SAVEPOINT active_record_1
1979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1980
+  (0.0ms) SAVEPOINT active_record_1
1981
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1982
+  (0.0ms) ROLLBACK
1983
+  (0.1ms) BEGIN
1984
+ ----------------------------------------------------
1985
+ PushType::InvitationMethodsTest: test_0001_anonymous
1986
+ ----------------------------------------------------
1987
+  (0.0ms) SAVEPOINT active_record_1
1988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1989
+  (0.0ms) SAVEPOINT active_record_1
1990
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1991
+  (0.0ms) ROLLBACK
1992
+  (0.1ms) BEGIN
1993
+ ----------------------------------------------------------------------------------------------------
1994
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
1995
+ ----------------------------------------------------------------------------------------------------
1996
+  (0.1ms) SAVEPOINT active_record_1
1997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1998
+  (0.1ms) SAVEPOINT active_record_1
1999
+  (0.1ms) SAVEPOINT active_record_2
2000
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
2001
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
2002
+ 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", "7bbe5cb8b6dd9377ac6a300890f245e60ef6527b3b7bae1c320436677c275560"]]
2003
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", "2015-09-28 11:48:06.477721"], ["updated_at", "2015-09-28 11:48:06.477721"], ["confirmation_token", "4xH8kgCHnsjG2vH3nfGx"], ["confirmation_sent_at", "2015-09-28 11:48:06.478447"]]
1921
2004
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
1922
2005
 
1923
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
2006
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
1924
2007
 
1925
- Sent mail to joe-16@example.com (3.0ms)
1926
- Date: Mon, 24 Aug 2015 10:52:49 +0100
2008
+ Sent mail to joe-17@example.com (3.0ms)
2009
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
1927
2010
  From: pushtype@example.com
1928
2011
  Reply-To: pushtype@example.com
1929
- To: joe-16@example.com
1930
- Message-ID: <55dae9714f81_b943fce20465be459114@Aarons-iMac.local.mail>
2012
+ To: joe-17@example.com
2013
+ Message-ID: <560928f67c360_1c123feeca065bf025026@Aarons-iMac.local.mail>
1931
2014
  Subject: [PushType] Confirm your account
1932
2015
  Mime-Version: 1.0
1933
2016
  Content-Type: multipart/alternative;
1934
- boundary="--==_mimepart_55dae9714a2b_b943fce20465be4590de";
2017
+ boundary="--==_mimepart_560928f67be05_1c123feeca065bf02494b";
1935
2018
  charset=UTF-8
1936
2019
  Content-Transfer-Encoding: 7bit
1937
2020
 
1938
2021
 
1939
- ----==_mimepart_55dae9714a2b_b943fce20465be4590de
2022
+ ----==_mimepart_560928f67be05_1c123feeca065bf02494b
1940
2023
  Content-Type: text/plain;
1941
2024
  charset=UTF-8
1942
2025
  Content-Transfer-Encoding: 7bit
@@ -1951,10 +2034,10 @@ created for you.
1951
2034
  To get started, confirm your account and set your own password by
1952
2035
  clicking the link below:
1953
2036
 
1954
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=fmoSCxkcJfHPyq7Bks1u )
2037
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=4xH8kgCHnsjG2vH3nfGx )
1955
2038
 
1956
2039
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
1957
- ----==_mimepart_55dae9714a2b_b943fce20465be4590de
2040
+ ----==_mimepart_560928f67be05_1c123feeca065bf02494b
1958
2041
  Content-Type: text/html;
1959
2042
  charset=UTF-8
1960
2043
  Content-Transfer-Encoding: 7bit
@@ -2000,7 +2083,7 @@ body {
2000
2083
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2001
2084
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2002
2085
  <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">
2003
- <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=fmoSCxkcJfHPyq7Bks1u" 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>
2086
+ <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=4xH8kgCHnsjG2vH3nfGx" 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>
2004
2087
  </td>
2005
2088
  </tr>
2006
2089
  </table>
@@ -2045,49 +2128,48 @@ body {
2045
2128
  </body>
2046
2129
  </html>
2047
2130
 
2048
- ----==_mimepart_55dae9714a2b_b943fce20465be4590de--
2131
+ ----==_mimepart_560928f67be05_1c123feeca065bf02494b--
2049
2132
 
2050
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2051
- Processing by PushType::ConfirmationsController#update as HTML
2052
- Parameters: {"user"=>{"confirmation_token"=>"fmoSCxkcJfHPyq7Bks1u", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2053
- 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", "fmoSCxkcJfHPyq7Bks1u"]]
2054
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-16@example.com' AND "push_type_users"."id" != '73e54fe8-48ae-44a0-be0f-5e59a6cdf274') LIMIT 1
2133
+  (0.2ms) RELEASE SAVEPOINT active_record_2
2134
+ Processing by PushType::ConfirmationsController#show as HTML
2135
+ Parameters: {"confirmation_token"=>"4xH8kgCHnsjG2vH3nfGx"}
2136
+ 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", "4xH8kgCHnsjG2vH3nfGx"]]
2055
2137
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2056
2138
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.8ms)
2057
- Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.3ms)
2139
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.2ms)
2058
2140
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2059
2141
   (0.1ms) ROLLBACK
2060
2142
   (0.1ms) BEGIN
2061
- ----------------------------------------------------------------------------------------
2062
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
2063
- ----------------------------------------------------------------------------------------
2064
-  (0.1ms) SAVEPOINT active_record_1
2065
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2143
+ ----------------------------------------------------------------------------------------------------
2144
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
2145
+ ----------------------------------------------------------------------------------------------------
2066
2146
   (0.1ms) SAVEPOINT active_record_1
2147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2148
+  (0.0ms) SAVEPOINT active_record_1
2067
2149
   (0.1ms) SAVEPOINT active_record_2
2068
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
2069
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
2070
- 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", "880046202c973cef1f11b0bae9decef7e279f46bf8c3ae0ec225ba765127ce6e"]]
2071
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", "2015-08-24 09:52:49.035795"], ["updated_at", "2015-08-24 09:52:49.035795"], ["confirmation_token", "Mxdy4-V4Rq9E5hjGjbdZ"], ["confirmation_sent_at", "2015-08-24 09:52:49.036547"]]
2150
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
2151
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
2152
+ 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", "4987962089489b936ca7a13276b13e3e7deabc38833f5e4125288a93ec205929"]]
2153
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", "2015-09-28 11:48:06.521936"], ["updated_at", "2015-09-28 11:48:06.521936"], ["confirmation_token", "Dugbh4_suyMKt3uRc4wA"], ["confirmation_sent_at", "2015-09-28 11:48:06.522678"]]
2072
2154
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2073
2155
 
2074
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
2156
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
2075
2157
 
2076
- Sent mail to joe-17@example.com (3.0ms)
2077
- Date: Mon, 24 Aug 2015 10:52:49 +0100
2158
+ Sent mail to joe-18@example.com (3.0ms)
2159
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
2078
2160
  From: pushtype@example.com
2079
2161
  Reply-To: pushtype@example.com
2080
- To: joe-17@example.com
2081
- Message-ID: <55dae9711042a_b943fce20465be45942e@Aarons-iMac.local.mail>
2162
+ To: joe-18@example.com
2163
+ Message-ID: <560928f686e73_1c123feeca065bf02537f@Aarons-iMac.local.mail>
2082
2164
  Subject: [PushType] Confirm your account
2083
2165
  Mime-Version: 1.0
2084
2166
  Content-Type: multipart/alternative;
2085
- boundary="--==_mimepart_55dae971feb3_b943fce20465be4593d4";
2167
+ boundary="--==_mimepart_560928f686925_1c123feeca065bf025229";
2086
2168
  charset=UTF-8
2087
2169
  Content-Transfer-Encoding: 7bit
2088
2170
 
2089
2171
 
2090
- ----==_mimepart_55dae971feb3_b943fce20465be4593d4
2172
+ ----==_mimepart_560928f686925_1c123feeca065bf025229
2091
2173
  Content-Type: text/plain;
2092
2174
  charset=UTF-8
2093
2175
  Content-Transfer-Encoding: 7bit
@@ -2102,10 +2184,10 @@ created for you.
2102
2184
  To get started, confirm your account and set your own password by
2103
2185
  clicking the link below:
2104
2186
 
2105
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Mxdy4-V4Rq9E5hjGjbdZ )
2187
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=Dugbh4_suyMKt3uRc4wA )
2106
2188
 
2107
2189
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2108
- ----==_mimepart_55dae971feb3_b943fce20465be4593d4
2190
+ ----==_mimepart_560928f686925_1c123feeca065bf025229
2109
2191
  Content-Type: text/html;
2110
2192
  charset=UTF-8
2111
2193
  Content-Transfer-Encoding: 7bit
@@ -2151,7 +2233,7 @@ body {
2151
2233
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2152
2234
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2153
2235
  <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">
2154
- <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=Mxdy4-V4Rq9E5hjGjbdZ" 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>
2236
+ <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=Dugbh4_suyMKt3uRc4wA" 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>
2155
2237
  </td>
2156
2238
  </tr>
2157
2239
  </table>
@@ -2196,22 +2278,15 @@ body {
2196
2278
  </body>
2197
2279
  </html>
2198
2280
 
2199
- ----==_mimepart_55dae971feb3_b943fce20465be4593d4--
2281
+ ----==_mimepart_560928f686925_1c123feeca065bf025229--
2200
2282
 
2201
2283
   (0.1ms) RELEASE SAVEPOINT active_record_2
2202
- Processing by PushType::ConfirmationsController#update as HTML
2203
- Parameters: {"user"=>{"confirmation_token"=>"Mxdy4-V4Rq9E5hjGjbdZ", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2204
- 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", "Mxdy4-V4Rq9E5hjGjbdZ"]]
2205
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-17@example.com' AND "push_type_users"."id" != '3adde6b6-a755-4fce-824a-da6d7bc9e1d6') LIMIT 1
2206
-  (0.1ms) SAVEPOINT active_record_2
2207
- 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$h2QKGVCTawHUMHB0fILl1eDC4mUyPlkzaO.P4W6OrdpXXIYpjq5im"], ["confirmed_at", "2015-08-24 09:52:49.079221"], ["updated_at", "2015-08-24 09:52:49.079691"], ["id", "3adde6b6-a755-4fce-824a-da6d7bc9e1d6"]]
2208
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2209
-  (0.1ms) SAVEPOINT active_record_2
2210
- SQL (0.1ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-08-24 09:52:49.081675"], ["current_sign_in_at", "2015-08-24 09:52:49.081675"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-08-24 09:52:49.082229"], ["id", "3adde6b6-a755-4fce-824a-da6d7bc9e1d6"]]
2211
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2212
- Redirected to http://test.host/push_type/
2213
- Completed 302 Found in 14ms (ActiveRecord: 1.0ms)
2214
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "3adde6b6-a755-4fce-824a-da6d7bc9e1d6"]]
2284
+ Processing by PushType::ConfirmationsController#show as HTML
2285
+ Parameters: {"confirmation_token"=>"Dugbh4_suyMKt3uRc4wA"}
2286
+ 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", "Dugbh4_suyMKt3uRc4wA"]]
2287
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2288
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
2289
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms)
2215
2290
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2216
2291
   (0.1ms) ROLLBACK
2217
2292
   (0.1ms) BEGIN
@@ -2221,30 +2296,30 @@ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_a
2221
2296
   (0.0ms) SAVEPOINT active_record_1
2222
2297
   (0.0ms) RELEASE SAVEPOINT active_record_1
2223
2298
   (0.0ms) SAVEPOINT active_record_1
2224
-  (0.0ms) SAVEPOINT active_record_2
2225
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
2226
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
2227
- 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", "d8574671ff1c249e17f854a6ce658540e3bbbac6951cee33c97a56865525a50a"]]
2228
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", "2015-08-24 09:52:49.087476"], ["updated_at", "2015-08-24 09:52:49.087476"], ["confirmation_token", "-U8SyZJsVifwy627z8GH"], ["confirmation_sent_at", "2015-08-24 09:52:49.088127"]]
2229
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2299
+  (0.1ms) SAVEPOINT active_record_2
2300
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
2301
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
2302
+ 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", "b5b13d9dc556b4d20b8ecdc6b7bf8c03186f064091e1de71223bf51575023cb0"]]
2303
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", "2015-09-28 11:48:06.566328"], ["updated_at", "2015-09-28 11:48:06.566328"], ["confirmation_token", "9acxzRXUsyKn_i96UJzn"], ["confirmation_sent_at", "2015-09-28 11:48:06.567116"]]
2304
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2230
2305
 
2231
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
2306
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.4ms
2232
2307
 
2233
- Sent mail to joe-18@example.com (3.0ms)
2234
- Date: Mon, 24 Aug 2015 10:52:49 +0100
2308
+ Sent mail to joe-19@example.com (3.0ms)
2309
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
2235
2310
  From: pushtype@example.com
2236
2311
  Reply-To: pushtype@example.com
2237
- To: joe-18@example.com
2238
- Message-ID: <55dae9711ce2f_b943fce20465be45976a@Aarons-iMac.local.mail>
2312
+ To: joe-19@example.com
2313
+ Message-ID: <560928f691e27_1c123feeca065bf02567b@Aarons-iMac.local.mail>
2239
2314
  Subject: [PushType] Confirm your account
2240
2315
  Mime-Version: 1.0
2241
2316
  Content-Type: multipart/alternative;
2242
- boundary="--==_mimepart_55dae9711c8f8_b943fce20465be459648";
2317
+ boundary="--==_mimepart_560928f6918ac_1c123feeca065bf0255ec";
2243
2318
  charset=UTF-8
2244
2319
  Content-Transfer-Encoding: 7bit
2245
2320
 
2246
2321
 
2247
- ----==_mimepart_55dae9711c8f8_b943fce20465be459648
2322
+ ----==_mimepart_560928f6918ac_1c123feeca065bf0255ec
2248
2323
  Content-Type: text/plain;
2249
2324
  charset=UTF-8
2250
2325
  Content-Transfer-Encoding: 7bit
@@ -2259,10 +2334,10 @@ created for you.
2259
2334
  To get started, confirm your account and set your own password by
2260
2335
  clicking the link below:
2261
2336
 
2262
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=-U8SyZJsVifwy627z8GH )
2337
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=9acxzRXUsyKn_i96UJzn )
2263
2338
 
2264
2339
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2265
- ----==_mimepart_55dae9711c8f8_b943fce20465be459648
2340
+ ----==_mimepart_560928f6918ac_1c123feeca065bf0255ec
2266
2341
  Content-Type: text/html;
2267
2342
  charset=UTF-8
2268
2343
  Content-Transfer-Encoding: 7bit
@@ -2308,7 +2383,7 @@ body {
2308
2383
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2309
2384
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2310
2385
  <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">
2311
- <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=-U8SyZJsVifwy627z8GH" 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>
2386
+ <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=9acxzRXUsyKn_i96UJzn" 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>
2312
2387
  </td>
2313
2388
  </tr>
2314
2389
  </table>
@@ -2353,126 +2428,54 @@ body {
2353
2428
  </body>
2354
2429
  </html>
2355
2430
 
2356
- ----==_mimepart_55dae9711c8f8_b943fce20465be459648--
2431
+ ----==_mimepart_560928f6918ac_1c123feeca065bf0255ec--
2357
2432
 
2358
2433
   (0.1ms) RELEASE SAVEPOINT active_record_2
2359
2434
  Processing by PushType::ConfirmationsController#update as HTML
2360
- Parameters: {"user"=>{"confirmation_token"=>"-U8SyZJsVifwy627z8GH", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
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", "-U8SyZJsVifwy627z8GH"]]
2362
- 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" != '238ace25-fff5-4408-849e-97da8d01b310') LIMIT 1
2435
+ Parameters: {"user"=>{"confirmation_token"=>"9acxzRXUsyKn_i96UJzn", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2436
+ 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", "9acxzRXUsyKn_i96UJzn"]]
2437
+ 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" != '43de002f-4484-4057-8772-7f2c78539e40') LIMIT 1
2363
2438
   (0.1ms) SAVEPOINT active_record_2
2364
- SQL (0.1ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$59n860hm7IXsllvFqyZfZuuRvc4SfwpiG6Dy7X/rdgnvCtuUjmAoy"], ["confirmed_at", "2015-08-24 09:52:49.124519"], ["updated_at", "2015-08-24 09:52:49.124921"], ["id", "238ace25-fff5-4408-849e-97da8d01b310"]]
2439
+ 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$/qfxgHO9x5USfHQtO83OwuPzUREep/XKEMlXTLnNkZw73Cvc/RwKC"], ["confirmed_at", "2015-09-28 11:48:06.604047"], ["updated_at", "2015-09-28 11:48:06.604466"], ["id", "43de002f-4484-4057-8772-7f2c78539e40"]]
2365
2440
   (0.1ms) RELEASE SAVEPOINT active_record_2
2366
2441
   (0.1ms) SAVEPOINT active_record_2
2367
- SQL (0.2ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-08-24 09:52:49.126127"], ["current_sign_in_at", "2015-08-24 09:52:49.126127"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-08-24 09:52:49.126485"], ["id", "238ace25-fff5-4408-849e-97da8d01b310"]]
2442
+ SQL (0.2ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-09-28 11:48:06.605981"], ["current_sign_in_at", "2015-09-28 11:48:06.605981"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-09-28 11:48:06.606523"], ["id", "43de002f-4484-4057-8772-7f2c78539e40"]]
2368
2443
   (0.1ms) RELEASE SAVEPOINT active_record_2
2369
2444
  Redirected to http://test.host/push_type/
2370
- Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
2371
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2372
-  (0.2ms) ROLLBACK
2373
-  (0.1ms) BEGIN
2374
- ---------------------------------------------------------------
2375
- PushType::AuthenticatableTest::recoverable: test_0001_anonymous
2376
- ---------------------------------------------------------------
2377
-  (0.1ms) SAVEPOINT active_record_1
2378
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2379
-  (0.0ms) SAVEPOINT active_record_1
2445
+ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
2380
2446
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2381
2447
   (0.1ms) ROLLBACK
2382
2448
   (0.1ms) BEGIN
2383
- ---------------------------------------------------------------------------
2384
- PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
2385
- ---------------------------------------------------------------------------
2386
-  (0.0ms) SAVEPOINT active_record_1
2387
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2388
-  (0.0ms) SAVEPOINT active_record_1
2389
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2390
-  (0.0ms) ROLLBACK
2391
-  (0.1ms) BEGIN
2392
- ---------------------------------------------------------------------------
2393
- PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
2394
- ---------------------------------------------------------------------------
2395
-  (0.0ms) SAVEPOINT active_record_1
2396
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2397
-  (0.0ms) SAVEPOINT active_record_1
2398
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2399
-  (0.0ms) ROLLBACK
2400
-  (0.1ms) BEGIN
2401
- --------------------------------------------------------------------------------------
2402
- PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
2403
- --------------------------------------------------------------------------------------
2404
-  (0.0ms) SAVEPOINT active_record_1
2405
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2406
-  (0.0ms) SAVEPOINT active_record_1
2407
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2408
-  (0.1ms) ROLLBACK
2409
-  (0.1ms) BEGIN
2410
- --------------------------------------------------------
2411
- PushType::AuthenticationMethodsTest: test_0001_anonymous
2412
- --------------------------------------------------------
2413
-  (0.1ms) SAVEPOINT active_record_1
2414
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2415
-  (0.1ms) SAVEPOINT active_record_1
2416
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2417
-  (0.1ms) ROLLBACK
2418
-  (0.1ms) BEGIN
2419
- --------------------------------------------------------
2420
- PushType::AuthenticationMethodsTest: test_0002_anonymous
2421
- --------------------------------------------------------
2422
-  (0.1ms) SAVEPOINT active_record_1
2423
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2424
-  (0.1ms) SAVEPOINT active_record_1
2425
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2426
-  (0.1ms) ROLLBACK
2427
-  (0.1ms) BEGIN
2428
- ---------------------------------------------------------------
2429
- PushType::AuthenticatableTest::validatable: test_0002_anonymous
2430
- ---------------------------------------------------------------
2431
-  (0.0ms) SAVEPOINT active_record_1
2432
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2433
-  (0.0ms) SAVEPOINT active_record_1
2434
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2435
-  (0.1ms) ROLLBACK
2436
-  (0.1ms) BEGIN
2437
- ---------------------------------------------------------------
2438
- PushType::AuthenticatableTest::validatable: test_0001_anonymous
2439
- ---------------------------------------------------------------
2440
-  (0.1ms) SAVEPOINT active_record_1
2441
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2442
-  (0.0ms) SAVEPOINT active_record_1
2443
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2444
-  (0.0ms) ROLLBACK
2445
-  (0.0ms) BEGIN
2446
- --------------------------------------------------------------------------------------------------------------
2447
- PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
2448
- --------------------------------------------------------------------------------------------------------------
2449
+ ----------------------------------------------------------------------------------------
2450
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
2451
+ ----------------------------------------------------------------------------------------
2449
2452
   (0.0ms) SAVEPOINT active_record_1
2450
2453
   (0.0ms) RELEASE SAVEPOINT active_record_1
2451
2454
   (0.0ms) SAVEPOINT active_record_1
2452
2455
   (0.0ms) SAVEPOINT active_record_2
2453
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
2454
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
2455
- 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", "5436ac5fb49ad501b9e15278a0e451053f7f6b34c97a9abd80c9830e274a9d97"]]
2456
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", "2015-08-24 09:52:49.143871"], ["updated_at", "2015-08-24 09:52:49.143871"], ["confirmation_token", "vQr-D9z-DYLnK-H5rvqA"], ["confirmation_sent_at", "2015-08-24 09:52:49.144578"]]
2456
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2457
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2458
+ 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", "a4ce96c21a0327928c9622398908ab861cc6792594a832809b8b6b404ad8a5fe"]]
2459
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", "2015-09-28 11:48:06.611290"], ["updated_at", "2015-09-28 11:48:06.611290"], ["confirmation_token", "JptQQQK3QnahgxuF9t6s"], ["confirmation_sent_at", "2015-09-28 11:48:06.611948"]]
2457
2460
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.2ms)
2458
2461
 
2459
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
2462
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.3ms
2460
2463
 
2461
- Sent mail to joe-19@example.com (2.9ms)
2462
- Date: Mon, 24 Aug 2015 10:52:49 +0100
2464
+ Sent mail to joe-20@example.com (2.9ms)
2465
+ Date: Mon, 28 Sep 2015 12:48:06 +0100
2463
2466
  From: pushtype@example.com
2464
2467
  Reply-To: pushtype@example.com
2465
- To: joe-19@example.com
2466
- Message-ID: <55dae9712aba6_b943fce20465be460059@Aarons-iMac.local.mail>
2468
+ To: joe-20@example.com
2469
+ Message-ID: <560928f69cafc_1c123feeca065bf025920@Aarons-iMac.local.mail>
2467
2470
  Subject: [PushType] Confirm your account
2468
2471
  Mime-Version: 1.0
2469
2472
  Content-Type: multipart/alternative;
2470
- boundary="--==_mimepart_55dae9712a65f_b943fce20465be4599f";
2473
+ boundary="--==_mimepart_560928f69c5ab_1c123feeca065bf02587e";
2471
2474
  charset=UTF-8
2472
2475
  Content-Transfer-Encoding: 7bit
2473
2476
 
2474
2477
 
2475
- ----==_mimepart_55dae9712a65f_b943fce20465be4599f
2478
+ ----==_mimepart_560928f69c5ab_1c123feeca065bf02587e
2476
2479
  Content-Type: text/plain;
2477
2480
  charset=UTF-8
2478
2481
  Content-Transfer-Encoding: 7bit
@@ -2487,10 +2490,10 @@ created for you.
2487
2490
  To get started, confirm your account and set your own password by
2488
2491
  clicking the link below:
2489
2492
 
2490
- Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=vQr-D9z-DYLnK-H5rvqA )
2493
+ Confirm my account ( http://localhost:3000/push_type/confirmation?confirmation_token=JptQQQK3QnahgxuF9t6s )
2491
2494
 
2492
2495
  PushType CMS: www.pushtype.org ( http://www.pushtype.org ).
2493
- ----==_mimepart_55dae9712a65f_b943fce20465be4599f
2496
+ ----==_mimepart_560928f69c5ab_1c123feeca065bf02587e
2494
2497
  Content-Type: text/html;
2495
2498
  charset=UTF-8
2496
2499
  Content-Transfer-Encoding: 7bit
@@ -2536,7 +2539,7 @@ body {
2536
2539
  <table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0; width: 100%">
2537
2540
  <tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0">
2538
2541
  <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">
2539
- <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=vQr-D9z-DYLnK-H5rvqA" 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>
2542
+ <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=JptQQQK3QnahgxuF9t6s" 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>
2540
2543
  </td>
2541
2544
  </tr>
2542
2545
  </table>
@@ -2581,78 +2584,75 @@ body {
2581
2584
  </body>
2582
2585
  </html>
2583
2586
 
2584
- ----==_mimepart_55dae9712a65f_b943fce20465be4599f--
2587
+ ----==_mimepart_560928f69c5ab_1c123feeca065bf02587e--
2585
2588
 
2586
2589
   (0.1ms) RELEASE SAVEPOINT active_record_2
2587
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2588
-  (0.1ms) ROLLBACK
2589
-  (0.1ms) BEGIN
2590
- -----------------------------------------------------------------------------------
2591
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
2592
- -----------------------------------------------------------------------------------
2593
-  (0.1ms) SAVEPOINT active_record_1
2594
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2595
-  (0.0ms) SAVEPOINT active_record_1
2590
+ Processing by PushType::ConfirmationsController#update as HTML
2591
+ Parameters: {"user"=>{"confirmation_token"=>"JptQQQK3QnahgxuF9t6s", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2592
+ 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", "JptQQQK3QnahgxuF9t6s"]]
2593
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-20@example.com' AND "push_type_users"."id" != 'e788ebb9-b5bb-43c9-a0ae-ce0e28da98e0') LIMIT 1
2596
2594
   (0.1ms) SAVEPOINT active_record_2
2597
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2598
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
2599
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:49.180842"], ["confirmed_at", "2015-08-24 09:52:49.180893"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:49.182379"], ["updated_at", "2015-08-24 09:52:49.182379"]]
2595
+ 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$Q.LX0gfa6W2L8dTy/qQvcuS6BAtDb2ViDAurvmK4SNKd4bnV.7Eu6"], ["confirmed_at", "2015-09-28 11:48:06.647859"], ["updated_at", "2015-09-28 11:48:06.648296"], ["id", "e788ebb9-b5bb-43c9-a0ae-ce0e28da98e0"]]
2600
2596
   (0.1ms) RELEASE SAVEPOINT active_record_2
2601
- Processing by PushType::ProfilesController#update as HTML
2602
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2603
- 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", "04ee6bb3-467a-4ca9-96b0-907455271618"]]
2604
-  (0.1ms) SAVEPOINT active_record_2
2605
- 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" != '04ee6bb3-467a-4ca9-96b0-907455271618') LIMIT 1
2606
- SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-08-24 09:52:49.186497"], ["id", "04ee6bb3-467a-4ca9-96b0-907455271618"]]
2597
+  (0.1ms) SAVEPOINT active_record_2
2598
+ SQL (0.2ms) UPDATE "push_type_users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["last_sign_in_at", "2015-09-28 11:48:06.649603"], ["current_sign_in_at", "2015-09-28 11:48:06.649603"], ["last_sign_in_ip", "0.0.0.0"], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-09-28 11:48:06.649969"], ["id", "e788ebb9-b5bb-43c9-a0ae-ce0e28da98e0"]]
2607
2599
   (0.1ms) RELEASE SAVEPOINT active_record_2
2608
- Redirected to http://test.host/push_type/profile/edit
2609
- Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
2610
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "04ee6bb3-467a-4ca9-96b0-907455271618"]]
2600
+ Redirected to http://test.host/push_type/
2601
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
2602
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "e788ebb9-b5bb-43c9-a0ae-ce0e28da98e0"]]
2611
2603
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2612
2604
   (0.1ms) ROLLBACK
2613
-  (0.0ms) BEGIN
2614
- -----------------------------------------------------------------------------------
2615
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
2616
- -----------------------------------------------------------------------------------
2605
+  (0.1ms) BEGIN
2606
+ --------------------------------------------------------
2607
+ PushType::AuthenticationMethodsTest: test_0001_anonymous
2608
+ --------------------------------------------------------
2617
2609
   (0.0ms) SAVEPOINT active_record_1
2618
2610
   (0.0ms) RELEASE SAVEPOINT active_record_1
2619
2611
   (0.0ms) SAVEPOINT active_record_1
2612
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2613
+  (0.0ms) ROLLBACK
2614
+  (0.1ms) BEGIN
2615
+ --------------------------------------------------------
2616
+ PushType::AuthenticationMethodsTest: test_0002_anonymous
2617
+ --------------------------------------------------------
2618
+  (0.1ms) SAVEPOINT active_record_1
2619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2620
+  (0.0ms) SAVEPOINT active_record_1
2621
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2622
+  (0.0ms) ROLLBACK
2623
+  (0.1ms) BEGIN
2624
+ ----------------------------------------------------------------
2625
+ PushType::ProfilesControllerTest::GET #edit: test_0001_anonymous
2626
+ ----------------------------------------------------------------
2627
+  (0.1ms) SAVEPOINT active_record_1
2628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2629
+  (0.0ms) SAVEPOINT active_record_1
2620
2630
   (0.1ms) SAVEPOINT active_record_2
2621
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
2631
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
2622
2632
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
2623
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:49.190262"], ["confirmed_at", "2015-08-24 09:52:49.190309"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:49.191576"], ["updated_at", "2015-08-24 09:52:49.191576"]]
2633
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:06.657378"], ["confirmed_at", "2015-09-28 11:48:06.657426"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:06.658833"], ["updated_at", "2015-09-28 11:48:06.658833"]]
2624
2634
   (0.1ms) RELEASE SAVEPOINT active_record_2
2625
- Processing by PushType::ProfilesController#update as HTML
2626
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2627
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "2448e56b-6ddd-4894-9937-08f548a10572"]]
2628
-  (0.1ms) SAVEPOINT active_record_2
2629
- 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" != '2448e56b-6ddd-4894-9937-08f548a10572') LIMIT 1
2630
- SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-08-24 09:52:49.195390"], ["id", "2448e56b-6ddd-4894-9937-08f548a10572"]]
2631
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2632
- Redirected to http://test.host/push_type/profile/edit
2633
- Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2635
+ Processing by PushType::ProfilesController#edit as HTML
2636
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "37098d72-6b98-48cc-bd4e-73d81b91af2d"]]
2637
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.8ms)
2638
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms)
2634
2639
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2635
2640
   (0.1ms) ROLLBACK
2636
2641
   (0.1ms) BEGIN
2637
- -----------------------------------------------------------------------------------
2638
- PushType::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
2639
- -----------------------------------------------------------------------------------
2642
+ ----------------------------------------------------------------
2643
+ PushType::ProfilesControllerTest::GET #edit: test_0002_anonymous
2644
+ ----------------------------------------------------------------
2640
2645
   (0.1ms) SAVEPOINT active_record_1
2641
2646
   (0.0ms) RELEASE SAVEPOINT active_record_1
2642
2647
   (0.0ms) SAVEPOINT active_record_1
2643
-  (0.0ms) SAVEPOINT active_record_2
2644
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2645
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2646
- SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["confirmation_sent_at", "2015-08-24 09:52:49.198182"], ["confirmed_at", "2015-08-24 09:52:49.198223"], ["confirmation_token", "Generated account"], ["created_at", "2015-08-24 09:52:49.199447"], ["updated_at", "2015-08-24 09:52:49.199447"]]
2647
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2648
- Processing by PushType::ProfilesController#update as HTML
2649
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
2650
- 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", "4307f53a-ddfc-4cf9-bc5e-a55d68c4c15b"]]
2651
2648
   (0.1ms) SAVEPOINT active_record_2
2652
- 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" != '4307f53a-ddfc-4cf9-bc5e-a55d68c4c15b') LIMIT 1
2653
- SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", "2015-08-24 09:52:49.203334"], ["id", "4307f53a-ddfc-4cf9-bc5e-a55d68c4c15b"]]
2654
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2655
- Redirected to http://test.host/push_type/profile/edit
2656
- Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2649
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2650
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
2651
+ SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "confirmation_sent_at", "confirmed_at", "confirmation_token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["confirmation_sent_at", "2015-09-28 11:48:06.670449"], ["confirmed_at", "2015-09-28 11:48:06.670507"], ["confirmation_token", "Generated account"], ["created_at", "2015-09-28 11:48:06.672059"], ["updated_at", "2015-09-28 11:48:06.672059"]]
2652
+  (0.1ms) RELEASE SAVEPOINT active_record_2
2653
+ Processing by PushType::ProfilesController#edit as HTML
2654
+ 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", "492fa265-860d-4b43-907b-1163f5bfbf59"]]
2655
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (1.7ms)
2656
+ Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms)
2657
2657
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2658
2658
   (0.1ms) ROLLBACK