push_type_auth 0.1.0.beta3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/push_type/profiles_controller.rb +50 -0
  3. data/app/views/push_type/profiles/edit.html.haml +46 -0
  4. data/config/routes.rb +2 -0
  5. data/lib/push_type/auth/engine.rb +0 -1
  6. data/lib/tasks/push_type_tasks.rake +26 -4
  7. data/test/controllers/concerns/push_type/authentication_methods_test.rb +15 -0
  8. data/test/controllers/concerns/push_type/invitation_methods_test.rb +11 -0
  9. data/test/controllers/push_type/profiles_controller_test.rb +33 -0
  10. data/test/controllers/push_type/users_controller_test.rb +24 -0
  11. data/test/dummy/config/secrets.yml +2 -2
  12. data/test/dummy/db/migrate/{20141205213533_create_push_type_users.push_type.rb → 20150102204443_create_push_type_users.push_type.rb} +0 -0
  13. data/test/dummy/db/migrate/{20141205213534_create_push_type_nodes.push_type.rb → 20150102204444_create_push_type_nodes.push_type.rb} +0 -0
  14. data/test/dummy/db/migrate/{20141205213535_create_push_type_node_hierarchies.push_type.rb → 20150102204445_create_push_type_node_hierarchies.push_type.rb} +0 -0
  15. data/test/dummy/db/migrate/{20141205213536_create_push_type_assets.push_type.rb → 20150102204446_create_push_type_assets.push_type.rb} +0 -0
  16. data/test/dummy/db/migrate/{20141205213537_devise_extend_push_type_users.push_type_auth.rb → 20150102204447_devise_extend_push_type_users.push_type_auth.rb} +0 -0
  17. data/test/dummy/db/schema.rb +1 -1
  18. data/test/dummy/log/test.log +696 -269
  19. data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/admin.scssc +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sass/806626419a476c98acb0fcf38feea6623fb99ce0/foundation_and_overrides.scssc +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/12375f1bf3d91db0a06c3fc436918949 +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/b3b2a83d3d7d735130f0b029e58b29b8 +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/dd803fd7a93619599c7e703c2b307411 +0 -0
  24. data/test/factories.rb +7 -0
  25. data/test/models/concerns/push_type/authenticatable_test.rb +52 -0
  26. metadata +46 -18
@@ -1,394 +1,821 @@
1
-  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
-  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20141205213533)
5
-  (0.2ms) BEGIN
6
- SQL (8.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (5.9ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp)
8
- SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213533"]]
9
-  (0.9ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20141205213534)
11
-  (0.3ms) BEGIN
12
-  (5.0ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
13
- SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213534"]]
14
-  (0.8ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20141205213535)
16
-  (0.2ms) BEGIN
17
-  (1.2ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (1.6ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
-  (1.9ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213535"]]
1
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreatePushTypeUsers (20150102204443)
5
+  (0.1ms) BEGIN
6
+ SQL (2.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (3.6ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp)
8
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102204443"]]
9
+  (0.7ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20150102204444)
11
+  (0.4ms) BEGIN
12
+  (4.1ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
13
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102204444"]]
21
14
   (0.6ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20141205213536)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150102204445)
23
16
   (0.2ms) BEGIN
24
-  (7.3ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213536"]]
26
-  (0.6ms) COMMIT
27
- Migrating to DeviseExtendPushTypeUsers (20141205213537)
17
+  (1.0ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
+  (1.5ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (1.0ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102204445"]]
21
+  (0.5ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20150102204446)
28
23
   (0.2ms) BEGIN
29
-  (5.8ms) ALTER TABLE "push_type_users" ADD COLUMN "encrypted_password" character varying(255) DEFAULT '' NOT NULL
30
-  (0.4ms) ALTER TABLE "push_type_users" ADD COLUMN "reset_password_token" character varying(255)
31
-  (0.3ms) ALTER TABLE "push_type_users" ADD COLUMN "reset_password_sent_at" timestamp
32
-  (0.3ms) ALTER TABLE "push_type_users" ADD COLUMN "remember_created_at" timestamp
33
-  (6.1ms) ALTER TABLE "push_type_users" ADD COLUMN "sign_in_count" integer DEFAULT 0 NOT NULL
34
-  (0.5ms) ALTER TABLE "push_type_users" ADD COLUMN "current_sign_in_at" timestamp
35
-  (0.7ms) ALTER TABLE "push_type_users" ADD COLUMN "last_sign_in_at" timestamp
36
-  (0.5ms) ALTER TABLE "push_type_users" ADD COLUMN "current_sign_in_ip" character varying(255)
37
-  (0.9ms) ALTER TABLE "push_type_users" ADD COLUMN "last_sign_in_ip" character varying(255)
38
-  (0.4ms) ALTER TABLE "push_type_users" ADD COLUMN "confirmation_token" character varying(255)
39
-  (0.4ms) ALTER TABLE "push_type_users" ADD COLUMN "confirmed_at" timestamp
40
-  (0.4ms) ALTER TABLE "push_type_users" ADD COLUMN "confirmation_sent_at" timestamp
41
-  (1.3ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
42
-  (1.6ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
43
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141205213537"]]
44
-  (1.3ms) COMMIT
24
+  (2.9ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102204446"]]
26
+  (0.5ms) COMMIT
27
+ Migrating to DeviseExtendPushTypeUsers (20150102204447)
28
+  (0.2ms) BEGIN
29
+  (6.2ms) ALTER TABLE "push_type_users" ADD COLUMN "encrypted_password" character varying(255) DEFAULT '' NOT NULL
30
+  (0.3ms) ALTER TABLE "push_type_users" ADD COLUMN "reset_password_token" character varying(255)
31
+  (0.2ms) ALTER TABLE "push_type_users" ADD COLUMN "reset_password_sent_at" timestamp
32
+  (0.2ms) ALTER TABLE "push_type_users" ADD COLUMN "remember_created_at" timestamp
33
+  (3.5ms) ALTER TABLE "push_type_users" ADD COLUMN "sign_in_count" integer DEFAULT 0 NOT NULL
34
+  (0.3ms) ALTER TABLE "push_type_users" ADD COLUMN "current_sign_in_at" timestamp
35
+  (0.2ms) ALTER TABLE "push_type_users" ADD COLUMN "last_sign_in_at" timestamp
36
+  (0.4ms) ALTER TABLE "push_type_users" ADD COLUMN "current_sign_in_ip" character varying(255)
37
+  (0.3ms) ALTER TABLE "push_type_users" ADD COLUMN "last_sign_in_ip" character varying(255)
38
+  (0.2ms) ALTER TABLE "push_type_users" ADD COLUMN "confirmation_token" character varying(255)
39
+  (0.2ms) ALTER TABLE "push_type_users" ADD COLUMN "confirmed_at" timestamp
40
+  (0.2ms) ALTER TABLE "push_type_users" ADD COLUMN "confirmation_sent_at" timestamp
41
+  (1.0ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
42
+  (1.2ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
43
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102204447"]]
44
+  (1.5ms) COMMIT
45
45
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
46
46
  ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
47
-  (124.7ms) DROP DATABASE IF EXISTS "dummy_test"
48
-  (255.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
49
- SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
50
- SQL (4.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
51
-  (8.1ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
47
+  (122.2ms) DROP DATABASE IF EXISTS "dummy_test"
48
+  (253.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
49
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
50
+ SQL (3.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
51
+  (6.0ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
52
52
   (1.2ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
53
-  (1.9ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" USING btree ("ancestor_id", "descendant_id", "generations")
54
-  (1.2ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" USING btree ("descendant_id")
55
-  (3.8ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
56
-  (3.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp, "encrypted_password" character varying(255) DEFAULT '' NOT NULL, "reset_password_token" character varying(255), "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" character varying(255), "last_sign_in_ip" character varying(255), "confirmation_token" character varying(255), "confirmed_at" timestamp, "confirmation_sent_at" timestamp) 
57
-  (1.4ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" USING btree ("email")
58
-  (1.2ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" USING btree ("reset_password_token")
53
+  (1.4ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" USING btree ("ancestor_id", "descendant_id", "generations")
54
+  (1.1ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" USING btree ("descendant_id")
55
+  (3.3ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
56
+  (3.3ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp, "encrypted_password" character varying(255) DEFAULT '' NOT NULL, "reset_password_token" character varying(255), "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" character varying(255), "last_sign_in_ip" character varying(255), "confirmation_token" character varying(255), "confirmed_at" timestamp, "confirmation_sent_at" timestamp) 
57
+  (1.9ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" USING btree ("email")
58
+  (1.1ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" USING btree ("reset_password_token")
59
59
   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
60
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
61
61
   (0.4ms) SELECT version FROM "schema_migrations"
62
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141205213537')
62
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150102204447')
63
63
   (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141120155629')
64
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
64
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+  (0.5ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
66
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
67
+  (16.2ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
68
+  (0.5ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
65
69
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
70
   (0.2ms) BEGIN
67
- ------------------------------------------------------------------------------------------------
68
- PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0001_anonymous
69
- ------------------------------------------------------------------------------------------------
71
+ ------------------------------------------------------------
72
+ PushType::ProfilesController::GET #edit: test_0001_anonymous
73
+ ------------------------------------------------------------
70
74
   (0.2ms) SAVEPOINT active_record_1
71
- PushType::User Exists (1.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
72
- PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
73
- PushType::User Load (1.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '5e266b47ff05f4b55a314b5a0296378faf83474e89ccafe902ceab71c8b636a5' ORDER BY "push_type_users"."name" ASC LIMIT 1
74
- SQL (2.0ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2014-12-05 21:35:42.727939"], ["confirmation_token", "5e266b47ff05f4b55a314b5a0296378faf83474e89ccafe902ceab71c8b636a5"], ["created_at", "2014-12-05 21:35:42.419601"], ["email", "joe-1@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:42.419601"]]
75
- Rendered /Users/aaron/dev/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb (2.7ms)
75
+  (0.2ms) RELEASE SAVEPOINT active_record_1
76
+  (0.2ms) SAVEPOINT active_record_1
77
+  (0.2ms) SAVEPOINT active_record_2
78
+ PushType::User Exists (0.8ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
79
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1
80
+ SQL (1.5ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:44:53.097779"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:44:53.097858"], ["created_at", "2015-01-02 20:44:53.112531"], ["email", "joe-1@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:44:53.112531"]]
81
+  (0.1ms) RELEASE SAVEPOINT active_record_2
82
+ Processing by PushType::ProfilesController#edit as HTML
83
+ PushType::User Load (0.9ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '407295a1-162b-49ad-a53f-3a7eb4ec5f84' ORDER BY "push_type_users"."name" ASC LIMIT 1
84
+ Rendered /Users/aaron/dev/push_type/auth/app/views/push_type/profiles/edit.html.haml within layouts/push_type/admin (15.4ms)
85
+ Completed 200 OK in 11597ms (Views: 11580.9ms | ActiveRecord: 0.9ms)
86
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
87
+  (0.3ms) ROLLBACK
88
+  (0.1ms) BEGIN
89
+ ------------------------------------------------------------
90
+ PushType::ProfilesController::GET #edit: test_0002_anonymous
91
+ ------------------------------------------------------------
92
+  (0.1ms) SAVEPOINT active_record_1
93
+  (0.1ms) RELEASE SAVEPOINT active_record_1
94
+  (0.1ms) SAVEPOINT active_record_1
95
+  (0.1ms) SAVEPOINT active_record_2
96
+ PushType::User Exists (0.7ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
97
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
98
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:04.724517"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:04.724603"], ["created_at", "2015-01-02 20:45:04.727747"], ["email", "joe-2@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:04.727747"]]
99
+  (0.1ms) RELEASE SAVEPOINT active_record_2
100
+ Processing by PushType::ProfilesController#edit as HTML
101
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '09b3b0ff-bf81-465b-9eee-c903d8eff9ab' ORDER BY "push_type_users"."name" ASC LIMIT 1
102
+ Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.5ms)
103
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
104
+  (0.2ms) ROLLBACK
105
+  (0.1ms) BEGIN
106
+ --------------------------------------------------------------------------------------------------
107
+ PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0001_anonymous
108
+ --------------------------------------------------------------------------------------------------
109
+  (0.2ms) SAVEPOINT active_record_1
110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
111
+  (0.1ms) SAVEPOINT active_record_1
112
+ Processing by PushType::ConfirmationsController#show as HTML
113
+ Parameters: {"confirmation_token"=>"invalid"}
114
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '56b1e5a99343cfc29d2013012400e115cc7ef262c6fc0ced9859df9690d8546d' ORDER BY "push_type_users"."name" ASC LIMIT 1
115
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '56b1e5a99343cfc29d2013012400e115cc7ef262c6fc0ced9859df9690d8546d' ORDER BY "push_type_users"."name" ASC LIMIT 1
116
+ Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (3.6ms)
117
+ Completed 200 OK in 334ms (Views: 15.9ms | ActiveRecord: 1.0ms)
118
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
119
+  (0.2ms) ROLLBACK
120
+  (0.2ms) BEGIN
121
+ --------------------------------------------------------------------------------------------------
122
+ PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0002_anonymous
123
+ --------------------------------------------------------------------------------------------------
124
+  (0.2ms) SAVEPOINT active_record_1
125
+  (0.2ms) RELEASE SAVEPOINT active_record_1
126
+  (0.1ms) SAVEPOINT active_record_1
127
+ Processing by PushType::ConfirmationsController#show as HTML
128
+ Parameters: {"confirmation_token"=>"invalid"}
129
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '56b1e5a99343cfc29d2013012400e115cc7ef262c6fc0ced9859df9690d8546d' ORDER BY "push_type_users"."name" ASC LIMIT 1
130
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '56b1e5a99343cfc29d2013012400e115cc7ef262c6fc0ced9859df9690d8546d' ORDER BY "push_type_users"."name" ASC LIMIT 1
131
+ Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.5ms)
132
+ Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.7ms)
133
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
134
+  (0.1ms) ROLLBACK
135
+  (0.1ms) BEGIN
136
+ ---------------------------------------------------------------------------------
137
+ PushType::ProfilesController::PUT #update::with invalid user: test_0001_anonymous
138
+ ---------------------------------------------------------------------------------
139
+  (0.1ms) SAVEPOINT active_record_1
140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141
+  (0.1ms) SAVEPOINT active_record_1
142
+  (0.1ms) SAVEPOINT active_record_2
143
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
144
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
145
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.104145"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.104214"], ["created_at", "2015-01-02 20:45:05.106481"], ["email", "joe-3@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.106481"]]
146
+  (0.1ms) RELEASE SAVEPOINT active_record_2
147
+ Processing by PushType::ProfilesController#update as HTML
148
+ Parameters: {"user"=>{"name"=>""}}
149
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '7a6ce02a-b729-4d5e-a2a0-1ff1e1a49598' ORDER BY "push_type_users"."name" ASC LIMIT 1
150
+  (0.1ms) SAVEPOINT active_record_2
151
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != '7a6ce02a-b729-4d5e-a2a0-1ff1e1a49598') LIMIT 1
152
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
153
+ Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.1ms)
154
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
155
+  (0.2ms) ROLLBACK
156
+  (0.1ms) BEGIN
157
+ ---------------------------------------------------------------------------------
158
+ PushType::ProfilesController::PUT #update::with invalid user: test_0002_anonymous
159
+ ---------------------------------------------------------------------------------
160
+  (0.2ms) SAVEPOINT active_record_1
161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
162
+  (0.1ms) SAVEPOINT active_record_1
163
+  (0.1ms) SAVEPOINT active_record_2
164
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
165
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
166
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.126862"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.126919"], ["created_at", "2015-01-02 20:45:05.129259"], ["email", "joe-4@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.129259"]]
167
+  (0.1ms) RELEASE SAVEPOINT active_record_2
168
+ Processing by PushType::ProfilesController#update as HTML
169
+ Parameters: {"user"=>{"name"=>""}}
170
+ PushType::User Load (0.8ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = 'bcb1dc8b-4cbb-4dce-bed6-522c74f65b40' ORDER BY "push_type_users"."name" ASC LIMIT 1
171
+  (0.2ms) SAVEPOINT active_record_2
172
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != 'bcb1dc8b-4cbb-4dce-bed6-522c74f65b40') LIMIT 1
173
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
174
+ Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.4ms)
175
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
176
+  (0.1ms) ROLLBACK
177
+  (0.1ms) BEGIN
178
+ --------------------------------------------------------------------------------------
179
+ PushType::ConfirmationsController::PUT #update::with invalid user: test_0001_anonymous
180
+ --------------------------------------------------------------------------------------
181
+  (0.2ms) SAVEPOINT active_record_1
182
+  (0.2ms) RELEASE SAVEPOINT active_record_1
183
+  (0.2ms) SAVEPOINT active_record_1
184
+  (0.2ms) SAVEPOINT active_record_2
185
+ PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
186
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
187
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'b3c6a6316a2ab3b686cd5ee3c5c9b44d3b43d1a72b22c909b183651b03f5f414' ORDER BY "push_type_users"."name" ASC LIMIT 1
188
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.155764"], ["confirmation_token", "b3c6a6316a2ab3b686cd5ee3c5c9b44d3b43d1a72b22c909b183651b03f5f414"], ["created_at", "2015-01-02 20:45:05.153876"], ["email", "joe-5@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.153876"]]
76
189
 
77
- Devise::Mailer#confirmation_instructions: processed outbound mail in 232.3ms
190
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 175.3ms
78
191
 
79
- Sent mail to joe-1@example.com (20.4ms)
80
- Date: Fri, 05 Dec 2014 21:35:42 +0000
192
+ Sent mail to joe-5@example.com (11.8ms)
193
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
81
194
  From: please-change-me-at-config-initializers-devise@example.com
82
195
  Reply-To: please-change-me-at-config-initializers-devise@example.com
83
- To: joe-1@example.com
84
- Message-ID: <5482252ef0e4a_c5c73fe74cc65bec349e6@Aarons-MacBook-Air.local.mail>
196
+ To: joe-5@example.com
197
+ Message-ID: <54a7035153ff1_8d13fe135065be898597@Aarons-MacBook-Air-3.local.mail>
85
198
  Subject: Confirmation instructions
86
199
  Mime-Version: 1.0
87
200
  Content-Type: text/html;
88
201
  charset=UTF-8
89
202
  Content-Transfer-Encoding: 7bit
90
203
 
91
- <p>Welcome joe-1@example.com!</p>
204
+ <p>Welcome joe-5@example.com!</p>
92
205
 
93
206
  <p>You can confirm your account email through the link below:</p>
94
207
 
95
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=ghkbFzHrTqz49khntabu">Confirm my account</a></p>
208
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=ZDTDvhtn5ysYQ97PXjbF">Confirm my account</a></p>
96
209
 
97
-  (0.2ms) RELEASE SAVEPOINT active_record_1
98
- Processing by PushType::ConfirmationsController#show as HTML
99
- Parameters: {"confirmation_token"=>"ghkbFzHrTqz49khntabu"}
100
- PushType::User Load (0.6ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '5e266b47ff05f4b55a314b5a0296378faf83474e89ccafe902ceab71c8b636a5' ORDER BY "push_type_users"."name" ASC LIMIT 1
101
- Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (2.0ms)
102
- Rendered /Users/aaron/dev/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (21.7ms)
103
- Completed 200 OK in 10669ms (Views: 10666.4ms | ActiveRecord: 0.6ms)
104
-  (1.2ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
105
-  (5.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
106
-  (6.7ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
107
-  (0.2ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
108
-  (2.7ms) ROLLBACK
109
-  (0.2ms) BEGIN
110
- ------------------------------------------------------------------------------------------------
111
- PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0002_anonymous
112
- ------------------------------------------------------------------------------------------------
113
-  (0.2ms) SAVEPOINT active_record_1
114
- PushType::User Exists (0.8ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
115
- PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1
116
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'e3c884e1e5dcf7dc4559b03b4173498900645328d555d6bfc17f4717b1f407c3' ORDER BY "push_type_users"."name" ASC LIMIT 1
117
- SQL (0.4ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2014-12-05 21:35:53.704689"], ["confirmation_token", "e3c884e1e5dcf7dc4559b03b4173498900645328d555d6bfc17f4717b1f407c3"], ["created_at", "2014-12-05 21:35:53.703100"], ["email", "joe-2@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:53.703100"]]
210
+  (0.3ms) RELEASE SAVEPOINT active_record_2
211
+ Processing by PushType::ConfirmationsController#update as HTML
212
+ Parameters: {"user"=>{"confirmation_token"=>"ZDTDvhtn5ysYQ97PXjbF", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
213
+ PushType::User Load (0.7ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'b3c6a6316a2ab3b686cd5ee3c5c9b44d3b43d1a72b22c909b183651b03f5f414' ORDER BY "push_type_users"."name" ASC LIMIT 1
214
+ PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-5@example.com' AND "push_type_users"."id" != 'da727247-dba0-425b-937d-4808bde97c05') LIMIT 1
215
+ Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.5ms)
216
+ Completed 200 OK in 15ms (Views: 9.0ms | ActiveRecord: 1.2ms)
217
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
218
+  (0.2ms) ROLLBACK
219
+  (0.1ms) BEGIN
220
+ --------------------------------------------------------------------------------------
221
+ PushType::ConfirmationsController::PUT #update::with invalid user: test_0002_anonymous
222
+ --------------------------------------------------------------------------------------
223
+  (0.1ms) SAVEPOINT active_record_1
224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
225
+  (0.1ms) SAVEPOINT active_record_1
226
+  (0.1ms) SAVEPOINT active_record_2
227
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
228
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
229
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'd9a6ea7827783b7a9c214922d131281868d7088dcc1bfe923985ee412356fc5d' ORDER BY "push_type_users"."name" ASC LIMIT 1
230
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.373576"], ["confirmation_token", "d9a6ea7827783b7a9c214922d131281868d7088dcc1bfe923985ee412356fc5d"], ["created_at", "2015-01-02 20:45:05.372384"], ["email", "joe-6@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.372384"]]
118
231
 
119
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.1ms
232
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.8ms
120
233
 
121
- Sent mail to joe-2@example.com (2.9ms)
122
- Date: Fri, 05 Dec 2014 21:35:53 +0000
234
+ Sent mail to joe-6@example.com (2.2ms)
235
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
123
236
  From: please-change-me-at-config-initializers-devise@example.com
124
237
  Reply-To: please-change-me-at-config-initializers-devise@example.com
125
- To: joe-2@example.com
126
- Message-ID: <54822539ad5d1_c5c73fe74cc65bec35039@Aarons-MacBook-Air.local.mail>
238
+ To: joe-6@example.com
239
+ Message-ID: <54a703515c3e6_8d13fe135065be898614@Aarons-MacBook-Air-3.local.mail>
127
240
  Subject: Confirmation instructions
128
241
  Mime-Version: 1.0
129
242
  Content-Type: text/html;
130
243
  charset=UTF-8
131
244
  Content-Transfer-Encoding: 7bit
132
245
 
133
- <p>Welcome joe-2@example.com!</p>
246
+ <p>Welcome joe-6@example.com!</p>
134
247
 
135
248
  <p>You can confirm your account email through the link below:</p>
136
249
 
137
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=xnuSdpxRsvx-GUpc3Ae1">Confirm my account</a></p>
250
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=P5QvLNzPZY175zGvu_qs">Confirm my account</a></p>
138
251
 
139
-  (0.2ms) RELEASE SAVEPOINT active_record_1
140
- Processing by PushType::ConfirmationsController#show as HTML
141
- Parameters: {"confirmation_token"=>"xnuSdpxRsvx-GUpc3Ae1"}
142
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'e3c884e1e5dcf7dc4559b03b4173498900645328d555d6bfc17f4717b1f407c3' ORDER BY "push_type_users"."name" ASC LIMIT 1
252
+  (0.2ms) RELEASE SAVEPOINT active_record_2
253
+ Processing by PushType::ConfirmationsController#update as HTML
254
+ Parameters: {"user"=>{"confirmation_token"=>"P5QvLNzPZY175zGvu_qs", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
255
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'd9a6ea7827783b7a9c214922d131281868d7088dcc1bfe923985ee412356fc5d' ORDER BY "push_type_users"."name" ASC LIMIT 1
256
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-6@example.com' AND "push_type_users"."id" != '98336eb4-7b82-4a8b-bc70-b547620e254d') LIMIT 1
143
257
  Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.5ms)
144
- Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)
145
-  (0.3ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
146
-  (9.3ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
147
-  (0.4ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
148
-  (2.4ms) ROLLBACK
149
-  (0.1ms) BEGIN
150
- --------------------------------------------------------------------------------------------------
151
- PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0001_anonymous
152
- --------------------------------------------------------------------------------------------------
153
- Processing by PushType::ConfirmationsController#show as HTML
154
- Parameters: {"confirmation_token"=>"invalid"}
155
- PushType::User Load (0.6ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '68865772f652a51673eabfb185ee85c0d5421263393cc3ac3edeccb7371a9b6b' ORDER BY "push_type_users"."name" ASC LIMIT 1
156
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '68865772f652a51673eabfb185ee85c0d5421263393cc3ac3edeccb7371a9b6b' ORDER BY "push_type_users"."name" ASC LIMIT 1
157
- Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.6ms)
158
- Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 1.0ms)
159
-  (0.3ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
160
-  (7.5ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
161
-  (0.3ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
162
-  (2.4ms) ROLLBACK
258
+ Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.7ms)
259
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
260
+  (0.2ms) ROLLBACK
163
261
   (0.2ms) BEGIN
164
- --------------------------------------------------------------------------------------------------
165
- PushType::ConfirmationsController::GET #show::with invalid confirmation token: test_0002_anonymous
166
- --------------------------------------------------------------------------------------------------
167
- Processing by PushType::ConfirmationsController#show as HTML
168
- Parameters: {"confirmation_token"=>"invalid"}
169
- PushType::User Load (0.6ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '68865772f652a51673eabfb185ee85c0d5421263393cc3ac3edeccb7371a9b6b' ORDER BY "push_type_users"."name" ASC LIMIT 1
170
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '68865772f652a51673eabfb185ee85c0d5421263393cc3ac3edeccb7371a9b6b' ORDER BY "push_type_users"."name" ASC LIMIT 1
171
- Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.9ms)
172
- Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.9ms)
173
-  (0.3ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
174
-  (6.8ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
175
-  (0.4ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
176
-  (2.5ms) ROLLBACK
177
-  (0.2ms) BEGIN
178
- ------------------------------------------------------------------------------------
179
- PushType::ConfirmationsController::PUT #update::with valid user: test_0001_anonymous
180
- ------------------------------------------------------------------------------------
181
-  (0.2ms) SAVEPOINT active_record_1
182
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
183
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1
184
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '4e52633b9437b235dd28a4883c13e9c0db4cbd7298357ea3ea84f6de414f5e9e' ORDER BY "push_type_users"."name" ASC LIMIT 1
185
- SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2014-12-05 21:35:53.803728"], ["confirmation_token", "4e52633b9437b235dd28a4883c13e9c0db4cbd7298357ea3ea84f6de414f5e9e"], ["created_at", "2014-12-05 21:35:53.802320"], ["email", "joe-3@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:53.802320"]]
262
+ --------------------------------------------------------------------------------------
263
+ PushType::ConfirmationsController::PUT #update::with invalid user: test_0003_anonymous
264
+ --------------------------------------------------------------------------------------
265
+  (0.2ms) SAVEPOINT active_record_1
266
+  (0.2ms) RELEASE SAVEPOINT active_record_1
267
+  (0.2ms) SAVEPOINT active_record_1
268
+  (0.2ms) SAVEPOINT active_record_2
269
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
270
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
271
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'df582e633d1879c8809ada0ddc7fc64ee08aeaac5c87311fc173c83c13f3623a' ORDER BY "push_type_users"."name" ASC LIMIT 1
272
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.397260"], ["confirmation_token", "df582e633d1879c8809ada0ddc7fc64ee08aeaac5c87311fc173c83c13f3623a"], ["created_at", "2015-01-02 20:45:05.395726"], ["email", "joe-7@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.395726"]]
186
273
 
187
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.2ms
274
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.8ms
188
275
 
189
- Sent mail to joe-3@example.com (2.3ms)
190
- Date: Fri, 05 Dec 2014 21:35:53 +0000
276
+ Sent mail to joe-7@example.com (3.2ms)
277
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
191
278
  From: please-change-me-at-config-initializers-devise@example.com
192
279
  Reply-To: please-change-me-at-config-initializers-devise@example.com
193
- To: joe-3@example.com
194
- Message-ID: <54822539c56dc_c5c73fe74cc65bec35150@Aarons-MacBook-Air.local.mail>
280
+ To: joe-7@example.com
281
+ Message-ID: <54a70351621ee_8d13fe135065be8987f4@Aarons-MacBook-Air-3.local.mail>
195
282
  Subject: Confirmation instructions
196
283
  Mime-Version: 1.0
197
284
  Content-Type: text/html;
198
285
  charset=UTF-8
199
286
  Content-Transfer-Encoding: 7bit
200
287
 
201
- <p>Welcome joe-3@example.com!</p>
288
+ <p>Welcome joe-7@example.com!</p>
202
289
 
203
290
  <p>You can confirm your account email through the link below:</p>
204
291
 
205
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=b_yZszzrVhZVMdByDJJ-">Confirm my account</a></p>
292
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=ys-ZfLPnd59hA8x2o3e8">Confirm my account</a></p>
206
293
 
207
-  (0.2ms) RELEASE SAVEPOINT active_record_1
294
+  (0.2ms) RELEASE SAVEPOINT active_record_2
208
295
  Processing by PushType::ConfirmationsController#update as HTML
209
- Parameters: {"user"=>{"confirmation_token"=>"b_yZszzrVhZVMdByDJJ-", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
210
- PushType::User Load (0.6ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '4e52633b9437b235dd28a4883c13e9c0db4cbd7298357ea3ea84f6de414f5e9e' ORDER BY "push_type_users"."name" ASC LIMIT 1
211
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != 'db078643-391a-44c4-9395-139170d15f16') LIMIT 1
212
-  (0.1ms) SAVEPOINT active_record_1
213
- SQL (0.5ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmed_at" = $2, "encrypted_password" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = 'db078643-391a-44c4-9395-139170d15f16' [["confirmation_token", nil], ["confirmed_at", "2014-12-05 21:35:53.817923"], ["encrypted_password", "$2a$04$peKkbPFrgRXzpYoju2FzAuwo2bENwuy8S68ND7UmkSmPNEEwph5eq"], ["updated_at", "2014-12-05 21:35:53.818366"]]
296
+ Parameters: {"user"=>{"confirmation_token"=>"ys-ZfLPnd59hA8x2o3e8", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
297
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'df582e633d1879c8809ada0ddc7fc64ee08aeaac5c87311fc173c83c13f3623a' ORDER BY "push_type_users"."name" ASC LIMIT 1
298
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-7@example.com' AND "push_type_users"."id" != 'db15a8ac-e1f5-4363-b669-a4138f55ca69') LIMIT 1
299
+ Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.5ms)
300
+ Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.8ms)
301
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
302
+  (0.1ms) ROLLBACK
303
+  (0.2ms) BEGIN
304
+ -----------------------------------------------------------
305
+ PushType::UsersController::PUT #invite: test_0001_anonymous
306
+ -----------------------------------------------------------
307
+  (0.1ms) SAVEPOINT active_record_1
214
308
   (0.1ms) RELEASE SAVEPOINT active_record_1
215
309
   (0.1ms) SAVEPOINT active_record_1
216
- SQL (0.3ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "current_sign_in_ip" = $2, "last_sign_in_at" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = 'db078643-391a-44c4-9395-139170d15f16' [["current_sign_in_at", "2014-12-05 21:35:53.821500"], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_at", "2014-12-05 21:35:53.821500"], ["last_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2014-12-05 21:35:53.822163"]]
217
-  (0.1ms) RELEASE SAVEPOINT active_record_1
218
- Redirected to http://test.host/push_type/
219
- Completed 302 Found in 13ms (ActiveRecord: 2.3ms)
220
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "db078643-391a-44c4-9395-139170d15f16"]]
221
-  (0.5ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
222
-  (7.3ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
223
-  (0.4ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
224
-  (2.1ms) ROLLBACK
310
+  (0.1ms) SAVEPOINT active_record_2
311
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
312
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1
313
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.421193"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.421258"], ["created_at", "2015-01-02 20:45:05.423409"], ["email", "joe-8@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.423409"]]
314
+  (0.1ms) RELEASE SAVEPOINT active_record_2
315
+  (0.1ms) SAVEPOINT active_record_2
316
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
317
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1
318
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'd7f5fe6a7141e243190143f70b60f7c21f00c72ba988cc45c464b8640732cf11' ORDER BY "push_type_users"."name" ASC LIMIT 1
319
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.428352"], ["confirmation_token", "d7f5fe6a7141e243190143f70b60f7c21f00c72ba988cc45c464b8640732cf11"], ["created_at", "2015-01-02 20:45:05.427259"], ["email", "joe-9@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.427259"]]
320
+
321
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
322
+
323
+ Sent mail to joe-9@example.com (4.2ms)
324
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
325
+ From: please-change-me-at-config-initializers-devise@example.com
326
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
327
+ To: joe-9@example.com
328
+ Message-ID: <54a703516a436_8d13fe135065be8988f9@Aarons-MacBook-Air-3.local.mail>
329
+ Subject: Confirmation instructions
330
+ Mime-Version: 1.0
331
+ Content-Type: text/html;
332
+ charset=UTF-8
333
+ Content-Transfer-Encoding: 7bit
334
+
335
+ <p>Welcome joe-9@example.com!</p>
336
+
337
+ <p>You can confirm your account email through the link below:</p>
338
+
339
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=z8XSxf5ksEMtUauQ4Cgo">Confirm my account</a></p>
340
+
341
+  (0.2ms) RELEASE SAVEPOINT active_record_2
342
+ Processing by PushType::UsersController#invite as HTML
343
+ Parameters: {"id"=>"761cbf8e-a9a0-423b-9417-cf99e44f41d9"}
344
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '3cfaa897-ce55-42f3-817c-46d6303dc767' ORDER BY "push_type_users"."name" ASC LIMIT 1
345
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "761cbf8e-a9a0-423b-9417-cf99e44f41d9"]]
346
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'c1ce7ab7450226cdc02fa80f6376f0c04f70e82b44d3e4fb7d1d3aeb7263db7f' ORDER BY "push_type_users"."name" ASC LIMIT 1
347
+  (0.1ms) SAVEPOINT active_record_2
348
+ SQL (0.4ms) UPDATE "push_type_users" SET "confirmation_sent_at" = $1, "confirmation_token" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = '761cbf8e-a9a0-423b-9417-cf99e44f41d9' [["confirmation_sent_at", "2015-01-02 20:45:05.446173"], ["confirmation_token", "c1ce7ab7450226cdc02fa80f6376f0c04f70e82b44d3e4fb7d1d3aeb7263db7f"], ["updated_at", "2015-01-02 20:45:05.446669"]]
349
+  (0.1ms) RELEASE SAVEPOINT active_record_2
350
+
351
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.8ms
352
+
353
+ Sent mail to joe-9@example.com (2.2ms)
354
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
355
+ From: please-change-me-at-config-initializers-devise@example.com
356
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
357
+ To: joe-9@example.com
358
+ Message-ID: <54a703516e6e5_8d13fe135065be8989e4@Aarons-MacBook-Air-3.local.mail>
359
+ Subject: Confirmation instructions
360
+ Mime-Version: 1.0
361
+ Content-Type: text/html;
362
+ charset=UTF-8
363
+ Content-Transfer-Encoding: 7bit
364
+
365
+ <p>Welcome joe-9@example.com!</p>
366
+
367
+ <p>You can confirm your account email through the link below:</p>
368
+
369
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=A_in-5PSGLczpCFn2zyL">Confirm my account</a></p>
370
+
371
+ Redirected to /push_type/users
372
+ Completed 302 Found in 13ms (ActiveRecord: 1.7ms)
373
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
374
+  (0.1ms) ROLLBACK
225
375
   (0.1ms) BEGIN
226
- ------------------------------------------------------------------------------------
227
- PushType::ConfirmationsController::PUT #update::with valid user: test_0002_anonymous
228
- ------------------------------------------------------------------------------------
376
+ -----------------------------------------------------------
377
+ PushType::UsersController::PUT #invite: test_0002_anonymous
378
+ -----------------------------------------------------------
379
+  (0.1ms) SAVEPOINT active_record_1
380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229
381
   (0.1ms) SAVEPOINT active_record_1
230
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
231
- PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1
232
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '830e963d0123c460c6828dcc998bffa3ba7f98defcd0649e3a7f23c65cdd5c0b' ORDER BY "push_type_users"."name" ASC LIMIT 1
233
- SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2014-12-05 21:35:53.846938"], ["confirmation_token", "830e963d0123c460c6828dcc998bffa3ba7f98defcd0649e3a7f23c65cdd5c0b"], ["created_at", "2014-12-05 21:35:53.845397"], ["email", "joe-4@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:53.845397"]]
382
+  (0.1ms) SAVEPOINT active_record_2
383
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
384
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1
385
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.457412"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.457471"], ["created_at", "2015-01-02 20:45:05.459576"], ["email", "joe-10@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.459576"]]
386
+  (0.1ms) RELEASE SAVEPOINT active_record_2
387
+  (0.1ms) SAVEPOINT active_record_2
388
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
389
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1
390
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '2cce1d7af9ac19813763fd56da4832235c8df4d23c41eaa6d3ef167e278d2dca' ORDER BY "push_type_users"."name" ASC LIMIT 1
391
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.464697"], ["confirmation_token", "2cce1d7af9ac19813763fd56da4832235c8df4d23c41eaa6d3ef167e278d2dca"], ["created_at", "2015-01-02 20:45:05.463468"], ["email", "joe-11@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.463468"]]
234
392
 
235
393
  Devise::Mailer#confirmation_instructions: processed outbound mail in 1.5ms
236
394
 
237
- Sent mail to joe-4@example.com (3.0ms)
238
- Date: Fri, 05 Dec 2014 21:35:53 +0000
395
+ Sent mail to joe-11@example.com (3.0ms)
396
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
239
397
  From: please-change-me-at-config-initializers-devise@example.com
240
398
  Reply-To: please-change-me-at-config-initializers-devise@example.com
241
- To: joe-4@example.com
242
- Message-ID: <54822539cfdee_c5c73fe74cc65bec352be@Aarons-MacBook-Air.local.mail>
399
+ To: joe-11@example.com
400
+ Message-ID: <54a703517286f_8d13fe135065be899043@Aarons-MacBook-Air-3.local.mail>
243
401
  Subject: Confirmation instructions
244
402
  Mime-Version: 1.0
245
403
  Content-Type: text/html;
246
404
  charset=UTF-8
247
405
  Content-Transfer-Encoding: 7bit
248
406
 
249
- <p>Welcome joe-4@example.com!</p>
407
+ <p>Welcome joe-11@example.com!</p>
250
408
 
251
409
  <p>You can confirm your account email through the link below:</p>
252
410
 
253
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=-oaHNqYCgM8p5aakTiTi">Confirm my account</a></p>
411
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=LWmBSjXV4LvyqLBtyz16">Confirm my account</a></p>
254
412
 
255
-  (0.2ms) RELEASE SAVEPOINT active_record_1
256
- Processing by PushType::ConfirmationsController#update as HTML
257
- Parameters: {"user"=>{"confirmation_token"=>"-oaHNqYCgM8p5aakTiTi", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
258
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '830e963d0123c460c6828dcc998bffa3ba7f98defcd0649e3a7f23c65cdd5c0b' ORDER BY "push_type_users"."name" ASC LIMIT 1
259
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != 'd9ce7687-d65a-4792-ae86-ae84864c493d') LIMIT 1
260
-  (0.1ms) SAVEPOINT active_record_1
261
- SQL (0.3ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmed_at" = $2, "encrypted_password" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = 'd9ce7687-d65a-4792-ae86-ae84864c493d' [["confirmation_token", nil], ["confirmed_at", "2014-12-05 21:35:53.859301"], ["encrypted_password", "$2a$04$2e.svyqzTDqIm1Td.6dKNuEo6KL3d.Pa9hlgXYZHB471kxdG1xE32"], ["updated_at", "2014-12-05 21:35:53.859723"]]
413
+  (0.2ms) RELEASE SAVEPOINT active_record_2
414
+ Processing by PushType::UsersController#invite as HTML
415
+ Parameters: {"id"=>"435191e7-1983-4dc8-8908-c9e7e10ccf1f"}
416
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '95e247e9-0083-4c13-8106-c9be77c11257' ORDER BY "push_type_users"."name" ASC LIMIT 1
417
+ 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", "435191e7-1983-4dc8-8908-c9e7e10ccf1f"]]
418
+ PushType::User Load (0.7ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '80e8a81ad9d4d3ac827f0055e86a8d39fc9a97da9c774a8f784e5759cf358b99' ORDER BY "push_type_users"."name" ASC LIMIT 1
419
+  (0.2ms) SAVEPOINT active_record_2
420
+ SQL (0.4ms) UPDATE "push_type_users" SET "confirmation_sent_at" = $1, "confirmation_token" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = '435191e7-1983-4dc8-8908-c9e7e10ccf1f' [["confirmation_sent_at", "2015-01-02 20:45:05.476599"], ["confirmation_token", "80e8a81ad9d4d3ac827f0055e86a8d39fc9a97da9c774a8f784e5759cf358b99"], ["updated_at", "2015-01-02 20:45:05.477389"]]
421
+  (0.1ms) RELEASE SAVEPOINT active_record_2
422
+
423
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.5ms
424
+
425
+ Sent mail to joe-11@example.com (2.1ms)
426
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
427
+ From: please-change-me-at-config-initializers-devise@example.com
428
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
429
+ To: joe-11@example.com
430
+ Message-ID: <54a7035175b64_8d13fe135065be8991b@Aarons-MacBook-Air-3.local.mail>
431
+ Subject: Confirmation instructions
432
+ Mime-Version: 1.0
433
+ Content-Type: text/html;
434
+ charset=UTF-8
435
+ Content-Transfer-Encoding: 7bit
436
+
437
+ <p>Welcome joe-11@example.com!</p>
438
+
439
+ <p>You can confirm your account email through the link below:</p>
440
+
441
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=3rXub1sZkEmvMkLEfQ6c">Confirm my account</a></p>
442
+
443
+ Redirected to /push_type/users
444
+ Completed 302 Found in 12ms (ActiveRecord: 2.1ms)
445
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
446
+  (0.2ms) ROLLBACK
447
+  (0.1ms) BEGIN
448
+ -----------------------------------------------------------
449
+ PushType::UsersController::PUT #invite: test_0003_anonymous
450
+ -----------------------------------------------------------
451
+  (0.1ms) SAVEPOINT active_record_1
262
452
   (0.1ms) RELEASE SAVEPOINT active_record_1
263
453
   (0.1ms) SAVEPOINT active_record_1
264
- SQL (0.3ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "current_sign_in_ip" = $2, "last_sign_in_at" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = 'd9ce7687-d65a-4792-ae86-ae84864c493d' [["current_sign_in_at", "2014-12-05 21:35:53.861495"], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_at", "2014-12-05 21:35:53.861495"], ["last_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2014-12-05 21:35:53.861975"]]
454
+  (0.1ms) SAVEPOINT active_record_2
455
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
456
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1
457
+ SQL (0.2ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.487675"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.487731"], ["created_at", "2015-01-02 20:45:05.489796"], ["email", "joe-12@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.489796"]]
458
+  (0.1ms) RELEASE SAVEPOINT active_record_2
459
+  (0.1ms) SAVEPOINT active_record_2
460
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
461
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1
462
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'b21d7b610bb94a43533aece790eff4d30edce42e0102b48680a072fb83bdba74' ORDER BY "push_type_users"."name" ASC LIMIT 1
463
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.494495"], ["confirmation_token", "b21d7b610bb94a43533aece790eff4d30edce42e0102b48680a072fb83bdba74"], ["created_at", "2015-01-02 20:45:05.493400"], ["email", "joe-13@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.493400"]]
464
+
465
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.4ms
466
+
467
+ Sent mail to joe-13@example.com (2.1ms)
468
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
469
+ From: please-change-me-at-config-initializers-devise@example.com
470
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
471
+ To: joe-13@example.com
472
+ Message-ID: <54a70351799f8_8d13fe135065be89927d@Aarons-MacBook-Air-3.local.mail>
473
+ Subject: Confirmation instructions
474
+ Mime-Version: 1.0
475
+ Content-Type: text/html;
476
+ charset=UTF-8
477
+ Content-Transfer-Encoding: 7bit
478
+
479
+ <p>Welcome joe-13@example.com!</p>
480
+
481
+ <p>You can confirm your account email through the link below:</p>
482
+
483
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=QzWxtxeL-S58u9NiX_kb">Confirm my account</a></p>
484
+
485
+  (0.2ms) RELEASE SAVEPOINT active_record_2
486
+ Processing by PushType::UsersController#invite as HTML
487
+ Parameters: {"id"=>"f27c742a-69df-4a7e-800c-0e9a4d280b8f"}
488
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '42c3bc76-e406-4b2e-a4c2-ff0046aa24cf' ORDER BY "push_type_users"."name" ASC LIMIT 1
489
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "f27c742a-69df-4a7e-800c-0e9a4d280b8f"]]
490
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '8a51f58c38a589b52584fb4a4e54117eebac4fb3405e91a90003a599ce985dd0' ORDER BY "push_type_users"."name" ASC LIMIT 1
491
+  (0.2ms) SAVEPOINT active_record_2
492
+ SQL (0.4ms) UPDATE "push_type_users" SET "confirmation_sent_at" = $1, "confirmation_token" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = 'f27c742a-69df-4a7e-800c-0e9a4d280b8f' [["confirmation_sent_at", "2015-01-02 20:45:05.505227"], ["confirmation_token", "8a51f58c38a589b52584fb4a4e54117eebac4fb3405e91a90003a599ce985dd0"], ["updated_at", "2015-01-02 20:45:05.505886"]]
493
+  (0.1ms) RELEASE SAVEPOINT active_record_2
494
+
495
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.6ms
496
+
497
+ Sent mail to joe-13@example.com (2.3ms)
498
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
499
+ From: please-change-me-at-config-initializers-devise@example.com
500
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
501
+ To: joe-13@example.com
502
+ Message-ID: <54a703517cc36_8d13fe135065be8993cf@Aarons-MacBook-Air-3.local.mail>
503
+ Subject: Confirmation instructions
504
+ Mime-Version: 1.0
505
+ Content-Type: text/html;
506
+ charset=UTF-8
507
+ Content-Transfer-Encoding: 7bit
508
+
509
+ <p>Welcome joe-13@example.com!</p>
510
+
511
+ <p>You can confirm your account email through the link below:</p>
512
+
513
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=rt2TqqU5Hyco1CaM9X-9">Confirm my account</a></p>
514
+
515
+ Redirected to /push_type/users
516
+ Completed 302 Found in 12ms (ActiveRecord: 2.1ms)
517
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
518
+  (0.1ms) ROLLBACK
519
+  (0.2ms) BEGIN
520
+ -------------------------------------------------------------------------------
521
+ PushType::ProfilesController::PUT #update::with valid user: test_0001_anonymous
522
+ -------------------------------------------------------------------------------
523
+  (0.1ms) SAVEPOINT active_record_1
265
524
   (0.1ms) RELEASE SAVEPOINT active_record_1
266
- Redirected to http://test.host/push_type/
267
- Completed 302 Found in 9ms (ActiveRecord: 1.8ms)
268
-  (0.3ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
269
-  (6.9ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
270
-  (0.4ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
271
-  (2.4ms) ROLLBACK
525
+  (0.1ms) SAVEPOINT active_record_1
526
+  (0.2ms) SAVEPOINT active_record_2
527
+ PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
528
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1
529
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.518212"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.518416"], ["created_at", "2015-01-02 20:45:05.521816"], ["email", "joe-14@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.521816"]]
530
+  (0.1ms) RELEASE SAVEPOINT active_record_2
531
+ Processing by PushType::ProfilesController#update as HTML
532
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
533
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '0673c581-2284-4241-a3fd-5a4462d03f82' ORDER BY "push_type_users"."name" ASC LIMIT 1
534
+  (0.1ms) SAVEPOINT active_record_2
535
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-14@example.com' AND "push_type_users"."id" != '0673c581-2284-4241-a3fd-5a4462d03f82') LIMIT 1
536
+ SQL (0.4ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = '0673c581-2284-4241-a3fd-5a4462d03f82' [["name", "Test user ABC"], ["updated_at", "2015-01-02 20:45:05.529218"]]
537
+  (0.2ms) RELEASE SAVEPOINT active_record_2
538
+ Redirected to http://test.host/push_type/profile/edit
539
+ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
540
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "0673c581-2284-4241-a3fd-5a4462d03f82"]]
541
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
542
+  (0.1ms) ROLLBACK
272
543
   (0.1ms) BEGIN
273
- --------------------------------------------------------------------------------------
274
- PushType::ConfirmationsController::PUT #update::with invalid user: test_0001_anonymous
275
- --------------------------------------------------------------------------------------
276
-  (0.2ms) SAVEPOINT active_record_1
277
- PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
278
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1
279
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '2ef5702035c2357716bd1174cb12c1bccc091ea10cbe77ac88eb6658f40247b2' ORDER BY "push_type_users"."name" ASC LIMIT 1
280
- SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2014-12-05 21:35:53.889716"], ["confirmation_token", "2ef5702035c2357716bd1174cb12c1bccc091ea10cbe77ac88eb6658f40247b2"], ["created_at", "2014-12-05 21:35:53.888557"], ["email", "joe-5@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:53.888557"]]
544
+ -------------------------------------------------------------------------------
545
+ PushType::ProfilesController::PUT #update::with valid user: test_0002_anonymous
546
+ -------------------------------------------------------------------------------
547
+  (0.1ms) SAVEPOINT active_record_1
548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
549
+  (0.1ms) SAVEPOINT active_record_1
550
+  (0.1ms) SAVEPOINT active_record_2
551
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
552
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1
553
+ SQL (0.2ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.535851"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.535911"], ["created_at", "2015-01-02 20:45:05.538039"], ["email", "joe-15@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.538039"]]
554
+  (0.1ms) RELEASE SAVEPOINT active_record_2
555
+ Processing by PushType::ProfilesController#update as HTML
556
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
557
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = '22b9794d-b109-474e-a726-7ed903a3466f' ORDER BY "push_type_users"."name" ASC LIMIT 1
558
+  (0.1ms) SAVEPOINT active_record_2
559
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-15@example.com' AND "push_type_users"."id" != '22b9794d-b109-474e-a726-7ed903a3466f') LIMIT 1
560
+ SQL (0.3ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = '22b9794d-b109-474e-a726-7ed903a3466f' [["name", "Test user ABC"], ["updated_at", "2015-01-02 20:45:05.543884"]]
561
+  (0.2ms) RELEASE SAVEPOINT active_record_2
562
+ Redirected to http://test.host/push_type/profile/edit
563
+ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
564
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
565
+  (0.2ms) ROLLBACK
566
+  (0.1ms) BEGIN
567
+ -------------------------------------------------------------------------------
568
+ PushType::ProfilesController::PUT #update::with valid user: test_0003_anonymous
569
+ -------------------------------------------------------------------------------
570
+  (0.1ms) SAVEPOINT active_record_1
571
+  (0.2ms) RELEASE SAVEPOINT active_record_1
572
+  (0.1ms) SAVEPOINT active_record_1
573
+  (0.2ms) SAVEPOINT active_record_2
574
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
575
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1
576
+ SQL (0.4ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.550850"], ["confirmation_token", "Generated account"], ["confirmed_at", "2015-01-02 20:45:05.550927"], ["created_at", "2015-01-02 20:45:05.553332"], ["email", "joe-16@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.553332"]]
577
+  (0.2ms) RELEASE SAVEPOINT active_record_2
578
+ Processing by PushType::ProfilesController#update as HTML
579
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
580
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = 'e3ca7fe0-659b-402e-8b0b-22d901b54a4f' ORDER BY "push_type_users"."name" ASC LIMIT 1
581
+  (0.1ms) SAVEPOINT active_record_2
582
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-16@example.com' AND "push_type_users"."id" != 'e3ca7fe0-659b-402e-8b0b-22d901b54a4f') LIMIT 1
583
+ SQL (0.3ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = 'e3ca7fe0-659b-402e-8b0b-22d901b54a4f' [["name", "Test user ABC"], ["updated_at", "2015-01-02 20:45:05.560606"]]
584
+  (0.2ms) RELEASE SAVEPOINT active_record_2
585
+ Redirected to http://test.host/push_type/profile/edit
586
+ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)
587
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
588
+  (0.2ms) ROLLBACK
589
+  (0.2ms) BEGIN
590
+ ------------------------------------------------------------------------------------------------
591
+ PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0001_anonymous
592
+ ------------------------------------------------------------------------------------------------
593
+  (0.1ms) SAVEPOINT active_record_1
594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
595
+  (0.1ms) SAVEPOINT active_record_1
596
+  (0.1ms) SAVEPOINT active_record_2
597
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
598
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1
599
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '1359ab5dbbf794a02b138387eb264e24037ed4377c3348d076c81b42fd4b98ba' ORDER BY "push_type_users"."name" ASC LIMIT 1
600
+ SQL (0.2ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.574364"], ["confirmation_token", "1359ab5dbbf794a02b138387eb264e24037ed4377c3348d076c81b42fd4b98ba"], ["created_at", "2015-01-02 20:45:05.573264"], ["email", "joe-17@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.573264"]]
281
601
 
282
- Devise::Mailer#confirmation_instructions: processed outbound mail in 1.7ms
602
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.5ms
283
603
 
284
- Sent mail to joe-5@example.com (2.7ms)
285
- Date: Fri, 05 Dec 2014 21:35:53 +0000
604
+ Sent mail to joe-17@example.com (2.2ms)
605
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
286
606
  From: please-change-me-at-config-initializers-devise@example.com
287
607
  Reply-To: please-change-me-at-config-initializers-devise@example.com
288
- To: joe-5@example.com
289
- Message-ID: <54822539da3e0_c5c73fe74cc65bec35394@Aarons-MacBook-Air.local.mail>
608
+ To: joe-17@example.com
609
+ Message-ID: <54a703518d293_8d13fe135065be8994de@Aarons-MacBook-Air-3.local.mail>
290
610
  Subject: Confirmation instructions
291
611
  Mime-Version: 1.0
292
612
  Content-Type: text/html;
293
613
  charset=UTF-8
294
614
  Content-Transfer-Encoding: 7bit
295
615
 
296
- <p>Welcome joe-5@example.com!</p>
616
+ <p>Welcome joe-17@example.com!</p>
297
617
 
298
618
  <p>You can confirm your account email through the link below:</p>
299
619
 
300
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=4zR1yc-xFagvQyjx8sH-">Confirm my account</a></p>
620
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=x5ZT3pcxjbXy_9hKxgq5">Confirm my account</a></p>
301
621
 
302
-  (0.2ms) RELEASE SAVEPOINT active_record_1
303
- Processing by PushType::ConfirmationsController#update as HTML
304
- Parameters: {"user"=>{"confirmation_token"=>"4zR1yc-xFagvQyjx8sH-", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
305
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '2ef5702035c2357716bd1174cb12c1bccc091ea10cbe77ac88eb6658f40247b2' ORDER BY "push_type_users"."name" ASC LIMIT 1
306
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-5@example.com' AND "push_type_users"."id" != '7c760a1f-15f6-4bcd-b891-458a1b0104f7') LIMIT 1
622
+  (0.2ms) RELEASE SAVEPOINT active_record_2
623
+ Processing by PushType::ConfirmationsController#show as HTML
624
+ Parameters: {"confirmation_token"=>"x5ZT3pcxjbXy_9hKxgq5"}
625
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '1359ab5dbbf794a02b138387eb264e24037ed4377c3348d076c81b42fd4b98ba' ORDER BY "push_type_users"."name" ASC LIMIT 1
307
626
  Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.5ms)
308
- Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.7ms)
309
-  (0.3ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
310
-  (10.7ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
311
-  (0.3ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
312
-  (2.6ms) ROLLBACK
313
-  (0.2ms) BEGIN
314
- --------------------------------------------------------------------------------------
315
- PushType::ConfirmationsController::PUT #update::with invalid user: test_0002_anonymous
316
- --------------------------------------------------------------------------------------
317
-  (0.2ms) SAVEPOINT active_record_1
318
- PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
319
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1
320
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'ea63fd82259cfb071a17bf1ced00a99b84026963466010115d97ad730659687d' ORDER BY "push_type_users"."name" ASC LIMIT 1
321
- SQL (0.5ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2014-12-05 21:35:53.929044"], ["confirmation_token", "ea63fd82259cfb071a17bf1ced00a99b84026963466010115d97ad730659687d"], ["created_at", "2014-12-05 21:35:53.927419"], ["email", "joe-6@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:53.927419"]]
627
+ Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms)
628
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
629
+  (0.1ms) ROLLBACK
630
+  (0.1ms) BEGIN
631
+ ------------------------------------------------------------------------------------------------
632
+ PushType::ConfirmationsController::GET #show::with valid confirmation token: test_0002_anonymous
633
+ ------------------------------------------------------------------------------------------------
634
+  (0.1ms) SAVEPOINT active_record_1
635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
636
+  (0.1ms) SAVEPOINT active_record_1
637
+  (0.2ms) SAVEPOINT active_record_2
638
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
639
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1
640
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'b9b68473c76051e06c9a67fc54fb0807fa592806b7c3fcde2808665ba49a3351' ORDER BY "push_type_users"."name" ASC LIMIT 1
641
+ SQL (0.2ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.593217"], ["confirmation_token", "b9b68473c76051e06c9a67fc54fb0807fa592806b7c3fcde2808665ba49a3351"], ["created_at", "2015-01-02 20:45:05.592109"], ["email", "joe-18@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.592109"]]
322
642
 
323
- Devise::Mailer#confirmation_instructions: processed outbound mail in 1.9ms
643
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.6ms
324
644
 
325
- Sent mail to joe-6@example.com (2.2ms)
326
- Date: Fri, 05 Dec 2014 21:35:53 +0000
645
+ Sent mail to joe-18@example.com (2.2ms)
646
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
327
647
  From: please-change-me-at-config-initializers-devise@example.com
328
648
  Reply-To: please-change-me-at-config-initializers-devise@example.com
329
- To: joe-6@example.com
330
- Message-ID: <54822539e4019_c5c73fe74cc65bec354b9@Aarons-MacBook-Air.local.mail>
649
+ To: joe-18@example.com
650
+ Message-ID: <54a7035191c8f_8d13fe135065be8995c2@Aarons-MacBook-Air-3.local.mail>
331
651
  Subject: Confirmation instructions
332
652
  Mime-Version: 1.0
333
653
  Content-Type: text/html;
334
654
  charset=UTF-8
335
655
  Content-Transfer-Encoding: 7bit
336
656
 
337
- <p>Welcome joe-6@example.com!</p>
657
+ <p>Welcome joe-18@example.com!</p>
338
658
 
339
659
  <p>You can confirm your account email through the link below:</p>
340
660
 
341
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=KxNLfVR3gr2QxjZbxtVs">Confirm my account</a></p>
661
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=shLXBRQqKqXp9X1Uujvz">Confirm my account</a></p>
342
662
 
343
-  (0.2ms) RELEASE SAVEPOINT active_record_1
344
- Processing by PushType::ConfirmationsController#update as HTML
345
- Parameters: {"user"=>{"confirmation_token"=>"KxNLfVR3gr2QxjZbxtVs", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
346
- PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'ea63fd82259cfb071a17bf1ced00a99b84026963466010115d97ad730659687d' ORDER BY "push_type_users"."name" ASC LIMIT 1
347
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-6@example.com' AND "push_type_users"."id" != 'bb47b491-afa4-4c3e-a9f8-a9f26a1d0c9d') LIMIT 1
348
- Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (1.1ms)
349
- Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.7ms)
350
-  (0.3ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
351
-  (6.5ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
352
-  (0.4ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
353
-  (2.2ms) ROLLBACK
663
+  (0.2ms) RELEASE SAVEPOINT active_record_2
664
+ Processing by PushType::ConfirmationsController#show as HTML
665
+ Parameters: {"confirmation_token"=>"shLXBRQqKqXp9X1Uujvz"}
666
+ PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'b9b68473c76051e06c9a67fc54fb0807fa592806b7c3fcde2808665ba49a3351' ORDER BY "push_type_users"."name" ASC LIMIT 1
667
+ Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.7ms)
668
+ Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)
669
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
670
+  (0.1ms) ROLLBACK
354
671
   (0.1ms) BEGIN
355
- --------------------------------------------------------------------------------------
356
- PushType::ConfirmationsController::PUT #update::with invalid user: test_0003_anonymous
357
- --------------------------------------------------------------------------------------
358
-  (0.2ms) SAVEPOINT active_record_1
359
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
360
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1
361
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'ac2ad016c5e6f23440534f40ea0374e4a95110611ea4074ba9f9b1f9c1af3b09' ORDER BY "push_type_users"."name" ASC LIMIT 1
362
- SQL (0.5ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2014-12-05 21:35:53.965085"], ["confirmation_token", "ac2ad016c5e6f23440534f40ea0374e4a95110611ea4074ba9f9b1f9c1af3b09"], ["created_at", "2014-12-05 21:35:53.963726"], ["email", "joe-7@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2014-12-05 21:35:53.963726"]]
672
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
673
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1
674
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'eda13b4c20045dc3c522fbf4b102be6e49d25f147b728e6428bd6659a0c7ee68' ORDER BY "push_type_users"."name" ASC LIMIT 1
675
+ SQL (0.2ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.613118"], ["confirmation_token", "eda13b4c20045dc3c522fbf4b102be6e49d25f147b728e6428bd6659a0c7ee68"], ["created_at", "2015-01-02 20:45:05.612023"], ["email", "joe-19@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.612023"]]
363
676
 
364
- Devise::Mailer#confirmation_instructions: processed outbound mail in 1.7ms
677
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.5ms
365
678
 
366
- Sent mail to joe-7@example.com (3.2ms)
367
- Date: Fri, 05 Dec 2014 21:35:53 +0000
679
+ Sent mail to joe-19@example.com (2.3ms)
680
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
368
681
  From: please-change-me-at-config-initializers-devise@example.com
369
682
  Reply-To: please-change-me-at-config-initializers-devise@example.com
370
- To: joe-7@example.com
371
- Message-ID: <54822539ecdbc_c5c73fe74cc65bec35567@Aarons-MacBook-Air.local.mail>
683
+ To: joe-19@example.com
684
+ Message-ID: <54a7035196a2b_8d13fe135065be89969e@Aarons-MacBook-Air-3.local.mail>
372
685
  Subject: Confirmation instructions
373
686
  Mime-Version: 1.0
374
687
  Content-Type: text/html;
375
688
  charset=UTF-8
376
689
  Content-Transfer-Encoding: 7bit
377
690
 
378
- <p>Welcome joe-7@example.com!</p>
691
+ <p>Welcome joe-19@example.com!</p>
379
692
 
380
693
  <p>You can confirm your account email through the link below:</p>
381
694
 
382
- <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=8APQafYvxoPKvMShWuou">Confirm my account</a></p>
695
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=ts7P-zaEMqccYih6Ro2b">Confirm my account</a></p>
383
696
 
384
-  (0.2ms) RELEASE SAVEPOINT active_record_1
697
+  (0.7ms) COMMIT
698
+  (0.2ms) BEGIN
699
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
700
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1
701
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '8b89df9a2474cabe5d367b13fad2c8ba51ebd2275227f276ea973126dad62e54' ORDER BY "push_type_users"."name" ASC LIMIT 1
702
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.628862"], ["confirmation_token", "8b89df9a2474cabe5d367b13fad2c8ba51ebd2275227f276ea973126dad62e54"], ["created_at", "2015-01-02 20:45:05.627279"], ["email", "joe-20@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.627279"]]
703
+
704
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.6ms
705
+
706
+ Sent mail to joe-20@example.com (4.4ms)
707
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
708
+ From: please-change-me-at-config-initializers-devise@example.com
709
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
710
+ To: joe-20@example.com
711
+ Message-ID: <54a703519ad4c_8d13fe135065be8997c2@Aarons-MacBook-Air-3.local.mail>
712
+ Subject: Confirmation instructions
713
+ Mime-Version: 1.0
714
+ Content-Type: text/html;
715
+ charset=UTF-8
716
+ Content-Transfer-Encoding: 7bit
717
+
718
+ <p>Welcome joe-20@example.com!</p>
719
+
720
+ <p>You can confirm your account email through the link below:</p>
721
+
722
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=-c8xwP79gugKtkCr_y5K">Confirm my account</a></p>
723
+
724
+  (0.7ms) COMMIT
725
+  (0.1ms) BEGIN
726
+ ------------------------------------------------------------------------------------
727
+ PushType::ConfirmationsController::PUT #update::with valid user: test_0001_anonymous
728
+ ------------------------------------------------------------------------------------
729
+  (0.1ms) SAVEPOINT active_record_1
730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
731
+  (0.1ms) SAVEPOINT active_record_1
732
+  (0.1ms) SAVEPOINT active_record_2
733
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
734
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1
735
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'bd41cf434d604a27093458c3f6cc9ccc2bc2c7ab6cc18608ef27ae4f0fa948d6' ORDER BY "push_type_users"."name" ASC LIMIT 1
736
+ SQL (0.3ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.652019"], ["confirmation_token", "bd41cf434d604a27093458c3f6cc9ccc2bc2c7ab6cc18608ef27ae4f0fa948d6"], ["created_at", "2015-01-02 20:45:05.650641"], ["email", "joe-21@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.650641"]]
737
+
738
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.8ms
739
+
740
+ Sent mail to joe-21@example.com (2.5ms)
741
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
742
+ From: please-change-me-at-config-initializers-devise@example.com
743
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
744
+ To: joe-21@example.com
745
+ Message-ID: <54a70351a04e7_8d13fe135065be899859@Aarons-MacBook-Air-3.local.mail>
746
+ Subject: Confirmation instructions
747
+ Mime-Version: 1.0
748
+ Content-Type: text/html;
749
+ charset=UTF-8
750
+ Content-Transfer-Encoding: 7bit
751
+
752
+ <p>Welcome joe-21@example.com!</p>
753
+
754
+ <p>You can confirm your account email through the link below:</p>
755
+
756
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=xG4sqYm3zHMGgY372Mkq">Confirm my account</a></p>
757
+
758
+  (0.2ms) RELEASE SAVEPOINT active_record_2
385
759
  Processing by PushType::ConfirmationsController#update as HTML
386
- Parameters: {"user"=>{"confirmation_token"=>"8APQafYvxoPKvMShWuou", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
387
- PushType::User Load (0.5ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'ac2ad016c5e6f23440534f40ea0374e4a95110611ea4074ba9f9b1f9c1af3b09' ORDER BY "push_type_users"."name" ASC LIMIT 1
388
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-7@example.com' AND "push_type_users"."id" != '03d6356b-1ecb-4bad-a298-d2e5cd3cf643') LIMIT 1
389
- Rendered /Users/aaron/dev/push_type/auth/app/views/devise/shared/_links.html.erb (0.5ms)
390
- Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 1.0ms)
391
-  (0.4ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
392
-  (9.8ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;
393
-  (0.4ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
394
-  (2.3ms) ROLLBACK
760
+ Parameters: {"user"=>{"confirmation_token"=>"xG4sqYm3zHMGgY372Mkq", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
761
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = 'bd41cf434d604a27093458c3f6cc9ccc2bc2c7ab6cc18608ef27ae4f0fa948d6' ORDER BY "push_type_users"."name" ASC LIMIT 1
762
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-21@example.com' AND "push_type_users"."id" != '3cc8107c-b44d-4b58-ba4e-81755405cb6f') LIMIT 1
763
+  (0.2ms) SAVEPOINT active_record_2
764
+ SQL (0.4ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmed_at" = $2, "encrypted_password" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = '3cc8107c-b44d-4b58-ba4e-81755405cb6f' [["confirmation_token", nil], ["confirmed_at", "2015-01-02 20:45:05.665649"], ["encrypted_password", "$2a$04$JxKxYx6oyVzTc6pmODj0iuytY7NJKCpLiiPWR.1gUNaer7nj5b/X2"], ["updated_at", "2015-01-02 20:45:05.666183"]]
765
+  (0.2ms) RELEASE SAVEPOINT active_record_2
766
+  (0.2ms) SAVEPOINT active_record_2
767
+ SQL (0.4ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "current_sign_in_ip" = $2, "last_sign_in_at" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = '3cc8107c-b44d-4b58-ba4e-81755405cb6f' [["current_sign_in_at", "2015-01-02 20:45:05.668861"], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_at", "2015-01-02 20:45:05.668861"], ["last_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-01-02 20:45:05.669731"]]
768
+  (0.1ms) RELEASE SAVEPOINT active_record_2
769
+ Redirected to http://test.host/push_type/
770
+ Completed 302 Found in 13ms (ActiveRecord: 2.4ms)
771
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "3cc8107c-b44d-4b58-ba4e-81755405cb6f"]]
772
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
773
+  (0.1ms) ROLLBACK
774
+  (0.1ms) BEGIN
775
+ ------------------------------------------------------------------------------------
776
+ PushType::ConfirmationsController::PUT #update::with valid user: test_0002_anonymous
777
+ ------------------------------------------------------------------------------------
778
+  (0.1ms) SAVEPOINT active_record_1
779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
780
+  (0.1ms) SAVEPOINT active_record_1
781
+  (0.1ms) SAVEPOINT active_record_2
782
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
783
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1
784
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '31c4de417594e60939c14d23015186bdd41d9a59776af35840435c2381a04dcf' ORDER BY "push_type_users"."name" ASC LIMIT 1
785
+ SQL (0.2ms) INSERT INTO "push_type_users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["confirmation_sent_at", "2015-01-02 20:45:05.679855"], ["confirmation_token", "31c4de417594e60939c14d23015186bdd41d9a59776af35840435c2381a04dcf"], ["created_at", "2015-01-02 20:45:05.678750"], ["email", "joe-22@example.com"], ["name", "Joe Bloggs"], ["updated_at", "2015-01-02 20:45:05.678750"]]
786
+
787
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 1.5ms
788
+
789
+ Sent mail to joe-22@example.com (2.1ms)
790
+ Date: Fri, 02 Jan 2015 20:45:05 +0000
791
+ From: please-change-me-at-config-initializers-devise@example.com
792
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
793
+ To: joe-22@example.com
794
+ Message-ID: <54a70351a6e24_8d13fe135065be8999f1@Aarons-MacBook-Air-3.local.mail>
795
+ Subject: Confirmation instructions
796
+ Mime-Version: 1.0
797
+ Content-Type: text/html;
798
+ charset=UTF-8
799
+ Content-Transfer-Encoding: 7bit
800
+
801
+ <p>Welcome joe-22@example.com!</p>
802
+
803
+ <p>You can confirm your account email through the link below:</p>
804
+
805
+ <p><a href="http://localhost:3000/push_type/confirmation?confirmation_token=5wabyiLCWPakzFMkSo2M">Confirm my account</a></p>
806
+
807
+  (0.2ms) RELEASE SAVEPOINT active_record_2
808
+ Processing by PushType::ConfirmationsController#update as HTML
809
+ Parameters: {"user"=>{"confirmation_token"=>"5wabyiLCWPakzFMkSo2M", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
810
+ PushType::User Load (0.4ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = '31c4de417594e60939c14d23015186bdd41d9a59776af35840435c2381a04dcf' ORDER BY "push_type_users"."name" ASC LIMIT 1
811
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-22@example.com' AND "push_type_users"."id" != '1ff42150-fad4-418b-8a69-6121f5a15308') LIMIT 1
812
+  (0.1ms) SAVEPOINT active_record_2
813
+ SQL (0.6ms) UPDATE "push_type_users" SET "confirmation_token" = $1, "confirmed_at" = $2, "encrypted_password" = $3, "updated_at" = $4 WHERE "push_type_users"."id" = '1ff42150-fad4-418b-8a69-6121f5a15308' [["confirmation_token", nil], ["confirmed_at", "2015-01-02 20:45:05.692662"], ["encrypted_password", "$2a$04$mHHabpFpWdZ3SY7mAmFd6.pqQHLynLB0mDvUnfCujQE0ggBVtjhyi"], ["updated_at", "2015-01-02 20:45:05.692995"]]
814
+  (0.2ms) RELEASE SAVEPOINT active_record_2
815
+  (0.2ms) SAVEPOINT active_record_2
816
+ SQL (0.4ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "current_sign_in_ip" = $2, "last_sign_in_at" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = '1ff42150-fad4-418b-8a69-6121f5a15308' [["current_sign_in_at", "2015-01-02 20:45:05.695584"], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_at", "2015-01-02 20:45:05.695584"], ["last_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", "2015-01-02 20:45:05.696357"]]
817
+  (0.2ms) RELEASE SAVEPOINT active_record_2
818
+ Redirected to http://test.host/push_type/
819
+ Completed 302 Found in 11ms (ActiveRecord: 2.4ms)
820
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
821
+  (0.1ms) ROLLBACK