push_type_auth 0.11.0.beta.2 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/test/dummy/config/initializers/push_type.rb +1 -1
  3. data/test/dummy/config/secrets.yml +2 -2
  4. data/test/dummy/db/migrate/{20170506161432_create_push_type_users.push_type.rb → 20170518181804_create_push_type_users.push_type.rb} +0 -0
  5. data/test/dummy/db/migrate/{20170506161433_create_push_type_nodes.push_type.rb → 20170518181805_create_push_type_nodes.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20170506161434_create_push_type_node_hierarchies.push_type.rb → 20170518181806_create_push_type_node_hierarchies.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20170506161435_create_push_type_assets.push_type.rb → 20170518181807_create_push_type_assets.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20170506161436_add_field_store_default_values.push_type.rb → 20170518181808_add_field_store_default_values.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20170506161437_drop_legacy_push_type_taxonomies.push_type.rb → 20170518181809_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20170506161438_devise_extend_push_type_users.push_type_auth.rb → 20170518181810_devise_extend_push_type_users.push_type_auth.rb} +0 -0
  11. data/test/dummy/db/schema.rb +1 -1
  12. data/test/dummy/log/test.log +776 -776
  13. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2n/2nehHVzQu5ZdatRSS0QoyZOdj4Rn9IiSMvVjZVMRc6Y.cache +0 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{O9/O9zZx9ZhkmkuIg3iojcRJEmZu7EKH9fiaLu3bDQSoh4.cache → 6c/6ccz77cpw8JvCuw0LURaC5vCcZGDDCWXclBvpzmI5aI.cache} +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7z/7zVUI6RnxAyRNa4YAQDo-WOgq_shbX19qniKWIPfNl8.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/B-/B-QUSCYaV2CjVLfldvD6moYCYXa-Pi3Uzm9o3i7wzDg.cache +0 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{4L/4Lb5TNvYsPdegtYPx_8JhcnCWKVloCbKW9KZnf1yuao.cache → Bu/BuNVyrrLua6zvw5aGZBmuqMKZYCKGrI-xs8O8LZPsY4.cache} +0 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CZ/CZuaDu1KFUnMWBM4UrLTmL-RcDYAzHN5yBZ_Z8rKeDg.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ie/IeMExh5XZnnZotiqeRXRK-aeO5aavK2IflVnC1KQvmE.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{IV → Iv}/IVtzEQSFGSK1Z7luLv7-iLXCZ7WELgGjNij5Drb-v8M.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{IV → Iv}/IvcUZAkKt_KPBaJYKodMbvPxfqIMAoMUC8GkY_VERbk.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{IV → Iv}/iVB7uoSdcQ76naC4pMayywt6taoeqjBtvGq6S2zna1k.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mu/MuC4-rwjoy5LpzP-YW6j2g3Jw9D-7zltqLTxhRe7TRs.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ti/Ti7af8_bIJtX6GfAXMqblb6aBLbiX57YGPIjN0dOGe8.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Wa → WA}/WAOJ5NUclxsmweehPpSWE-2wJ_qgrO_03ELm6TzVhL8.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{J5/J5u2OXVZ1vHKwzOXNPWG1QCMFS-yYC_dSeK42k6Dglc.cache → WA/WAQU9KxaBLYJxooQPbYSiqJS4aUtn5bMy2W-IphXoQ8.cache} +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Wa → WA}/Wa6cQ4TDQ9DvwN7aMEUMB5L-gBO187KlrMPXAOo5Rro.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Wa → WA}/wAsljnyZ3f7262eG_VDDlsAmSi7s7f1x9gwlSAb03HI.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ym/Ym_FU1KdcC_SroOTGp2OoAKytPQf2N-xr32O8iv7_qU.cache +0 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{IV/IVVO4PPA1J84xEs0J5fqIzNBraBpi1RVkxwczpxp4hU.cache → _s/_S3E6N2oeQvJ04XNwNLkioUC0pB7WMvtdIGdGI8ptTg.cache} +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{h7/h706at21mmSOxbhzdAQSLl66kfKlSCLUNGRnMlJy7Ng.cache → an/anncTCQwXYCJo8RtZUUtyoyyPJOFSkUIa9nOgOyJw6g.cache} +0 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/e5/E54fCf9v75rjaByU59jtRielMv-O9aAK4ulnT4fvvJA.cache +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{yj/yjKI38z2zgjzCIZ5077dAuvZFw2mFBg_cUf2yLmeLHk.cache → eQ/EQB-hJXVhLRfKW6nJaEvN9-VMowMx9PRqt7_jjtbPrw.cache} +0 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{J5 → j5}/j5Fq0JLuMUjH6dSddtbZjunAzl_sRK32_0-0IAIBDcI.cache +0 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{KS → kS}/KSF97Z_xV5peKCYebPNj0N79ibbAAo9G9nKYUeSB0BQ.cache +0 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{KS → kS}/Ksgj75EJWHSroUlBiZ_Yxf1ckdbfDlTBBzqLb1g152Q.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{MT/MT-GwtnWVIHmQZkRUieQbj2YNHRcUQRMO6d_Ls-KN-s.cache → kS/kS1DyoQoQ8vDWkcyR3pSpzAWyS3oU8hNtJtZRSJA5LQ.cache} +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qR/qRaOhZp1YmFLj_RYzdWltKrv2bZC9_p-pOS57fD73uw.cache +0 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{WP/WPrTPJXmaLzAvVMjsj0AQGv5jvjR9wJ0fRKnmeZCFm8.cache → sV/Sv4opHqR64bL84hMm5sfIxwuui7KtAcUKSFI9Px9XX4.cache} +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xW/xWcH2_la6lj8DnYcPo7QHiF2_IhFrEtsn0ATKNOBZPM.cache +0 -0
  41. metadata +60 -60
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa88f7485db0051d143b4e3f1d95f2d4c44a9038
4
- data.tar.gz: 776109a97cf3079172f09fb154875d0eb3f731c0
3
+ metadata.gz: d9351dc23d6e81b3d7617d25fa05b262f485ed66
4
+ data.tar.gz: 1d200879b09ba7550dba28e5214889cb72bc9fdd
5
5
  SHA512:
6
- metadata.gz: eb3f083f26cddbfe7f5a70286c52ba27d6be3fe4a9f01cf085f2c562e48b5da81edcadc7ea14507ad2e07844cd8f9f184700f92c72fd98224e1a5b0984deccea
7
- data.tar.gz: 240b10f872dcc5d5f0783baa9745966d78896e86121a28f57a9579604844cef02e353711e1feb5f5bd9a4e94e62d70e8817646aa06e53fa2c3d83a9d7188d819
6
+ metadata.gz: cb5e273344dcf1514d23da066faeaa1511ea6250b9e6e3c765dccba65cad4ce1a3aeecce026d55d0a673d274300823b513bfe38bc951c268954d917edd2af9a5
7
+ data.tar.gz: 729ba622b284d07f10e2b94048ed3dbec8f51203fc7f9c35ec3b9ef44645a408e75e0d607d6e30d52464bae55ade33ca0127583c743d58843289edfe62d883fe
@@ -45,6 +45,6 @@ PushType.setup do |config|
45
45
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
46
46
  # }
47
47
 
48
- # config.dragonfly_secret = '3310a6db8bbfe3edd34d90a7cae39e35fe913ec7df3979ec873e82c9504e4687'
48
+ # config.dragonfly_secret = '34517278a1753d893472e3e134f3a2935b3d5caf8798ba3d05da1fb3bf3a1176'
49
49
 
50
50
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 718ad98ea5eef3d91738e98a896cd8b9e85edeba723ed11ca56c0c0eeca75040a49b7e2329e681ad06ce7021132f13635499e569515b2179bbca2eebe95853d5
14
+ secret_key_base: eeaf55317980e79e3af80835a5349b7ab8b1b446b29736e19bbc964d541011482661209ac5b2c48dfb0a01fe370be6aff774daf2734416efa05f6b74fe929efa
15
15
 
16
16
  test:
17
- secret_key_base: 8b24d41bc20e3b8873b2dbff8a2328ff98d6877c76e335ea593cfa1bf3f46a90e788569138a3d56f95720c38fcd870b80d92e206a8022d6c9955fa8a50896558
17
+ secret_key_base: 167378647d8da21ee9aebfa360f30f9d208ed4446207bf618f7a620004d0c2986794e636fc1521778791f11f1fb108beb9126a9a27eee4bc6794104103d9b6ec
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20170506161438) do
13
+ ActiveRecord::Schema.define(version: 20170518181810) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -1,86 +1,86 @@
1
- ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
2
-  (0.1ms) BEGIN
3
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-05-06 16:14:27 UTC], ["updated_at", 2017-05-06 16:14:27 UTC]]
4
-  (0.5ms) COMMIT
5
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
-  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
1
+ ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
2
+  (0.2ms) BEGIN
3
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-05-18 18:17:58 UTC], ["updated_at", 2017-05-18 18:17:58 UTC]]
4
+  (6.3ms) COMMIT
5
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
7
7
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
8
   (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
9
9
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
10
   (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
11
-  (215.2ms) DROP DATABASE IF EXISTS "dummy_test"
12
-  (358.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
13
-  (26.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
14
-  (23.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11
+  (193.4ms) DROP DATABASE IF EXISTS "dummy_test"
12
+  (707.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
13
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
14
+  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
15
15
   (0.1ms) SELECT pg_try_advisory_lock(2735718569030447490);
16
16
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
- Migrating to CreatePushTypeUsers (20170506161432)
17
+ Migrating to CreatePushTypeUsers (20170518181804)
18
18
   (0.1ms) BEGIN
19
- SQL (12.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
20
-  (2.9ms) CREATE TABLE "push_type_users" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
21
- SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170506161432"]]
19
+ SQL (14.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
20
+  (2.1ms) CREATE TABLE "push_type_users" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
21
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170518181804"]]
22
22
   (0.6ms) COMMIT
23
- Migrating to CreatePushTypeNodes (20170506161433)
24
-  (0.1ms) BEGIN
25
-  (2.3ms) CREATE TABLE "push_type_nodes" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
26
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170506161433"]]
23
+ Migrating to CreatePushTypeNodes (20170518181805)
24
+  (0.2ms) BEGIN
25
+  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
26
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170518181805"]]
27
27
   (0.5ms) COMMIT
28
- Migrating to CreatePushTypeNodeHierarchies (20170506161434)
28
+ Migrating to CreatePushTypeNodeHierarchies (20170518181806)
29
29
   (0.1ms) BEGIN
30
-  (0.7ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
31
-  (1.0ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
32
-  (0.8ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
33
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170506161434"]]
34
-  (0.3ms) COMMIT
35
- Migrating to CreatePushTypeAssets (20170506161435)
30
+  (0.6ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
31
+  (0.7ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
32
+  (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
33
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170518181806"]]
34
+  (0.4ms) COMMIT
35
+ Migrating to CreatePushTypeAssets (20170518181807)
36
36
   (0.1ms) BEGIN
37
-  (2.9ms) CREATE TABLE "push_type_assets" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
38
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170506161435"]]
37
+  (2.1ms) CREATE TABLE "push_type_assets" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
38
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170518181807"]]
39
39
   (0.4ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20170506161436)
40
+ Migrating to AddFieldStoreDefaultValues (20170518181808)
41
41
   (0.1ms) BEGIN
42
-  (0.4ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
-  (0.6ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
42
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
44
44
   (0.4ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
45
-  (0.3ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
-  (0.3ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
-  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
-  (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
-  (0.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170506161436"]]
51
-  (0.4ms) COMMIT
52
- Migrating to DropLegacyPushTypeTaxonomies (20170506161437)
45
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
+  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
+  (0.3ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
+  (0.3ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
+  (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170518181808"]]
51
+  (0.5ms) COMMIT
52
+ Migrating to DropLegacyPushTypeTaxonomies (20170518181809)
53
53
   (0.1ms) BEGIN
54
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170506161437"]]
54
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170518181809"]]
55
55
   (0.4ms) COMMIT
56
- Migrating to DeviseExtendPushTypeUsers (20170506161438)
56
+ Migrating to DeviseExtendPushTypeUsers (20170518181810)
57
57
   (0.1ms) BEGIN
58
58
   (3.0ms) ALTER TABLE "push_type_users" ADD "encrypted_password" character varying DEFAULT '' NOT NULL
59
59
   (0.2ms) ALTER TABLE "push_type_users" ADD "reset_password_token" character varying
60
60
   (0.1ms) ALTER TABLE "push_type_users" ADD "reset_password_sent_at" timestamp
61
61
   (0.1ms) ALTER TABLE "push_type_users" ADD "remember_created_at" timestamp
62
-  (2.2ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
63
-  (0.2ms) ALTER TABLE "push_type_users" ADD "current_sign_in_at" timestamp
62
+  (2.6ms) ALTER TABLE "push_type_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
63
+  (0.3ms) ALTER TABLE "push_type_users" ADD "current_sign_in_at" timestamp
64
64
   (0.2ms) ALTER TABLE "push_type_users" ADD "last_sign_in_at" timestamp
65
-  (0.1ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
65
+  (0.2ms) ALTER TABLE "push_type_users" ADD "current_sign_in_ip" character varying
66
66
   (0.1ms) ALTER TABLE "push_type_users" ADD "last_sign_in_ip" character varying
67
67
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_token" character varying
68
68
   (0.1ms) ALTER TABLE "push_type_users" ADD "confirmed_at" timestamp
69
-  (0.2ms) ALTER TABLE "push_type_users" ADD "confirmation_sent_at" timestamp
69
+  (0.1ms) ALTER TABLE "push_type_users" ADD "confirmation_sent_at" timestamp
70
70
   (0.9ms) CREATE UNIQUE INDEX "index_push_type_users_on_email" ON "push_type_users" ("email")
71
-  (1.0ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
72
- SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170506161438"]]
71
+  (0.8ms) CREATE UNIQUE INDEX "index_push_type_users_on_reset_password_token" ON "push_type_users" ("reset_password_token")
72
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170518181810"]]
73
73
   (1.0ms) COMMIT
74
74
  ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
75
75
   (0.1ms) BEGIN
76
- SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-05-06 16:14:35 UTC], ["updated_at", 2017-05-06 16:14:35 UTC]]
76
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-05-18 18:18:07 UTC], ["updated_at", 2017-05-18 18:18:07 UTC]]
77
77
   (0.5ms) COMMIT
78
-  (0.1ms) SELECT pg_advisory_unlock(2735718569030447490)
78
+  (0.3ms) SELECT pg_advisory_unlock(2735718569030447490)
79
79
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
80
  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
81
81
  Creating scope :published. Overwriting existing method PushType::Node.published.
82
82
   (0.1ms) BEGIN
83
-  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL
83
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL
84
84
   (0.1ms) COMMIT
85
85
   (1.0ms)  SELECT schemaname || '.' || tablename
86
86
  FROM pg_tables
@@ -90,60 +90,46 @@ Creating scope :published. Overwriting existing method PushType::Node.published.
90
90
  schemaname = ANY (current_schemas(false))
91
91
  
92
92
   (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
93
-  (8.6ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets", "public"."push_type_users" RESTART IDENTITY CASCADE;
93
+  (26.5ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets", "public"."push_type_users" RESTART IDENTITY CASCADE;
94
94
   (0.1ms) BEGIN
95
-  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
95
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL
96
96
   (0.1ms) COMMIT
97
97
   (0.1ms) BEGIN
98
- -------------------------------------------------------------------------
99
- AuthenticatedControllerTest::unauthenticated request: test_0001_anonymous
100
- -------------------------------------------------------------------------
101
-  (0.1ms) SAVEPOINT active_record_1
102
-  (0.1ms) RELEASE SAVEPOINT active_record_1
98
+ --------------------------------------------------------------------------------------------------------------
99
+ PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
100
+ --------------------------------------------------------------------------------------------------------------
103
101
   (0.1ms) SAVEPOINT active_record_1
104
- Started GET "/admin/nodes" for 127.0.0.1 at 2017-05-06 17:14:40 +0100
105
- Processing by PushType::Admin::NodesController#index as HTML
106
- Redirected to http://www.example.com/admin/sign_in
107
- Filter chain halted as :authenticate_user! rendered or redirected
108
- Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
109
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
110
-  (0.1ms) ROLLBACK
111
-  (0.1ms) BEGIN
112
- ----------------------------------------------------------------------------------------------------
113
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
114
- ----------------------------------------------------------------------------------------------------
115
-  (0.2ms) SAVEPOINT active_record_1
116
102
   (0.1ms) RELEASE SAVEPOINT active_record_1
117
103
   (0.1ms) SAVEPOINT active_record_1
118
-  (0.1ms) SAVEPOINT active_record_2
119
- PushType::User Exists (0.5ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
120
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
121
- SQL (1.0ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-1@example.com"], ["created_at", 2017-05-06 16:14:40 UTC], ["updated_at", 2017-05-06 16:14:40 UTC], ["confirmation_token", "VDCvFjJ6vQtfKqMjb6u7"], ["confirmation_sent_at", 2017-05-06 16:14:40 UTC]]
122
-  (0.2ms) RELEASE SAVEPOINT active_record_2
104
+  (0.2ms) SAVEPOINT active_record_2
105
+ PushType::User Exists (0.6ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
106
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]
107
+ SQL (1.7ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-1@example.com"], ["created_at", 2017-05-18 18:18:12 UTC], ["updated_at", 2017-05-18 18:18:12 UTC], ["confirmation_token", "dm-x42NyLSCXmx18yri2"], ["confirmation_sent_at", 2017-05-18 18:18:12 UTC]]
108
+  (0.1ms) RELEASE SAVEPOINT active_record_2
123
109
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
124
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (1.8ms)
110
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (6.7ms)
125
111
  DEPRECATION WARNING on line 78 of /Users/aaron/.rvm/gems/ruby-2.3.1@push_type/gems/foundation-rails-5.5.3.2/vendor/assets/stylesheets/foundation/components/_top-bar.scss: #{} interpolation near operators will be simplified
126
112
  in a future version of Sass. To preserve the current behavior, use quotes:
127
113
 
128
114
  unquote("#{lower-bound($medium-range)}")
129
115
 
130
116
 
131
- Devise::Mailer#confirmation_instructions: processed outbound mail in 17928.3ms
117
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 18736.9ms
132
118
  Sent mail to joe-1@example.com (10.4ms)
133
- Date: Sat, 06 May 2017 17:14:58 +0100
119
+ Date: Thu, 18 May 2017 19:18:30 +0100
134
120
  From: pushtype@example.com
135
121
  Reply-To: pushtype@example.com
136
122
  To: joe-1@example.com
137
- Message-ID: <590df6825d09c_6a503fc67743f9b8458c2@Aarons-iMac.local.mail>
123
+ Message-ID: <591de576cc518_161843fe237c339b81001ac@Aarons-iMac.local.mail>
138
124
  Subject: [PushType] Confirm your account
139
125
  Mime-Version: 1.0
140
126
  Content-Type: multipart/alternative;
141
- boundary="--==_mimepart_590df6825ba58_6a503fc67743f9b8457fb";
127
+ boundary="--==_mimepart_591de576cafef_161843fe237c339b8100066";
142
128
  charset=UTF-8
143
129
  Content-Transfer-Encoding: 7bit
144
130
 
145
131
 
146
- ----==_mimepart_590df6825ba58_6a503fc67743f9b8457fb
132
+ ----==_mimepart_591de576cafef_161843fe237c339b8100066
147
133
  Content-Type: text/plain;
148
134
  charset=UTF-8
149
135
  Content-Transfer-Encoding: 7bit
@@ -159,12 +145,12 @@ To get started, confirm your account and set your own password by
159
145
  clicking the link below:
160
146
 
161
147
  Confirm my account
162
- ( http://localhost:3000/admin/confirmation.3ba30396-77e9-4c8b-b604-b3af31bdf749?confirmation_token=VDCvFjJ6vQtfKqMjb6u7 )
148
+ ( http://localhost:3000/admin/confirmation.de042fa6-84cf-4619-bb74-483e867cd3a0?confirmation_token=dm-x42NyLSCXmx18yri2 )
163
149
 
164
150
 
165
151
  PushType CMS: www.pushtype.org
166
152
  ( http://www.pushtype.org ).
167
- ----==_mimepart_590df6825ba58_6a503fc67743f9b8457fb
153
+ ----==_mimepart_591de576cafef_161843fe237c339b8100066
168
154
  Content-Type: text/html;
169
155
  charset=UTF-8
170
156
  Content-Transfer-Encoding: 7bit
@@ -209,7 +195,7 @@ body {
209
195
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
210
196
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
211
197
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
212
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.3ba30396-77e9-4c8b-b604-b3af31bdf749?confirmation_token=VDCvFjJ6vQtfKqMjb6u7" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
198
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.de042fa6-84cf-4619-bb74-483e867cd3a0?confirmation_token=dm-x42NyLSCXmx18yri2" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
213
199
  </td>
214
200
  </tr>
215
201
  </table>
@@ -254,47 +240,72 @@ body {
254
240
  </body>
255
241
  </html>
256
242
 
257
- ----==_mimepart_590df6825ba58_6a503fc67743f9b8457fb--
243
+ ----==_mimepart_591de576cafef_161843fe237c339b8100066--
258
244
 
259
- Processing by PushType::ConfirmationsController#show as HTML
260
- Parameters: {"confirmation_token"=>"VDCvFjJ6vQtfKqMjb6u7"}
261
- PushType::User Load (6.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "VDCvFjJ6vQtfKqMjb6u7"], ["LIMIT", 1]]
262
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
263
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.2ms)
264
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (19.5ms)
265
- Completed 200 OK in 40ms (Views: 28.4ms | ActiveRecord: 6.2ms)
266
245
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
267
246
   (0.2ms) ROLLBACK
268
247
   (0.1ms) BEGIN
248
+ -----------------------------------------------------------------------
249
+ AuthenticatedControllerTest::authenticated request: test_0001_anonymous
250
+ -----------------------------------------------------------------------
251
+  (0.1ms) SAVEPOINT active_record_1
252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253
+  (0.0ms) SAVEPOINT active_record_1
254
+  (0.1ms) SAVEPOINT active_record_2
255
+ PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
256
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
257
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "encrypted_password", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["created_at", 2017-05-18 18:18:30 UTC], ["updated_at", 2017-05-18 18:18:30 UTC], ["encrypted_password", "$2a$04$4AgjQwE1wu4xA8Q5/Y2bf.uS/wq4gJ/VedlMaiQnxkRD8dpTvxV3a"], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:30 UTC], ["confirmation_sent_at", 2017-05-18 18:18:30 UTC]]
258
+  (0.1ms) RELEASE SAVEPOINT active_record_2
259
+ Started POST "/admin/sign_in" for 127.0.0.1 at 2017-05-18 19:18:30 +0100
260
+ Processing by PushType::SessionsController#create as HTML
261
+ Parameters: {"user"=>{"email"=>"joe-2@example.com", "password"=>"[FILTERED]"}}
262
+ PushType::User Load (13.9ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."email" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
263
+  (0.2ms) SAVEPOINT active_record_2
264
+ SQL (0.3ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["current_sign_in_at", 2017-05-18 18:18:30 UTC], ["last_sign_in_at", 2017-05-18 18:18:30 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2017-05-18 18:18:30 UTC], ["id", "afd8a821-5e7e-48d0-8ab4-8ffacce05668"]]
265
+  (0.1ms) RELEASE SAVEPOINT active_record_2
266
+ Redirected to http://www.example.com/admin/
267
+ Completed 302 Found in 77ms (ActiveRecord: 14.5ms)
268
+ Started GET "/admin/nodes" for 127.0.0.1 at 2017-05-18 19:18:30 +0100
269
+ Processing by PushType::Admin::NodesController#index as HTML
270
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "afd8a821-5e7e-48d0-8ab4-8ffacce05668"], ["LIMIT", 1]]
271
+ Rendering /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin
272
+  (2.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT $1 OFFSET $2) subquery_for_count [["LIMIT", 30], ["OFFSET", 0]]
273
+  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
274
+ Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/_new_node_button.html.haml (3.2ms)
275
+ Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin (38.5ms)
276
+ Completed 200 OK in 60ms (Views: 49.2ms | ActiveRecord: 2.6ms)
277
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
278
+  (0.1ms) ROLLBACK
279
+  (0.1ms) BEGIN
269
280
  ----------------------------------------------------------------------------------------------------
270
- PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
281
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0001_anonymous
271
282
  ----------------------------------------------------------------------------------------------------
272
283
   (0.1ms) SAVEPOINT active_record_1
273
-  (0.0ms) RELEASE SAVEPOINT active_record_1
284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
274
285
   (0.1ms) SAVEPOINT active_record_1
275
286
   (0.1ms) SAVEPOINT active_record_2
276
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
277
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-2@example.com"], ["LIMIT", 1]]
278
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "-Urzn2P6U2DUoeze5yGr"], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
287
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-3@example.com"], ["LIMIT", 1]]
288
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-3@example.com"], ["LIMIT", 1]]
289
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-3@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "2_kqQxrx4MwvCzeVXE_y"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
279
290
   (0.1ms) RELEASE SAVEPOINT active_record_2
280
291
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
281
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
282
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.2ms
283
- Sent mail to joe-2@example.com (3.9ms)
284
- Date: Sat, 06 May 2017 17:14:58 +0100
292
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.9ms)
293
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 42.9ms
294
+ Sent mail to joe-3@example.com (4.4ms)
295
+ Date: Thu, 18 May 2017 19:18:31 +0100
285
296
  From: pushtype@example.com
286
297
  Reply-To: pushtype@example.com
287
- To: joe-2@example.com
288
- Message-ID: <590df6827264b_6a503fc67743f9b8461c0@Aarons-iMac.local.mail>
298
+ To: joe-3@example.com
299
+ Message-ID: <591de5771f097_161843fe237c339b8100467@Aarons-iMac.local.mail>
289
300
  Subject: [PushType] Confirm your account
290
301
  Mime-Version: 1.0
291
302
  Content-Type: multipart/alternative;
292
- boundary="--==_mimepart_590df68272158_6a503fc67743f9b8460f6";
303
+ boundary="--==_mimepart_591de5771ebc3_161843fe237c339b81003c";
293
304
  charset=UTF-8
294
305
  Content-Transfer-Encoding: 7bit
295
306
 
296
307
 
297
- ----==_mimepart_590df68272158_6a503fc67743f9b8460f6
308
+ ----==_mimepart_591de5771ebc3_161843fe237c339b81003c
298
309
  Content-Type: text/plain;
299
310
  charset=UTF-8
300
311
  Content-Transfer-Encoding: 7bit
@@ -310,12 +321,12 @@ To get started, confirm your account and set your own password by
310
321
  clicking the link below:
311
322
 
312
323
  Confirm my account
313
- ( http://localhost:3000/admin/confirmation.3f286643-c597-42d9-b47c-fd53509c50e8?confirmation_token=-Urzn2P6U2DUoeze5yGr )
324
+ ( http://localhost:3000/admin/confirmation.67c42b48-7bba-46fe-9a82-07519b6295b7?confirmation_token=2_kqQxrx4MwvCzeVXE_y )
314
325
 
315
326
 
316
327
  PushType CMS: www.pushtype.org
317
328
  ( http://www.pushtype.org ).
318
- ----==_mimepart_590df68272158_6a503fc67743f9b8460f6
329
+ ----==_mimepart_591de5771ebc3_161843fe237c339b81003c
319
330
  Content-Type: text/html;
320
331
  charset=UTF-8
321
332
  Content-Transfer-Encoding: 7bit
@@ -360,7 +371,7 @@ body {
360
371
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
361
372
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
362
373
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
363
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.3f286643-c597-42d9-b47c-fd53509c50e8?confirmation_token=-Urzn2P6U2DUoeze5yGr" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
374
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.67c42b48-7bba-46fe-9a82-07519b6295b7?confirmation_token=2_kqQxrx4MwvCzeVXE_y" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
364
375
  </td>
365
376
  </tr>
366
377
  </table>
@@ -405,231 +416,47 @@ body {
405
416
  </body>
406
417
  </html>
407
418
 
408
- ----==_mimepart_590df68272158_6a503fc67743f9b8460f6--
419
+ ----==_mimepart_591de5771ebc3_161843fe237c339b81003c--
409
420
 
410
421
  Processing by PushType::ConfirmationsController#show as HTML
411
- Parameters: {"confirmation_token"=>"-Urzn2P6U2DUoeze5yGr"}
412
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "-Urzn2P6U2DUoeze5yGr"], ["LIMIT", 1]]
422
+ Parameters: {"confirmation_token"=>"2_kqQxrx4MwvCzeVXE_y"}
423
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "2_kqQxrx4MwvCzeVXE_y"], ["LIMIT", 1]]
413
424
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
414
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
415
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
416
- Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms)
417
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
418
-  (0.1ms) ROLLBACK
419
-  (0.1ms) BEGIN
420
- --------------------------------------------------------
421
- PushType::AuthenticationMethodsTest: test_0002_anonymous
422
- --------------------------------------------------------
423
-  (0.1ms) SAVEPOINT active_record_1
424
-  (0.1ms) RELEASE SAVEPOINT active_record_1
425
-  (0.1ms) SAVEPOINT active_record_1
426
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
427
-  (0.1ms) ROLLBACK
428
-  (0.1ms) BEGIN
429
- --------------------------------------------------------
430
- PushType::AuthenticationMethodsTest: test_0001_anonymous
431
- --------------------------------------------------------
432
-  (0.0ms) SAVEPOINT active_record_1
433
-  (0.0ms) RELEASE SAVEPOINT active_record_1
434
-  (0.0ms) SAVEPOINT active_record_1
435
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
436
-  (0.1ms) ROLLBACK
437
-  (0.0ms) BEGIN
438
- ---------------------------------------------------------------
439
- PushType::AuthenticatableTest::confirmable: test_0001_anonymous
440
- ---------------------------------------------------------------
441
-  (0.0ms) SAVEPOINT active_record_1
442
-  (0.0ms) RELEASE SAVEPOINT active_record_1
443
-  (0.0ms) SAVEPOINT active_record_1
444
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
445
-  (0.1ms) ROLLBACK
446
-  (0.1ms) BEGIN
447
- -----------------------------------------------------------------------
448
- AuthenticatedControllerTest::authenticated request: test_0001_anonymous
449
- -----------------------------------------------------------------------
450
-  (0.0ms) SAVEPOINT active_record_1
451
-  (0.0ms) RELEASE SAVEPOINT active_record_1
452
-  (0.0ms) SAVEPOINT active_record_1
453
-  (0.1ms) SAVEPOINT active_record_2
454
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-3@example.com"], ["LIMIT", 1]]
455
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-3@example.com"], ["LIMIT", 1]]
456
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "encrypted_password", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-3@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["encrypted_password", "$2a$04$PvuBeXYkWjL1eWEyIE9E2uLieg3gDZ7AJhVS8vxGdMhgEEirua2FW"], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
457
-  (0.1ms) RELEASE SAVEPOINT active_record_2
458
- Started POST "/admin/sign_in" for 127.0.0.1 at 2017-05-06 17:14:58 +0100
459
- Processing by PushType::SessionsController#create as HTML
460
- Parameters: {"user"=>{"email"=>"joe-3@example.com", "password"=>"[FILTERED]"}}
461
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."email" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["email", "joe-3@example.com"], ["LIMIT", 1]]
462
-  (0.1ms) SAVEPOINT active_record_2
463
- SQL (0.3ms) UPDATE "push_type_users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "push_type_users"."id" = $7 [["current_sign_in_at", 2017-05-06 16:14:58 UTC], ["last_sign_in_at", 2017-05-06 16:14:58 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2017-05-06 16:14:58 UTC], ["id", "ef999188-d6cf-4761-a3ac-7b895f960443"]]
464
-  (0.1ms) RELEASE SAVEPOINT active_record_2
465
- Redirected to http://www.example.com/admin/
466
- Completed 302 Found in 47ms (ActiveRecord: 0.8ms)
467
- Started GET "/admin/nodes" for 127.0.0.1 at 2017-05-06 17:14:58 +0100
468
- Processing by PushType::Admin::NodesController#index as HTML
469
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "ef999188-d6cf-4761-a3ac-7b895f960443"], ["LIMIT", 1]]
470
- Rendering /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin
471
-  (0.9ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT $1 OFFSET $2) subquery_for_count [["LIMIT", 30], ["OFFSET", 0]]
472
-  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL
473
- Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/_new_node_button.html.haml (2.9ms)
474
- Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/nodes/index.html.haml within layouts/push_type/admin (28.2ms)
475
- Completed 200 OK in 48ms (Views: 39.3ms | ActiveRecord: 1.4ms)
476
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
425
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.5ms)
426
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (17.8ms)
427
+ Completed 200 OK in 33ms (Views: 27.5ms | ActiveRecord: 0.3ms)
428
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
477
429
   (0.1ms) ROLLBACK
478
430
   (0.1ms) BEGIN
479
- -----------------------------------------------------------------------------------
480
- AuthenticatedApiControllerTest::authenticated with token param: test_0001_anonymous
481
- -----------------------------------------------------------------------------------
431
+ ----------------------------------------------------------------------------------------------------
432
+ PushType::ConfirmationsControllerTest::GET #show::with valid confirmation token: test_0002_anonymous
433
+ ----------------------------------------------------------------------------------------------------
482
434
   (0.0ms) SAVEPOINT active_record_1
483
435
   (0.0ms) RELEASE SAVEPOINT active_record_1
484
436
   (0.0ms) SAVEPOINT active_record_1
485
437
   (0.1ms) SAVEPOINT active_record_2
486
438
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-4@example.com"], ["LIMIT", 1]]
487
439
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-4@example.com"], ["LIMIT", 1]]
488
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
489
-  (0.1ms) RELEASE SAVEPOINT active_record_2
490
- Started GET "/api/nodes?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0OTQxNzM2OTgsInN1YiI6IjExMjk0NTY1LWJhNWItNGFkNC04N2QwLWIxZDg4NWMxMmZhOSJ9.AGb6iQUStWDEGIt7lJPkg3WDGcyIykF38El40BXWJm0" for 127.0.0.1 at 2017-05-06 17:14:58 +0100
491
- Processing by PushType::Api::NodesController#index as JSON
492
- Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0OTQxNzM2OTgsInN1YiI6IjExMjk0NTY1LWJhNWItNGFkNC04N2QwLWIxZDg4NWMxMmZhOSJ9.AGb6iQUStWDEGIt7lJPkg3WDGcyIykF38El40BXWJm0"}
493
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "11294565-ba5b-4ad4-87d0-b1d885c12fa9"], ["LIMIT", 1]]
494
- Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
495
- PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
496
- Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
497
- Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (6.7ms)
498
- Completed 200 OK in 46ms (Views: 36.1ms | ActiveRecord: 0.7ms)
499
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
500
-  (0.1ms) ROLLBACK
501
-  (0.1ms) BEGIN
502
- --------------------------------------------------------------------------------------------
503
- PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
504
- --------------------------------------------------------------------------------------------
505
-  (0.1ms) SAVEPOINT active_record_1
506
-  (0.1ms) RELEASE SAVEPOINT active_record_1
507
-  (0.1ms) SAVEPOINT active_record_1
508
-  (0.1ms) SAVEPOINT active_record_2
509
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
510
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
511
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
512
-  (0.1ms) RELEASE SAVEPOINT active_record_2
513
- Processing by PushType::Admin::ProfilesController#update as HTML
514
- Parameters: {"user"=>{"name"=>""}}
515
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "8d7c4418-2efa-43be-8047-73dc5a041377"], ["LIMIT", 1]]
516
-  (0.1ms) SAVEPOINT active_record_2
517
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-5@example.com"], ["id", "8d7c4418-2efa-43be-8047-73dc5a041377"], ["LIMIT", 1]]
518
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
519
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
520
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (10.7ms)
521
- Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 0.6ms)
522
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
523
-  (0.1ms) ROLLBACK
524
-  (0.1ms) BEGIN
525
- --------------------------------------------------------------------------------------------
526
- PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
527
- --------------------------------------------------------------------------------------------
528
-  (0.1ms) SAVEPOINT active_record_1
529
-  (0.1ms) RELEASE SAVEPOINT active_record_1
530
-  (0.0ms) SAVEPOINT active_record_1
531
-  (0.1ms) SAVEPOINT active_record_2
532
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
533
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
534
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
535
-  (0.1ms) RELEASE SAVEPOINT active_record_2
536
- Processing by PushType::Admin::ProfilesController#update as HTML
537
- Parameters: {"user"=>{"name"=>""}}
538
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "121eecb0-c179-49e1-a859-63452801773d"], ["LIMIT", 1]]
539
-  (0.1ms) SAVEPOINT active_record_2
540
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-6@example.com"], ["id", "121eecb0-c179-49e1-a859-63452801773d"], ["LIMIT", 1]]
541
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
542
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
543
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (1.7ms)
544
- Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.5ms)
545
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
546
-  (0.1ms) ROLLBACK
547
-  (0.0ms) BEGIN
548
- ----------------------------------------------------------------
549
- PushType::AuthenticatableTest::rememberable: test_0001_anonymous
550
- ----------------------------------------------------------------
551
-  (0.0ms) SAVEPOINT active_record_1
552
-  (0.0ms) RELEASE SAVEPOINT active_record_1
553
-  (0.1ms) SAVEPOINT active_record_1
554
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
555
-  (0.1ms) ROLLBACK
556
-  (0.0ms) BEGIN
557
- --------------------------------------------------------------------------------------
558
- PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
559
- --------------------------------------------------------------------------------------
560
-  (0.0ms) SAVEPOINT active_record_1
561
-  (0.0ms) RELEASE SAVEPOINT active_record_1
562
-  (0.0ms) SAVEPOINT active_record_1
563
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
564
-  (0.0ms) ROLLBACK
565
-  (0.0ms) BEGIN
566
- -----------------------------------------------------------------------
567
- PushType::Admin::ProfilesControllerTest::GET #edit: test_0001_anonymous
568
- -----------------------------------------------------------------------
569
-  (0.0ms) SAVEPOINT active_record_1
570
-  (0.0ms) RELEASE SAVEPOINT active_record_1
571
-  (0.0ms) SAVEPOINT active_record_1
572
-  (0.1ms) SAVEPOINT active_record_2
573
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
574
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
575
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
576
-  (0.1ms) RELEASE SAVEPOINT active_record_2
577
- Processing by PushType::Admin::ProfilesController#edit as HTML
578
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "66a9c759-5367-42ef-b0c8-58934cadcaa9"], ["LIMIT", 1]]
579
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
580
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (2.0ms)
581
- Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.2ms)
582
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
583
-  (0.1ms) ROLLBACK
584
-  (0.1ms) BEGIN
585
- -----------------------------------------------------------------------
586
- PushType::Admin::ProfilesControllerTest::GET #edit: test_0002_anonymous
587
- -----------------------------------------------------------------------
588
-  (0.1ms) SAVEPOINT active_record_1
589
-  (0.0ms) RELEASE SAVEPOINT active_record_1
590
-  (0.0ms) SAVEPOINT active_record_1
591
-  (0.1ms) SAVEPOINT active_record_2
592
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
593
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
594
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
595
-  (0.1ms) RELEASE SAVEPOINT active_record_2
596
- Processing by PushType::Admin::ProfilesController#edit as HTML
597
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "bd8e5c83-f9e1-4310-893e-0b61d4b476b3"], ["LIMIT", 1]]
598
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
599
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (1.6ms)
600
- Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.3ms)
601
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
602
-  (0.1ms) ROLLBACK
603
-  (0.1ms) BEGIN
604
- --------------------------------------------------------------------------------------------------------------
605
- PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
606
- --------------------------------------------------------------------------------------------------------------
607
-  (0.1ms) SAVEPOINT active_record_1
608
-  (0.0ms) RELEASE SAVEPOINT active_record_1
609
-  (0.0ms) SAVEPOINT active_record_1
610
-  (0.1ms) SAVEPOINT active_record_2
611
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
612
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
613
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "BombYH_popVLVe7Y3Hs5"], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
440
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "ZXJK2LnPGQh_kmXy-WwY"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
614
441
   (0.1ms) RELEASE SAVEPOINT active_record_2
615
442
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
616
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.8ms)
617
- Devise::Mailer#confirmation_instructions: processed outbound mail in 40.9ms
618
- Sent mail to joe-9@example.com (3.4ms)
619
- Date: Sat, 06 May 2017 17:14:58 +0100
443
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
444
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.3ms
445
+ Sent mail to joe-4@example.com (3.7ms)
446
+ Date: Thu, 18 May 2017 19:18:31 +0100
620
447
  From: pushtype@example.com
621
448
  Reply-To: pushtype@example.com
622
- To: joe-9@example.com
623
- Message-ID: <590df682ced7f_6a503fc67743f9b846435@Aarons-iMac.local.mail>
449
+ To: joe-4@example.com
450
+ Message-ID: <591de57733235_161843fe237c339b810078c@Aarons-iMac.local.mail>
624
451
  Subject: [PushType] Confirm your account
625
452
  Mime-Version: 1.0
626
453
  Content-Type: multipart/alternative;
627
- boundary="--==_mimepart_590df682ce947_6a503fc67743f9b84635a";
454
+ boundary="--==_mimepart_591de57732d2f_161843fe237c339b8100661";
628
455
  charset=UTF-8
629
456
  Content-Transfer-Encoding: 7bit
630
457
 
631
458
 
632
- ----==_mimepart_590df682ce947_6a503fc67743f9b84635a
459
+ ----==_mimepart_591de57732d2f_161843fe237c339b8100661
633
460
  Content-Type: text/plain;
634
461
  charset=UTF-8
635
462
  Content-Transfer-Encoding: 7bit
@@ -645,12 +472,12 @@ To get started, confirm your account and set your own password by
645
472
  clicking the link below:
646
473
 
647
474
  Confirm my account
648
- ( http://localhost:3000/admin/confirmation.f104e6ad-1b82-44e1-8e12-8c49d6cdee12?confirmation_token=BombYH_popVLVe7Y3Hs5 )
475
+ ( http://localhost:3000/admin/confirmation.6ddb425d-fe8d-4f53-baab-7f746278f990?confirmation_token=ZXJK2LnPGQh_kmXy-WwY )
649
476
 
650
477
 
651
478
  PushType CMS: www.pushtype.org
652
479
  ( http://www.pushtype.org ).
653
- ----==_mimepart_590df682ce947_6a503fc67743f9b84635a
480
+ ----==_mimepart_591de57732d2f_161843fe237c339b8100661
654
481
  Content-Type: text/html;
655
482
  charset=UTF-8
656
483
  Content-Transfer-Encoding: 7bit
@@ -695,7 +522,7 @@ body {
695
522
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
696
523
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
697
524
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
698
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.f104e6ad-1b82-44e1-8e12-8c49d6cdee12?confirmation_token=BombYH_popVLVe7Y3Hs5" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
525
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.6ddb425d-fe8d-4f53-baab-7f746278f990?confirmation_token=ZXJK2LnPGQh_kmXy-WwY" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
699
526
  </td>
700
527
  </tr>
701
528
  </table>
@@ -740,253 +567,56 @@ body {
740
567
  </body>
741
568
  </html>
742
569
 
743
- ----==_mimepart_590df682ce947_6a503fc67743f9b84635a--
570
+ ----==_mimepart_591de57732d2f_161843fe237c339b8100661--
744
571
 
572
+ Processing by PushType::ConfirmationsController#show as HTML
573
+ Parameters: {"confirmation_token"=>"ZXJK2LnPGQh_kmXy-WwY"}
574
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "ZXJK2LnPGQh_kmXy-WwY"], ["LIMIT", 1]]
575
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
576
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
577
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
578
+ Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.3ms)
745
579
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
746
580
   (0.1ms) ROLLBACK
747
581
   (0.1ms) BEGIN
748
- ----------------------------------------------------
749
- PushType::InvitationMethodsTest: test_0001_anonymous
750
- ----------------------------------------------------
751
-  (0.1ms) SAVEPOINT active_record_1
752
-  (0.1ms) RELEASE SAVEPOINT active_record_1
753
-  (0.0ms) SAVEPOINT active_record_1
754
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
755
-  (0.0ms) ROLLBACK
756
-  (0.0ms) BEGIN
757
- -----------------------------------------------------------
758
- PushType::ApiAuthenticationMethodsTest: test_0001_anonymous
759
- -----------------------------------------------------------
760
-  (0.1ms) SAVEPOINT active_record_1
761
-  (0.1ms) RELEASE SAVEPOINT active_record_1
762
-  (0.0ms) SAVEPOINT active_record_1
763
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
764
-  (0.0ms) ROLLBACK
765
-  (0.1ms) BEGIN
766
- -----------------------------------------------------------
767
- PushType::ApiAuthenticationMethodsTest: test_0002_anonymous
768
- -----------------------------------------------------------
769
-  (0.0ms) SAVEPOINT active_record_1
770
-  (0.0ms) RELEASE SAVEPOINT active_record_1
771
-  (0.0ms) SAVEPOINT active_record_1
772
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
773
-  (0.0ms) ROLLBACK
774
-  (0.1ms) BEGIN
775
- -----------------------------------------------------------
776
- PushType::ApiAuthenticationMethodsTest: test_0004_anonymous
777
- -----------------------------------------------------------
582
+ ----------------------------------------------------------------
583
+ PushType::AuthenticatableTest::rememberable: test_0001_anonymous
584
+ ----------------------------------------------------------------
778
585
   (0.0ms) SAVEPOINT active_record_1
779
586
   (0.0ms) RELEASE SAVEPOINT active_record_1
780
587
   (0.0ms) SAVEPOINT active_record_1
781
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
782
-  (0.0ms) ROLLBACK
588
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
589
+  (0.1ms) ROLLBACK
783
590
   (0.1ms) BEGIN
784
- -----------------------------------------------------------
785
- PushType::ApiAuthenticationMethodsTest: test_0003_anonymous
786
- -----------------------------------------------------------
787
-  (0.1ms) SAVEPOINT active_record_1
788
-  (0.1ms) RELEASE SAVEPOINT active_record_1
789
-  (0.0ms) SAVEPOINT active_record_1
790
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
791
-  (0.0ms) ROLLBACK
792
-  (0.0ms) BEGIN
793
- ---------------------------------------------------------------------------
794
- PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
795
- ---------------------------------------------------------------------------
796
-  (0.0ms) SAVEPOINT active_record_1
797
-  (0.0ms) RELEASE SAVEPOINT active_record_1
798
-  (0.0ms) SAVEPOINT active_record_1
799
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
800
-  (0.1ms) ROLLBACK
801
-  (0.1ms) BEGIN
802
- ---------------------------------------------------------------------------
803
- PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
804
- ---------------------------------------------------------------------------
805
-  (0.0ms) SAVEPOINT active_record_1
806
-  (0.0ms) RELEASE SAVEPOINT active_record_1
807
-  (0.0ms) SAVEPOINT active_record_1
808
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
809
-  (0.1ms) ROLLBACK
810
-  (0.1ms) BEGIN
811
- --------------------------------------------------------------------------------------------
812
- AuthenticatedApiControllerTest::authenticated with authorization header: test_0001_anonymous
813
- --------------------------------------------------------------------------------------------
814
-  (0.0ms) SAVEPOINT active_record_1
815
-  (0.0ms) RELEASE SAVEPOINT active_record_1
816
-  (0.1ms) SAVEPOINT active_record_1
817
-  (0.1ms) SAVEPOINT active_record_2
818
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
819
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
820
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
821
-  (0.1ms) RELEASE SAVEPOINT active_record_2
822
- Started GET "/api/nodes" for 127.0.0.1 at 2017-05-06 17:14:58 +0100
823
- Processing by PushType::Api::NodesController#index as JSON
824
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "6e547964-1eac-4870-9e59-919ee7b7cc91"], ["LIMIT", 1]]
825
- Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
826
- PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
827
- Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
828
- Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (3.7ms)
829
- Completed 200 OK in 42ms (Views: 32.4ms | ActiveRecord: 0.5ms)
830
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
831
-  (0.1ms) ROLLBACK
832
-  (0.1ms) BEGIN
833
- ------------------------------------------------------------------------------------------
834
- PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
835
- ------------------------------------------------------------------------------------------
836
-  (0.1ms) SAVEPOINT active_record_1
837
-  (0.0ms) RELEASE SAVEPOINT active_record_1
838
-  (0.0ms) SAVEPOINT active_record_1
839
-  (0.1ms) SAVEPOINT active_record_2
840
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
841
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
842
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
843
-  (0.1ms) RELEASE SAVEPOINT active_record_2
844
- Processing by PushType::Admin::ProfilesController#update as HTML
845
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
846
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "7ba835ce-d240-4a5c-a46b-ddd05d2bf490"], ["LIMIT", 1]]
847
-  (0.1ms) SAVEPOINT active_record_2
848
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-11@example.com"], ["id", "7ba835ce-d240-4a5c-a46b-ddd05d2bf490"], ["LIMIT", 1]]
849
- SQL (0.3ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", 2017-05-06 16:14:58 UTC], ["id", "7ba835ce-d240-4a5c-a46b-ddd05d2bf490"]]
850
-  (0.1ms) RELEASE SAVEPOINT active_record_2
851
- Redirected to http://test.host/admin/profile/edit
852
- Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
853
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
854
-  (0.1ms) ROLLBACK
855
-  (0.1ms) BEGIN
856
- ------------------------------------------------------------------------------------------
857
- PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
858
- ------------------------------------------------------------------------------------------
859
-  (0.1ms) SAVEPOINT active_record_1
860
-  (0.1ms) RELEASE SAVEPOINT active_record_1
861
-  (0.0ms) SAVEPOINT active_record_1
862
-  (0.1ms) SAVEPOINT active_record_2
863
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
864
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
865
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
866
-  (0.1ms) RELEASE SAVEPOINT active_record_2
867
- Processing by PushType::Admin::ProfilesController#update as HTML
868
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
869
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "9a4284c0-914d-4802-be14-7e9a7d7a72a5"], ["LIMIT", 1]]
870
-  (0.1ms) SAVEPOINT active_record_2
871
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-12@example.com"], ["id", "9a4284c0-914d-4802-be14-7e9a7d7a72a5"], ["LIMIT", 1]]
872
- SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", 2017-05-06 16:14:58 UTC], ["id", "9a4284c0-914d-4802-be14-7e9a7d7a72a5"]]
873
-  (0.1ms) RELEASE SAVEPOINT active_record_2
874
- Redirected to http://test.host/admin/profile/edit
875
- Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
876
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "9a4284c0-914d-4802-be14-7e9a7d7a72a5"], ["LIMIT", 1]]
877
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
878
-  (0.1ms) ROLLBACK
879
-  (0.1ms) BEGIN
880
- ------------------------------------------------------------------------------------------
881
- PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
882
- ------------------------------------------------------------------------------------------
883
-  (0.1ms) SAVEPOINT active_record_1
884
-  (0.1ms) RELEASE SAVEPOINT active_record_1
885
-  (0.0ms) SAVEPOINT active_record_1
886
-  (0.1ms) SAVEPOINT active_record_2
887
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
888
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
889
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["created_at", 2017-05-06 16:14:58 UTC], ["updated_at", 2017-05-06 16:14:58 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:58 UTC], ["confirmation_sent_at", 2017-05-06 16:14:58 UTC]]
890
-  (0.1ms) RELEASE SAVEPOINT active_record_2
891
- Processing by PushType::Admin::ProfilesController#update as HTML
892
- Parameters: {"user"=>{"name"=>"Test user ABC"}}
893
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "17fcdbf6-5adc-4a61-8c9c-5f64701e5b69"], ["LIMIT", 1]]
894
-  (0.1ms) SAVEPOINT active_record_2
895
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-13@example.com"], ["id", "17fcdbf6-5adc-4a61-8c9c-5f64701e5b69"], ["LIMIT", 1]]
896
- SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", 2017-05-06 16:14:58 UTC], ["id", "17fcdbf6-5adc-4a61-8c9c-5f64701e5b69"]]
897
-  (0.1ms) RELEASE SAVEPOINT active_record_2
898
- Redirected to http://test.host/admin/profile/edit
899
- Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
900
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
901
-  (0.1ms) ROLLBACK
902
-  (0.1ms) BEGIN
903
- ----------------------------------------------------------------------------
904
- AuthenticatedApiControllerTest::unauthenticated request: test_0001_anonymous
905
- ----------------------------------------------------------------------------
906
-  (0.1ms) SAVEPOINT active_record_1
907
-  (0.1ms) RELEASE SAVEPOINT active_record_1
908
-  (0.0ms) SAVEPOINT active_record_1
909
- Started GET "/api/nodes" for 127.0.0.1 at 2017-05-06 17:14:58 +0100
910
- Processing by PushType::Api::NodesController#index as JSON
911
- Filter chain halted as :authenticate_user! rendered or redirected
912
- Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
913
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
914
-  (0.1ms) ROLLBACK
915
-  (0.1ms) BEGIN
916
- ------------------------------------------------------------------------------------------------------
917
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
918
- ------------------------------------------------------------------------------------------------------
919
-  (0.1ms) SAVEPOINT active_record_1
920
-  (0.1ms) RELEASE SAVEPOINT active_record_1
921
-  (0.1ms) SAVEPOINT active_record_1
922
- Processing by PushType::ConfirmationsController#show as HTML
923
- Parameters: {"confirmation_token"=>"invalid"}
924
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
925
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
926
- PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "4ed679af5abbb025203596f2024145fda7a00bedca713605b0eb185c446fff69"], ["LIMIT", 1]]
927
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
928
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.2ms)
929
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (7.4ms)
930
- Completed 200 OK in 215ms (Views: 18.9ms | ActiveRecord: 0.6ms)
931
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
932
-  (0.1ms) ROLLBACK
933
-  (0.1ms) BEGIN
934
- ------------------------------------------------------------------------------------------------------
935
- PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
936
- ------------------------------------------------------------------------------------------------------
937
-  (0.0ms) SAVEPOINT active_record_1
938
-  (0.0ms) RELEASE SAVEPOINT active_record_1
939
-  (0.1ms) SAVEPOINT active_record_1
940
- Processing by PushType::ConfirmationsController#show as HTML
941
- Parameters: {"confirmation_token"=>"invalid"}
942
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
943
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
944
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "4ed679af5abbb025203596f2024145fda7a00bedca713605b0eb185c446fff69"], ["LIMIT", 1]]
945
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
946
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
947
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.3ms)
948
- Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
949
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
950
-  (0.1ms) ROLLBACK
951
-  (0.1ms) BEGIN
952
- ---------------------------------------------------------------
953
- PushType::AuthenticatableTest::recoverable: test_0001_anonymous
954
- ---------------------------------------------------------------
591
+ ----------------------------------------------------------------------------------------
592
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
593
+ ----------------------------------------------------------------------------------------
955
594
   (0.1ms) SAVEPOINT active_record_1
956
595
   (0.1ms) RELEASE SAVEPOINT active_record_1
957
-  (0.0ms) SAVEPOINT active_record_1
958
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
959
-  (0.1ms) ROLLBACK
960
-  (0.1ms) BEGIN
961
- ------------------------------------------------------------------------------------------
962
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
963
- ------------------------------------------------------------------------------------------
964
-  (0.1ms) SAVEPOINT active_record_1
965
-  (0.0ms) RELEASE SAVEPOINT active_record_1
966
596
   (0.1ms) SAVEPOINT active_record_1
967
597
   (0.1ms) SAVEPOINT active_record_2
968
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
969
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
970
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "KCy1_yrrC1y71ZJTs3y4"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
598
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
599
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-5@example.com"], ["LIMIT", 1]]
600
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "YJgRSDvGWsyQQMsqzKMy"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
971
601
   (0.1ms) RELEASE SAVEPOINT active_record_2
972
602
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
973
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.9ms)
974
- Devise::Mailer#confirmation_instructions: processed outbound mail in 40.1ms
975
- Sent mail to joe-14@example.com (3.7ms)
976
- Date: Sat, 06 May 2017 17:14:59 +0100
603
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
604
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.8ms
605
+ Sent mail to joe-5@example.com (3.7ms)
606
+ Date: Thu, 18 May 2017 19:18:31 +0100
977
607
  From: pushtype@example.com
978
608
  Reply-To: pushtype@example.com
979
- To: joe-14@example.com
980
- Message-ID: <590df6833e02c_6a503fc67743f9b846783@Aarons-iMac.local.mail>
609
+ To: joe-5@example.com
610
+ Message-ID: <591de5773fe8b_161843fe237c339b810104@Aarons-iMac.local.mail>
981
611
  Subject: [PushType] Confirm your account
982
612
  Mime-Version: 1.0
983
613
  Content-Type: multipart/alternative;
984
- boundary="--==_mimepart_590df6833dc16_6a503fc67743f9b846677";
614
+ boundary="--==_mimepart_591de5773f9ba_161843fe237c339b810093a";
985
615
  charset=UTF-8
986
616
  Content-Transfer-Encoding: 7bit
987
617
 
988
618
 
989
- ----==_mimepart_590df6833dc16_6a503fc67743f9b846677
619
+ ----==_mimepart_591de5773f9ba_161843fe237c339b810093a
990
620
  Content-Type: text/plain;
991
621
  charset=UTF-8
992
622
  Content-Transfer-Encoding: 7bit
@@ -1002,12 +632,12 @@ To get started, confirm your account and set your own password by
1002
632
  clicking the link below:
1003
633
 
1004
634
  Confirm my account
1005
- ( http://localhost:3000/admin/confirmation.b9039969-6b55-4bd6-bb80-7a8fac8456b6?confirmation_token=KCy1_yrrC1y71ZJTs3y4 )
635
+ ( http://localhost:3000/admin/confirmation.16217086-8af4-4c20-b0e4-fe2d84fbdce9?confirmation_token=YJgRSDvGWsyQQMsqzKMy )
1006
636
 
1007
637
 
1008
638
  PushType CMS: www.pushtype.org
1009
639
  ( http://www.pushtype.org ).
1010
- ----==_mimepart_590df6833dc16_6a503fc67743f9b846677
640
+ ----==_mimepart_591de5773f9ba_161843fe237c339b810093a
1011
641
  Content-Type: text/html;
1012
642
  charset=UTF-8
1013
643
  Content-Transfer-Encoding: 7bit
@@ -1052,7 +682,7 @@ body {
1052
682
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
1053
683
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1054
684
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1055
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.b9039969-6b55-4bd6-bb80-7a8fac8456b6?confirmation_token=KCy1_yrrC1y71ZJTs3y4" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
685
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.16217086-8af4-4c20-b0e4-fe2d84fbdce9?confirmation_token=YJgRSDvGWsyQQMsqzKMy" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1056
686
  </td>
1057
687
  </tr>
1058
688
  </table>
@@ -1097,48 +727,53 @@ body {
1097
727
  </body>
1098
728
  </html>
1099
729
 
1100
- ----==_mimepart_590df6833dc16_6a503fc67743f9b846677--
730
+ ----==_mimepart_591de5773f9ba_161843fe237c339b810093a--
1101
731
 
1102
732
  Processing by PushType::ConfirmationsController#update as HTML
1103
- Parameters: {"user"=>{"confirmation_token"=>"KCy1_yrrC1y71ZJTs3y4", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1104
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "KCy1_yrrC1y71ZJTs3y4"], ["LIMIT", 1]]
1105
- PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-14@example.com"], ["id", "b9039969-6b55-4bd6-bb80-7a8fac8456b6"], ["LIMIT", 1]]
1106
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1107
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1108
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (5.4ms)
1109
- Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.5ms)
733
+ Parameters: {"user"=>{"confirmation_token"=>"YJgRSDvGWsyQQMsqzKMy", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
734
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "YJgRSDvGWsyQQMsqzKMy"], ["LIMIT", 1]]
735
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-5@example.com"], ["id", "16217086-8af4-4c20-b0e4-fe2d84fbdce9"], ["LIMIT", 1]]
736
+  (0.1ms) SAVEPOINT active_record_2
737
+ SQL (0.2ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$xoIjbcRiZip6LmbTPgFio.6Df2pCieChbeGXtiIuXpgjy8JCupFOC"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["id", "16217086-8af4-4c20-b0e4-fe2d84fbdce9"]]
738
+  (0.1ms) RELEASE SAVEPOINT active_record_2
739
+  (0.1ms) SAVEPOINT active_record_2
740
+ SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2017-05-18 18:18:31 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2017-05-18 18:18:31 UTC], ["last_sign_in_at", 2017-05-18 18:18:31 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "16217086-8af4-4c20-b0e4-fe2d84fbdce9"]]
741
+  (0.1ms) RELEASE SAVEPOINT active_record_2
742
+ Redirected to http://test.host/admin/
743
+ Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
744
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "16217086-8af4-4c20-b0e4-fe2d84fbdce9"], ["LIMIT", 1]]
1110
745
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1111
746
   (0.1ms) ROLLBACK
1112
747
   (0.1ms) BEGIN
1113
- ------------------------------------------------------------------------------------------
1114
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
1115
- ------------------------------------------------------------------------------------------
748
+ ----------------------------------------------------------------------------------------
749
+ PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
750
+ ----------------------------------------------------------------------------------------
1116
751
   (0.1ms) SAVEPOINT active_record_1
1117
-  (0.0ms) RELEASE SAVEPOINT active_record_1
752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1118
753
   (0.0ms) SAVEPOINT active_record_1
1119
754
   (0.1ms) SAVEPOINT active_record_2
1120
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1121
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1122
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "dTj9xneim2aYtxwrsHpW"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
755
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
756
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-6@example.com"], ["LIMIT", 1]]
757
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "cXcbS1icqYjRK_x7wryk"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1123
758
   (0.1ms) RELEASE SAVEPOINT active_record_2
1124
759
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1125
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
1126
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
1127
- Sent mail to joe-15@example.com (3.7ms)
1128
- Date: Sat, 06 May 2017 17:14:59 +0100
760
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
761
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
762
+ Sent mail to joe-6@example.com (3.6ms)
763
+ Date: Thu, 18 May 2017 19:18:31 +0100
1129
764
  From: pushtype@example.com
1130
765
  Reply-To: pushtype@example.com
1131
- To: joe-15@example.com
1132
- Message-ID: <590df6834bc9a_6a503fc67743f9b8470e6@Aarons-iMac.local.mail>
766
+ To: joe-6@example.com
767
+ Message-ID: <591de5774cd2b_161843fe237c339b810132b@Aarons-iMac.local.mail>
1133
768
  Subject: [PushType] Confirm your account
1134
769
  Mime-Version: 1.0
1135
770
  Content-Type: multipart/alternative;
1136
- boundary="--==_mimepart_590df6834b82a_6a503fc67743f9b8469fd";
771
+ boundary="--==_mimepart_591de5774c870_161843fe237c339b81012b9";
1137
772
  charset=UTF-8
1138
773
  Content-Transfer-Encoding: 7bit
1139
774
 
1140
775
 
1141
- ----==_mimepart_590df6834b82a_6a503fc67743f9b8469fd
776
+ ----==_mimepart_591de5774c870_161843fe237c339b81012b9
1142
777
  Content-Type: text/plain;
1143
778
  charset=UTF-8
1144
779
  Content-Transfer-Encoding: 7bit
@@ -1154,12 +789,12 @@ To get started, confirm your account and set your own password by
1154
789
  clicking the link below:
1155
790
 
1156
791
  Confirm my account
1157
- ( http://localhost:3000/admin/confirmation.3e5b5c56-746c-46b4-9de8-04452a281374?confirmation_token=dTj9xneim2aYtxwrsHpW )
792
+ ( http://localhost:3000/admin/confirmation.1836571a-c51f-434d-acbb-ff814b2eb002?confirmation_token=cXcbS1icqYjRK_x7wryk )
1158
793
 
1159
794
 
1160
795
  PushType CMS: www.pushtype.org
1161
796
  ( http://www.pushtype.org ).
1162
- ----==_mimepart_590df6834b82a_6a503fc67743f9b8469fd
797
+ ----==_mimepart_591de5774c870_161843fe237c339b81012b9
1163
798
  Content-Type: text/html;
1164
799
  charset=UTF-8
1165
800
  Content-Transfer-Encoding: 7bit
@@ -1204,7 +839,7 @@ body {
1204
839
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
1205
840
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1206
841
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1207
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.3e5b5c56-746c-46b4-9de8-04452a281374?confirmation_token=dTj9xneim2aYtxwrsHpW" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
842
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.1836571a-c51f-434d-acbb-ff814b2eb002?confirmation_token=cXcbS1icqYjRK_x7wryk" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1208
843
  </td>
1209
844
  </tr>
1210
845
  </table>
@@ -1249,48 +884,97 @@ body {
1249
884
  </body>
1250
885
  </html>
1251
886
 
1252
- ----==_mimepart_590df6834b82a_6a503fc67743f9b8469fd--
887
+ ----==_mimepart_591de5774c870_161843fe237c339b81012b9--
1253
888
 
1254
889
  Processing by PushType::ConfirmationsController#update as HTML
1255
- Parameters: {"user"=>{"confirmation_token"=>"dTj9xneim2aYtxwrsHpW", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1256
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "dTj9xneim2aYtxwrsHpW"], ["LIMIT", 1]]
1257
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-15@example.com"], ["id", "3e5b5c56-746c-46b4-9de8-04452a281374"], ["LIMIT", 1]]
1258
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1259
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1260
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.6ms)
1261
- Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.5ms)
890
+ Parameters: {"user"=>{"confirmation_token"=>"cXcbS1icqYjRK_x7wryk", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
891
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "cXcbS1icqYjRK_x7wryk"], ["LIMIT", 1]]
892
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-6@example.com"], ["id", "1836571a-c51f-434d-acbb-ff814b2eb002"], ["LIMIT", 1]]
893
+  (0.1ms) SAVEPOINT active_record_2
894
+ SQL (0.2ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$LWpMT/1GRhypX.nSyZlS.etCviBlwSTe1Q8T5ImgLbZhcy74MDnmK"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["id", "1836571a-c51f-434d-acbb-ff814b2eb002"]]
895
+  (0.1ms) RELEASE SAVEPOINT active_record_2
896
+  (0.1ms) SAVEPOINT active_record_2
897
+ SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2017-05-18 18:18:31 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2017-05-18 18:18:31 UTC], ["last_sign_in_at", 2017-05-18 18:18:31 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "1836571a-c51f-434d-acbb-ff814b2eb002"]]
898
+  (0.1ms) RELEASE SAVEPOINT active_record_2
899
+ Redirected to http://test.host/admin/
900
+ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
1262
901
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1263
902
   (0.1ms) ROLLBACK
1264
903
   (0.1ms) BEGIN
1265
- ------------------------------------------------------------------------------------------
1266
- PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
1267
- ------------------------------------------------------------------------------------------
904
+ ---------------------------------------------------------------------------
905
+ PushType::AuthenticatableTest::database_athenticatable: test_0001_anonymous
906
+ ---------------------------------------------------------------------------
907
+  (0.0ms) SAVEPOINT active_record_1
908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
909
+  (0.0ms) SAVEPOINT active_record_1
910
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
911
+  (0.1ms) ROLLBACK
912
+  (0.1ms) BEGIN
913
+ ---------------------------------------------------------------------------
914
+ PushType::AuthenticatableTest::database_athenticatable: test_0002_anonymous
915
+ ---------------------------------------------------------------------------
916
+  (0.0ms) SAVEPOINT active_record_1
917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1268
918
   (0.1ms) SAVEPOINT active_record_1
1269
-  (0.1ms) RELEASE SAVEPOINT active_record_1
919
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
920
+  (0.1ms) ROLLBACK
921
+  (0.0ms) BEGIN
922
+ -------------------------------------------------------------
923
+ PushType::AuthenticatableTest::trackable: test_0001_anonymous
924
+ -------------------------------------------------------------
925
+  (0.0ms) SAVEPOINT active_record_1
926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
927
+  (0.0ms) SAVEPOINT active_record_1
928
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
929
+  (0.0ms) ROLLBACK
930
+  (0.0ms) BEGIN
931
+ --------------------------------------------------------
932
+ PushType::AuthenticationMethodsTest: test_0001_anonymous
933
+ --------------------------------------------------------
934
+  (0.1ms) SAVEPOINT active_record_1
935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
936
+  (0.0ms) SAVEPOINT active_record_1
937
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
938
+  (0.0ms) ROLLBACK
939
+  (0.0ms) BEGIN
940
+ --------------------------------------------------------
941
+ PushType::AuthenticationMethodsTest: test_0002_anonymous
942
+ --------------------------------------------------------
943
+  (0.0ms) SAVEPOINT active_record_1
944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
945
+  (0.0ms) SAVEPOINT active_record_1
946
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
947
+  (0.0ms) ROLLBACK
948
+  (0.0ms) BEGIN
949
+ --------------------------------------------------------------------------------------------------------------
950
+ PushType::AuthenticatableTest::#password_required?::with existing user and dirty password: test_0001_anonymous
951
+ --------------------------------------------------------------------------------------------------------------
952
+  (0.0ms) SAVEPOINT active_record_1
953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1270
954
   (0.0ms) SAVEPOINT active_record_1
1271
955
   (0.1ms) SAVEPOINT active_record_2
1272
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-16@example.com"], ["LIMIT", 1]]
1273
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-16@example.com"], ["LIMIT", 1]]
1274
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "RXPyweb1VC4rFKys5ih5"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
956
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
957
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-7@example.com"], ["LIMIT", 1]]
958
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "y9W5MJgpfSYNdDguK2F_"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1275
959
   (0.1ms) RELEASE SAVEPOINT active_record_2
1276
960
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1277
961
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1278
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.5ms
1279
- Sent mail to joe-16@example.com (3.7ms)
1280
- Date: Sat, 06 May 2017 17:14:59 +0100
962
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
963
+ Sent mail to joe-7@example.com (3.4ms)
964
+ Date: Thu, 18 May 2017 19:18:31 +0100
1281
965
  From: pushtype@example.com
1282
966
  Reply-To: pushtype@example.com
1283
- To: joe-16@example.com
1284
- Message-ID: <590df683587ed_6a503fc67743f9b84733a@Aarons-iMac.local.mail>
967
+ To: joe-7@example.com
968
+ Message-ID: <591de5775b187_161843fe237c339b8101674@Aarons-iMac.local.mail>
1285
969
  Subject: [PushType] Confirm your account
1286
970
  Mime-Version: 1.0
1287
971
  Content-Type: multipart/alternative;
1288
- boundary="--==_mimepart_590df683582e5_6a503fc67743f9b847242";
972
+ boundary="--==_mimepart_591de5775ad6b_161843fe237c339b81015a6";
1289
973
  charset=UTF-8
1290
974
  Content-Transfer-Encoding: 7bit
1291
975
 
1292
976
 
1293
- ----==_mimepart_590df683582e5_6a503fc67743f9b847242
977
+ ----==_mimepart_591de5775ad6b_161843fe237c339b81015a6
1294
978
  Content-Type: text/plain;
1295
979
  charset=UTF-8
1296
980
  Content-Transfer-Encoding: 7bit
@@ -1306,12 +990,12 @@ To get started, confirm your account and set your own password by
1306
990
  clicking the link below:
1307
991
 
1308
992
  Confirm my account
1309
- ( http://localhost:3000/admin/confirmation.84274c80-7af0-43b7-adcc-29997573c7f9?confirmation_token=RXPyweb1VC4rFKys5ih5 )
993
+ ( http://localhost:3000/admin/confirmation.4447b05e-7a3d-497e-bbe8-0683572796b5?confirmation_token=y9W5MJgpfSYNdDguK2F_ )
1310
994
 
1311
995
 
1312
996
  PushType CMS: www.pushtype.org
1313
997
  ( http://www.pushtype.org ).
1314
- ----==_mimepart_590df683582e5_6a503fc67743f9b847242
998
+ ----==_mimepart_591de5775ad6b_161843fe237c339b81015a6
1315
999
  Content-Type: text/html;
1316
1000
  charset=UTF-8
1317
1001
  Content-Transfer-Encoding: 7bit
@@ -1356,7 +1040,7 @@ body {
1356
1040
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
1357
1041
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1358
1042
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1359
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.84274c80-7af0-43b7-adcc-29997573c7f9?confirmation_token=RXPyweb1VC4rFKys5ih5" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1043
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.4447b05e-7a3d-497e-bbe8-0683572796b5?confirmation_token=y9W5MJgpfSYNdDguK2F_" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1360
1044
  </td>
1361
1045
  </tr>
1362
1046
  </table>
@@ -1401,71 +1085,298 @@ body {
1401
1085
  </body>
1402
1086
  </html>
1403
1087
 
1404
- ----==_mimepart_590df683582e5_6a503fc67743f9b847242--
1088
+ ----==_mimepart_591de5775ad6b_161843fe237c339b81015a6--
1405
1089
 
1406
- Processing by PushType::ConfirmationsController#update as HTML
1407
- Parameters: {"user"=>{"confirmation_token"=>"RXPyweb1VC4rFKys5ih5", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
1408
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "RXPyweb1VC4rFKys5ih5"], ["LIMIT", 1]]
1409
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-16@example.com"], ["id", "84274c80-7af0-43b7-adcc-29997573c7f9"], ["LIMIT", 1]]
1410
- Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
1411
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
1412
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.7ms)
1413
- Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)
1090
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1091
+  (0.2ms) ROLLBACK
1092
+  (0.1ms) BEGIN
1093
+ ---------------------------------------------------------------
1094
+ PushType::AuthenticatableTest::recoverable: test_0001_anonymous
1095
+ ---------------------------------------------------------------
1096
+  (0.1ms) SAVEPOINT active_record_1
1097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.0ms) SAVEPOINT active_record_1
1099
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1100
+  (0.1ms) ROLLBACK
1101
+  (0.1ms) BEGIN
1102
+ -----------------------------------------------------------------------
1103
+ PushType::Admin::ProfilesControllerTest::GET #edit: test_0001_anonymous
1104
+ -----------------------------------------------------------------------
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1107
+  (0.1ms) SAVEPOINT active_record_1
1108
+  (0.1ms) SAVEPOINT active_record_2
1109
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
1110
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-8@example.com"], ["LIMIT", 1]]
1111
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1112
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1113
+ Processing by PushType::Admin::ProfilesController#edit as HTML
1114
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "0ceedd89-fe3a-444f-a36b-366ac4407812"], ["LIMIT", 1]]
1115
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
1116
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (11.3ms)
1117
+ Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 0.2ms)
1118
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1119
+  (0.1ms) ROLLBACK
1120
+  (0.1ms) BEGIN
1121
+ -----------------------------------------------------------------------
1122
+ PushType::Admin::ProfilesControllerTest::GET #edit: test_0002_anonymous
1123
+ -----------------------------------------------------------------------
1124
+  (0.1ms) SAVEPOINT active_record_1
1125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1126
+  (0.1ms) SAVEPOINT active_record_1
1127
+  (0.1ms) SAVEPOINT active_record_2
1128
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1129
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-9@example.com"], ["LIMIT", 1]]
1130
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1131
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1132
+ Processing by PushType::Admin::ProfilesController#edit as HTML
1133
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "9e8a0904-8ee9-470c-b541-dcd5ce34d308"], ["LIMIT", 1]]
1134
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
1135
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (1.9ms)
1136
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.2ms)
1137
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1138
+  (0.2ms) ROLLBACK
1139
+  (0.1ms) BEGIN
1140
+ -----------------------------------------------------------------------------------
1141
+ AuthenticatedApiControllerTest::authenticated with token param: test_0001_anonymous
1142
+ -----------------------------------------------------------------------------------
1143
+  (0.1ms) SAVEPOINT active_record_1
1144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1145
+  (0.0ms) SAVEPOINT active_record_1
1146
+  (0.1ms) SAVEPOINT active_record_2
1147
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1148
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-10@example.com"], ["LIMIT", 1]]
1149
+ SQL (0.3ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1150
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1151
+ Started GET "/api/nodes?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0OTUyMTc5MTEsInN1YiI6ImM0ODViYmI4LTQ1OWMtNDIwMS1iODg5LWIxZjc4MmFiMGM0NCJ9.jQpkbpPgOgUPxalS4IodqJ0DN3IAHUsB4e1oYdZEIAM" for 127.0.0.1 at 2017-05-18 19:18:31 +0100
1152
+ Processing by PushType::Api::NodesController#index as JSON
1153
+ Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0OTUyMTc5MTEsInN1YiI6ImM0ODViYmI4LTQ1OWMtNDIwMS1iODg5LWIxZjc4MmFiMGM0NCJ9.jQpkbpPgOgUPxalS4IodqJ0DN3IAHUsB4e1oYdZEIAM"}
1154
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "c485bbb8-459c-4201-b889-b1f782ab0c44"], ["LIMIT", 1]]
1155
+ Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
1156
+ PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1157
+ Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
1158
+ Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (8.1ms)
1159
+ Completed 200 OK in 52ms (Views: 40.8ms | ActiveRecord: 0.7ms)
1160
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1161
+  (0.1ms) ROLLBACK
1162
+  (0.1ms) BEGIN
1163
+ --------------------------------------------------------------------------------------
1164
+ PushType::AuthenticatableTest::#password_required?::with new user: test_0001_anonymous
1165
+ --------------------------------------------------------------------------------------
1166
+  (0.1ms) SAVEPOINT active_record_1
1167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1168
+  (0.1ms) SAVEPOINT active_record_1
1169
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1170
+  (0.1ms) ROLLBACK
1171
+  (0.0ms) BEGIN
1172
+ ------------------------------------------------------------------------------------------
1173
+ PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0001_anonymous
1174
+ ------------------------------------------------------------------------------------------
1175
+  (0.0ms) SAVEPOINT active_record_1
1176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1177
+  (0.0ms) SAVEPOINT active_record_1
1178
+  (0.1ms) SAVEPOINT active_record_2
1179
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1180
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-11@example.com"], ["LIMIT", 1]]
1181
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1182
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1183
+ Processing by PushType::Admin::ProfilesController#update as HTML
1184
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
1185
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "d093b066-78bc-4e17-bea3-b51bcdb94a07"], ["LIMIT", 1]]
1186
+  (0.1ms) SAVEPOINT active_record_2
1187
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-11@example.com"], ["id", "d093b066-78bc-4e17-bea3-b51bcdb94a07"], ["LIMIT", 1]]
1188
+ SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", 2017-05-18 18:18:31 UTC], ["id", "d093b066-78bc-4e17-bea3-b51bcdb94a07"]]
1189
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1190
+ Redirected to http://test.host/admin/profile/edit
1191
+ Completed 302 Found in 6ms (ActiveRecord: 0.9ms)
1192
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "d093b066-78bc-4e17-bea3-b51bcdb94a07"], ["LIMIT", 1]]
1193
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1194
+  (0.1ms) ROLLBACK
1195
+  (0.1ms) BEGIN
1196
+ ------------------------------------------------------------------------------------------
1197
+ PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0002_anonymous
1198
+ ------------------------------------------------------------------------------------------
1199
+  (0.1ms) SAVEPOINT active_record_1
1200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1201
+  (0.1ms) SAVEPOINT active_record_1
1202
+  (0.1ms) SAVEPOINT active_record_2
1203
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1204
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-12@example.com"], ["LIMIT", 1]]
1205
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1206
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1207
+ Processing by PushType::Admin::ProfilesController#update as HTML
1208
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
1209
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "c50e461e-a906-4948-bfe1-cf17410be655"], ["LIMIT", 1]]
1210
+  (0.1ms) SAVEPOINT active_record_2
1211
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-12@example.com"], ["id", "c50e461e-a906-4948-bfe1-cf17410be655"], ["LIMIT", 1]]
1212
+ SQL (0.3ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", 2017-05-18 18:18:31 UTC], ["id", "c50e461e-a906-4948-bfe1-cf17410be655"]]
1213
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1214
+ Redirected to http://test.host/admin/profile/edit
1215
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1216
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1217
+  (0.1ms) ROLLBACK
1218
+  (0.1ms) BEGIN
1219
+ ------------------------------------------------------------------------------------------
1220
+ PushType::Admin::ProfilesControllerTest::PUT #update::with valid user: test_0003_anonymous
1221
+ ------------------------------------------------------------------------------------------
1222
+  (0.1ms) SAVEPOINT active_record_1
1223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1224
+  (0.0ms) SAVEPOINT active_record_1
1225
+  (0.1ms) SAVEPOINT active_record_2
1226
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
1227
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-13@example.com"], ["LIMIT", 1]]
1228
+ SQL (0.3ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1229
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1230
+ Processing by PushType::Admin::ProfilesController#update as HTML
1231
+ Parameters: {"user"=>{"name"=>"Test user ABC"}}
1232
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "1c0c582a-58eb-4ba6-9c59-87ad796b2595"], ["LIMIT", 1]]
1233
+  (0.1ms) SAVEPOINT active_record_2
1234
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-13@example.com"], ["id", "1c0c582a-58eb-4ba6-9c59-87ad796b2595"], ["LIMIT", 1]]
1235
+ SQL (0.2ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Test user ABC"], ["updated_at", 2017-05-18 18:18:31 UTC], ["id", "1c0c582a-58eb-4ba6-9c59-87ad796b2595"]]
1236
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1237
+ Redirected to http://test.host/admin/profile/edit
1238
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1414
1239
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1415
1240
   (0.1ms) ROLLBACK
1416
1241
   (0.1ms) BEGIN
1417
- ---------------------------------------------------------------
1418
- PushType::AuthenticatableTest::validatable: test_0001_anonymous
1419
- ---------------------------------------------------------------
1242
+ --------------------------------------------------------------------------------------------
1243
+ AuthenticatedApiControllerTest::authenticated with authorization header: test_0001_anonymous
1244
+ --------------------------------------------------------------------------------------------
1420
1245
   (0.0ms) SAVEPOINT active_record_1
1421
1246
   (0.0ms) RELEASE SAVEPOINT active_record_1
1422
1247
   (0.0ms) SAVEPOINT active_record_1
1248
+  (0.1ms) SAVEPOINT active_record_2
1249
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
1250
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-14@example.com"], ["LIMIT", 1]]
1251
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1252
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1253
+ Started GET "/api/nodes" for 127.0.0.1 at 2017-05-18 19:18:31 +0100
1254
+ Processing by PushType::Api::NodesController#index as JSON
1255
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "e9a576ec-e89b-402a-8740-cc6525fe2101"], ["LIMIT", 1]]
1256
+ Rendering /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder
1257
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT $1 OFFSET $2 [["LIMIT", 30], ["OFFSET", 0]]
1258
+ Rendered collection of /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/shared/_pagination.json.jbuilder [0 times] (0.0ms)
1259
+ Rendered /Users/aaron/dev/pushcode/push_type/api/app/views/push_type/api/nodes/index.json.jbuilder (3.9ms)
1260
+ Completed 200 OK in 44ms (Views: 34.4ms | ActiveRecord: 0.6ms)
1423
1261
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1424
-  (0.0ms) ROLLBACK
1262
+  (0.1ms) ROLLBACK
1425
1263
   (0.1ms) BEGIN
1426
- ---------------------------------------------------------------
1427
- PushType::AuthenticatableTest::validatable: test_0002_anonymous
1428
- ---------------------------------------------------------------
1264
+ --------------------------------------------------------------------------------------------
1265
+ PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0002_anonymous
1266
+ --------------------------------------------------------------------------------------------
1267
+  (0.0ms) SAVEPOINT active_record_1
1268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1269
+  (0.0ms) SAVEPOINT active_record_1
1270
+  (0.1ms) SAVEPOINT active_record_2
1271
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1272
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-15@example.com"], ["LIMIT", 1]]
1273
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1274
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1275
+ Processing by PushType::Admin::ProfilesController#update as HTML
1276
+ Parameters: {"user"=>{"name"=>""}}
1277
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "3974c4df-5072-4822-b22d-42d31f62627a"], ["LIMIT", 1]]
1278
+  (0.1ms) SAVEPOINT active_record_2
1279
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-15@example.com"], ["id", "3974c4df-5072-4822-b22d-42d31f62627a"], ["LIMIT", 1]]
1280
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1281
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
1282
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (8.6ms)
1283
+ Completed 200 OK in 27ms (Views: 22.7ms | ActiveRecord: 0.6ms)
1284
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1285
+  (0.1ms) ROLLBACK
1286
+  (0.1ms) BEGIN
1287
+ --------------------------------------------------------------------------------------------
1288
+ PushType::Admin::ProfilesControllerTest::PUT #update::with invalid user: test_0001_anonymous
1289
+ --------------------------------------------------------------------------------------------
1290
+  (0.1ms) SAVEPOINT active_record_1
1291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1292
+  (0.1ms) SAVEPOINT active_record_1
1293
+  (0.1ms) SAVEPOINT active_record_2
1294
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-16@example.com"], ["LIMIT", 1]]
1295
+ PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-16@example.com"], ["LIMIT", 1]]
1296
+ SQL (0.3ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1297
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1298
+ Processing by PushType::Admin::ProfilesController#update as HTML
1299
+ Parameters: {"user"=>{"name"=>""}}
1300
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "12157558-7ed9-4a3a-8980-214aa53e1307"], ["LIMIT", 1]]
1301
+  (0.1ms) SAVEPOINT active_record_2
1302
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-16@example.com"], ["id", "12157558-7ed9-4a3a-8980-214aa53e1307"], ["LIMIT", 1]]
1303
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1304
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin
1305
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/admin/profiles/edit.html.haml within layouts/push_type/admin (1.8ms)
1306
+ Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.5ms)
1307
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1308
+  (0.1ms) ROLLBACK
1309
+  (0.1ms) BEGIN
1310
+ -----------------------------------------------------------
1311
+ PushType::ApiAuthenticationMethodsTest: test_0003_anonymous
1312
+ -----------------------------------------------------------
1313
+  (0.1ms) SAVEPOINT active_record_1
1314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1315
+  (0.1ms) SAVEPOINT active_record_1
1316
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1317
+  (0.1ms) ROLLBACK
1318
+  (0.1ms) BEGIN
1319
+ -----------------------------------------------------------
1320
+ PushType::ApiAuthenticationMethodsTest: test_0004_anonymous
1321
+ -----------------------------------------------------------
1322
+  (0.1ms) SAVEPOINT active_record_1
1323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1324
+  (0.0ms) SAVEPOINT active_record_1
1325
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1326
+  (0.1ms) ROLLBACK
1327
+  (0.1ms) BEGIN
1328
+ -----------------------------------------------------------
1329
+ PushType::ApiAuthenticationMethodsTest: test_0001_anonymous
1330
+ -----------------------------------------------------------
1429
1331
   (0.1ms) SAVEPOINT active_record_1
1430
1332
   (0.0ms) RELEASE SAVEPOINT active_record_1
1431
1333
   (0.0ms) SAVEPOINT active_record_1
1432
1334
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1433
1335
   (0.1ms) ROLLBACK
1434
1336
   (0.1ms) BEGIN
1337
+ -----------------------------------------------------------
1338
+ PushType::ApiAuthenticationMethodsTest: test_0002_anonymous
1339
+ -----------------------------------------------------------
1340
+  (0.0ms) SAVEPOINT active_record_1
1341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1342
+  (0.0ms) SAVEPOINT active_record_1
1343
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1344
+  (0.0ms) ROLLBACK
1345
+  (0.1ms) BEGIN
1435
1346
  ----------------------------------------------------------------------
1436
1347
  PushType::Admin::UsersControllerTest::PUT #invite: test_0001_anonymous
1437
1348
  ----------------------------------------------------------------------
1438
1349
   (0.1ms) SAVEPOINT active_record_1
1439
1350
   (0.0ms) RELEASE SAVEPOINT active_record_1
1440
-  (0.1ms) SAVEPOINT active_record_1
1351
+  (0.0ms) SAVEPOINT active_record_1
1441
1352
   (0.1ms) SAVEPOINT active_record_2
1442
1353
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-17@example.com"], ["LIMIT", 1]]
1443
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-17@example.com"], ["LIMIT", 1]]
1444
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:59 UTC], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
1354
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-17@example.com"], ["LIMIT", 1]]
1355
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1445
1356
   (0.1ms) RELEASE SAVEPOINT active_record_2
1446
1357
   (0.1ms) SAVEPOINT active_record_2
1447
1358
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-18@example.com"], ["LIMIT", 1]]
1448
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-18@example.com"], ["LIMIT", 1]]
1449
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "4hnxb6V-B8RoNShb5ord"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
1359
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-18@example.com"], ["LIMIT", 1]]
1360
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Rs-zbfnCLipEK1yXn2Sa"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1450
1361
   (0.1ms) RELEASE SAVEPOINT active_record_2
1451
1362
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1452
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1453
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
1454
- Sent mail to joe-18@example.com (13.2ms)
1455
- Date: Sat, 06 May 2017 17:14:59 +0100
1363
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.8ms)
1364
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 39.7ms
1365
+ Sent mail to joe-18@example.com (3.3ms)
1366
+ Date: Thu, 18 May 2017 19:18:31 +0100
1456
1367
  From: pushtype@example.com
1457
1368
  Reply-To: pushtype@example.com
1458
1369
  To: joe-18@example.com
1459
- Message-ID: <590df68366515_6a503fc67743f9b847620@Aarons-iMac.local.mail>
1370
+ Message-ID: <591de577b1f0a_161843fe237c339b81019df@Aarons-iMac.local.mail>
1460
1371
  Subject: [PushType] Confirm your account
1461
1372
  Mime-Version: 1.0
1462
1373
  Content-Type: multipart/alternative;
1463
- boundary="--==_mimepart_590df683660ee_6a503fc67743f9b8475d9";
1374
+ boundary="--==_mimepart_591de577b1aff_161843fe237c339b810188";
1464
1375
  charset=UTF-8
1465
1376
  Content-Transfer-Encoding: 7bit
1466
1377
 
1467
1378
 
1468
- ----==_mimepart_590df683660ee_6a503fc67743f9b8475d9
1379
+ ----==_mimepart_591de577b1aff_161843fe237c339b810188
1469
1380
  Content-Type: text/plain;
1470
1381
  charset=UTF-8
1471
1382
  Content-Transfer-Encoding: 7bit
@@ -1481,12 +1392,12 @@ To get started, confirm your account and set your own password by
1481
1392
  clicking the link below:
1482
1393
 
1483
1394
  Confirm my account
1484
- ( http://localhost:3000/admin/confirmation.1d704792-c2a0-4e8e-bf41-cd0117bb3276?confirmation_token=4hnxb6V-B8RoNShb5ord )
1395
+ ( http://localhost:3000/admin/confirmation.356c3f1c-8a2c-46cc-95c2-a56ced40a72b?confirmation_token=Rs-zbfnCLipEK1yXn2Sa )
1485
1396
 
1486
1397
 
1487
1398
  PushType CMS: www.pushtype.org
1488
1399
  ( http://www.pushtype.org ).
1489
- ----==_mimepart_590df683660ee_6a503fc67743f9b8475d9
1400
+ ----==_mimepart_591de577b1aff_161843fe237c339b810188
1490
1401
  Content-Type: text/html;
1491
1402
  charset=UTF-8
1492
1403
  Content-Transfer-Encoding: 7bit
@@ -1531,7 +1442,7 @@ body {
1531
1442
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
1532
1443
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1533
1444
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1534
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.1d704792-c2a0-4e8e-bf41-cd0117bb3276?confirmation_token=4hnxb6V-B8RoNShb5ord" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1445
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.356c3f1c-8a2c-46cc-95c2-a56ced40a72b?confirmation_token=Rs-zbfnCLipEK1yXn2Sa" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1535
1446
  </td>
1536
1447
  </tr>
1537
1448
  </table>
@@ -1576,32 +1487,32 @@ body {
1576
1487
  </body>
1577
1488
  </html>
1578
1489
 
1579
- ----==_mimepart_590df683660ee_6a503fc67743f9b8475d9--
1490
+ ----==_mimepart_591de577b1aff_161843fe237c339b810188--
1580
1491
 
1581
1492
  Processing by PushType::Admin::UsersController#invite as HTML
1582
- Parameters: {"id"=>"1d704792-c2a0-4e8e-bf41-cd0117bb3276"}
1583
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "25e59c70-144b-4d9d-8dc9-71ed29e05b02"], ["LIMIT", 1]]
1584
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "1d704792-c2a0-4e8e-bf41-cd0117bb3276"], ["LIMIT", 1]]
1493
+ Parameters: {"id"=>"356c3f1c-8a2c-46cc-95c2-a56ced40a72b"}
1494
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "67721768-a4b3-45f5-88c6-ee1caa0d55e5"], ["LIMIT", 1]]
1495
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "356c3f1c-8a2c-46cc-95c2-a56ced40a72b"], ["LIMIT", 1]]
1585
1496
   (0.1ms) SAVEPOINT active_record_2
1586
1497
   (0.1ms) RELEASE SAVEPOINT active_record_2
1587
1498
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1588
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
1499
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1589
1500
  Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
1590
- Sent mail to joe-18@example.com (3.3ms)
1591
- Date: Sat, 06 May 2017 17:14:59 +0100
1501
+ Sent mail to joe-18@example.com (3.4ms)
1502
+ Date: Thu, 18 May 2017 19:18:31 +0100
1592
1503
  From: pushtype@example.com
1593
1504
  Reply-To: pushtype@example.com
1594
1505
  To: joe-18@example.com
1595
- Message-ID: <590df68372063_6a503fc67743f9b8479c3@Aarons-iMac.local.mail>
1506
+ Message-ID: <591de577bba10_161843fe237c339b810221d@Aarons-iMac.local.mail>
1596
1507
  Subject: [PushType] Confirm your account
1597
1508
  Mime-Version: 1.0
1598
1509
  Content-Type: multipart/alternative;
1599
- boundary="--==_mimepart_590df68371c66_6a503fc67743f9b84789";
1510
+ boundary="--==_mimepart_591de577bb60a_161843fe237c339b8102131";
1600
1511
  charset=UTF-8
1601
1512
  Content-Transfer-Encoding: 7bit
1602
1513
 
1603
1514
 
1604
- ----==_mimepart_590df68371c66_6a503fc67743f9b84789
1515
+ ----==_mimepart_591de577bb60a_161843fe237c339b8102131
1605
1516
  Content-Type: text/plain;
1606
1517
  charset=UTF-8
1607
1518
  Content-Transfer-Encoding: 7bit
@@ -1617,12 +1528,12 @@ To get started, confirm your account and set your own password by
1617
1528
  clicking the link below:
1618
1529
 
1619
1530
  Confirm my account
1620
- ( http://localhost:3000/admin/confirmation.1d704792-c2a0-4e8e-bf41-cd0117bb3276?confirmation_token=4hnxb6V-B8RoNShb5ord )
1531
+ ( http://localhost:3000/admin/confirmation.356c3f1c-8a2c-46cc-95c2-a56ced40a72b?confirmation_token=Rs-zbfnCLipEK1yXn2Sa )
1621
1532
 
1622
1533
 
1623
1534
  PushType CMS: www.pushtype.org
1624
1535
  ( http://www.pushtype.org ).
1625
- ----==_mimepart_590df68371c66_6a503fc67743f9b84789
1536
+ ----==_mimepart_591de577bb60a_161843fe237c339b8102131
1626
1537
  Content-Type: text/html;
1627
1538
  charset=UTF-8
1628
1539
  Content-Transfer-Encoding: 7bit
@@ -1667,7 +1578,7 @@ body {
1667
1578
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
1668
1579
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1669
1580
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1670
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.1d704792-c2a0-4e8e-bf41-cd0117bb3276?confirmation_token=4hnxb6V-B8RoNShb5ord" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1581
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.356c3f1c-8a2c-46cc-95c2-a56ced40a72b?confirmation_token=Rs-zbfnCLipEK1yXn2Sa" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1671
1582
  </td>
1672
1583
  </tr>
1673
1584
  </table>
@@ -1712,10 +1623,10 @@ body {
1712
1623
  </body>
1713
1624
  </html>
1714
1625
 
1715
- ----==_mimepart_590df68371c66_6a503fc67743f9b84789--
1626
+ ----==_mimepart_591de577bb60a_161843fe237c339b8102131--
1716
1627
 
1717
1628
  Redirected to http://test.host/push_type/users
1718
- Completed 302 Found in 37ms (ActiveRecord: 0.4ms)
1629
+ Completed 302 Found in 39ms (ActiveRecord: 0.5ms)
1719
1630
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1720
1631
   (0.2ms) ROLLBACK
1721
1632
   (0.1ms) BEGIN
@@ -1723,36 +1634,36 @@ Completed 302 Found in 37ms (ActiveRecord: 0.4ms)
1723
1634
  PushType::Admin::UsersControllerTest::PUT #invite: test_0002_anonymous
1724
1635
  ----------------------------------------------------------------------
1725
1636
   (0.1ms) SAVEPOINT active_record_1
1726
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1727
-  (0.1ms) SAVEPOINT active_record_1
1637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1638
+  (0.0ms) SAVEPOINT active_record_1
1728
1639
   (0.1ms) SAVEPOINT active_record_2
1729
1640
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-19@example.com"], ["LIMIT", 1]]
1730
1641
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-19@example.com"], ["LIMIT", 1]]
1731
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:59 UTC], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
1642
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1732
1643
   (0.1ms) RELEASE SAVEPOINT active_record_2
1733
1644
   (0.1ms) SAVEPOINT active_record_2
1734
1645
  PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-20@example.com"], ["LIMIT", 1]]
1735
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-20@example.com"], ["LIMIT", 1]]
1736
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "iKceUUsJ-EFvuHzkMJkS"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
1646
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-20@example.com"], ["LIMIT", 1]]
1647
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "hBjy_nzwuaGugS2xFAbZ"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
1737
1648
   (0.1ms) RELEASE SAVEPOINT active_record_2
1738
1649
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1739
1650
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1740
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
1741
- Sent mail to joe-20@example.com (3.5ms)
1742
- Date: Sat, 06 May 2017 17:14:59 +0100
1651
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
1652
+ Sent mail to joe-20@example.com (3.3ms)
1653
+ Date: Thu, 18 May 2017 19:18:31 +0100
1743
1654
  From: pushtype@example.com
1744
1655
  Reply-To: pushtype@example.com
1745
1656
  To: joe-20@example.com
1746
- Message-ID: <590df6837ea1c_6a503fc67743f9b8482f@Aarons-iMac.local.mail>
1657
+ Message-ID: <591de577c5a9f_161843fe237c339b810252@Aarons-iMac.local.mail>
1747
1658
  Subject: [PushType] Confirm your account
1748
1659
  Mime-Version: 1.0
1749
1660
  Content-Type: multipart/alternative;
1750
- boundary="--==_mimepart_590df6837e5f8_6a503fc67743f9b848158";
1661
+ boundary="--==_mimepart_591de577c5678_161843fe237c339b81024f0";
1751
1662
  charset=UTF-8
1752
1663
  Content-Transfer-Encoding: 7bit
1753
1664
 
1754
1665
 
1755
- ----==_mimepart_590df6837e5f8_6a503fc67743f9b848158
1666
+ ----==_mimepart_591de577c5678_161843fe237c339b81024f0
1756
1667
  Content-Type: text/plain;
1757
1668
  charset=UTF-8
1758
1669
  Content-Transfer-Encoding: 7bit
@@ -1768,12 +1679,12 @@ To get started, confirm your account and set your own password by
1768
1679
  clicking the link below:
1769
1680
 
1770
1681
  Confirm my account
1771
- ( http://localhost:3000/admin/confirmation.1a2fe48b-2cc8-4394-97e8-d5b35d3dd33b?confirmation_token=iKceUUsJ-EFvuHzkMJkS )
1682
+ ( http://localhost:3000/admin/confirmation.9da0f8be-8992-42af-99e1-53d5978ee757?confirmation_token=hBjy_nzwuaGugS2xFAbZ )
1772
1683
 
1773
1684
 
1774
1685
  PushType CMS: www.pushtype.org
1775
1686
  ( http://www.pushtype.org ).
1776
- ----==_mimepart_590df6837e5f8_6a503fc67743f9b848158
1687
+ ----==_mimepart_591de577c5678_161843fe237c339b81024f0
1777
1688
  Content-Type: text/html;
1778
1689
  charset=UTF-8
1779
1690
  Content-Transfer-Encoding: 7bit
@@ -1818,7 +1729,7 @@ body {
1818
1729
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
1819
1730
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1820
1731
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1821
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.1a2fe48b-2cc8-4394-97e8-d5b35d3dd33b?confirmation_token=iKceUUsJ-EFvuHzkMJkS" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1732
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.9da0f8be-8992-42af-99e1-53d5978ee757?confirmation_token=hBjy_nzwuaGugS2xFAbZ" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1822
1733
  </td>
1823
1734
  </tr>
1824
1735
  </table>
@@ -1863,32 +1774,32 @@ body {
1863
1774
  </body>
1864
1775
  </html>
1865
1776
 
1866
- ----==_mimepart_590df6837e5f8_6a503fc67743f9b848158--
1777
+ ----==_mimepart_591de577c5678_161843fe237c339b81024f0--
1867
1778
 
1868
1779
  Processing by PushType::Admin::UsersController#invite as HTML
1869
- Parameters: {"id"=>"1a2fe48b-2cc8-4394-97e8-d5b35d3dd33b"}
1870
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "ae0b7670-4bc0-4064-928e-4af2c46397cb"], ["LIMIT", 1]]
1871
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "1a2fe48b-2cc8-4394-97e8-d5b35d3dd33b"], ["LIMIT", 1]]
1780
+ Parameters: {"id"=>"9da0f8be-8992-42af-99e1-53d5978ee757"}
1781
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "d29308c6-7d78-4829-9f52-e773079b8709"], ["LIMIT", 1]]
1782
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "9da0f8be-8992-42af-99e1-53d5978ee757"], ["LIMIT", 1]]
1872
1783
   (0.1ms) SAVEPOINT active_record_2
1873
1784
   (0.1ms) RELEASE SAVEPOINT active_record_2
1874
1785
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
1875
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.4ms)
1876
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
1877
- Sent mail to joe-20@example.com (4.0ms)
1878
- Date: Sat, 06 May 2017 17:14:59 +0100
1786
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
1787
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
1788
+ Sent mail to joe-20@example.com (3.7ms)
1789
+ Date: Thu, 18 May 2017 19:18:31 +0100
1879
1790
  From: pushtype@example.com
1880
1791
  Reply-To: pushtype@example.com
1881
1792
  To: joe-20@example.com
1882
- Message-ID: <590df68389493_6a503fc67743f9b848511@Aarons-iMac.local.mail>
1793
+ Message-ID: <591de577ce694_161843fe237c339b8102850@Aarons-iMac.local.mail>
1883
1794
  Subject: [PushType] Confirm your account
1884
1795
  Mime-Version: 1.0
1885
1796
  Content-Type: multipart/alternative;
1886
- boundary="--==_mimepart_590df68388ffb_6a503fc67743f9b84847c";
1797
+ boundary="--==_mimepart_591de577ce233_161843fe237c339b810271c";
1887
1798
  charset=UTF-8
1888
1799
  Content-Transfer-Encoding: 7bit
1889
1800
 
1890
1801
 
1891
- ----==_mimepart_590df68388ffb_6a503fc67743f9b84847c
1802
+ ----==_mimepart_591de577ce233_161843fe237c339b810271c
1892
1803
  Content-Type: text/plain;
1893
1804
  charset=UTF-8
1894
1805
  Content-Transfer-Encoding: 7bit
@@ -1904,12 +1815,12 @@ To get started, confirm your account and set your own password by
1904
1815
  clicking the link below:
1905
1816
 
1906
1817
  Confirm my account
1907
- ( http://localhost:3000/admin/confirmation.1a2fe48b-2cc8-4394-97e8-d5b35d3dd33b?confirmation_token=iKceUUsJ-EFvuHzkMJkS )
1818
+ ( http://localhost:3000/admin/confirmation.9da0f8be-8992-42af-99e1-53d5978ee757?confirmation_token=hBjy_nzwuaGugS2xFAbZ )
1908
1819
 
1909
1820
 
1910
1821
  PushType CMS: www.pushtype.org
1911
1822
  ( http://www.pushtype.org ).
1912
- ----==_mimepart_590df68388ffb_6a503fc67743f9b84847c
1823
+ ----==_mimepart_591de577ce233_161843fe237c339b810271c
1913
1824
  Content-Type: text/html;
1914
1825
  charset=UTF-8
1915
1826
  Content-Transfer-Encoding: 7bit
@@ -1954,7 +1865,7 @@ body {
1954
1865
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
1955
1866
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
1956
1867
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
1957
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.1a2fe48b-2cc8-4394-97e8-d5b35d3dd33b?confirmation_token=iKceUUsJ-EFvuHzkMJkS" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1868
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.9da0f8be-8992-42af-99e1-53d5978ee757?confirmation_token=hBjy_nzwuaGugS2xFAbZ" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
1958
1869
  </td>
1959
1870
  </tr>
1960
1871
  </table>
@@ -1999,10 +1910,10 @@ body {
1999
1910
  </body>
2000
1911
  </html>
2001
1912
 
2002
- ----==_mimepart_590df68388ffb_6a503fc67743f9b84847c--
1913
+ ----==_mimepart_591de577ce233_161843fe237c339b810271c--
2003
1914
 
2004
1915
  Redirected to http://test.host/push_type/users
2005
- Completed 302 Found in 44ms (ActiveRecord: 0.5ms)
1916
+ Completed 302 Found in 36ms (ActiveRecord: 0.4ms)
2006
1917
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2007
1918
   (0.1ms) ROLLBACK
2008
1919
   (0.1ms) BEGIN
@@ -2014,32 +1925,32 @@ PushType::Admin::UsersControllerTest::PUT #invite: test_0003_anonymous
2014
1925
   (0.0ms) SAVEPOINT active_record_1
2015
1926
   (0.1ms) SAVEPOINT active_record_2
2016
1927
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2017
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
2018
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-06 16:14:59 UTC], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
1928
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-21@example.com"], ["LIMIT", 1]]
1929
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmed_at", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "Generated account"], ["confirmed_at", 2017-05-18 18:18:31 UTC], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
2019
1930
   (0.1ms) RELEASE SAVEPOINT active_record_2
2020
1931
   (0.1ms) SAVEPOINT active_record_2
2021
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2022
- PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
2023
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "NxTgzrh-bz632Q8QBzSq"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
1932
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
1933
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-22@example.com"], ["LIMIT", 1]]
1934
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "UJbUvJhe8sRxxLst4y4m"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
2024
1935
   (0.1ms) RELEASE SAVEPOINT active_record_2
2025
1936
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2026
1937
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2027
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
2028
- Sent mail to joe-22@example.com (3.7ms)
2029
- Date: Sat, 06 May 2017 17:14:59 +0100
1938
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
1939
+ Sent mail to joe-22@example.com (3.3ms)
1940
+ Date: Thu, 18 May 2017 19:18:31 +0100
2030
1941
  From: pushtype@example.com
2031
1942
  Reply-To: pushtype@example.com
2032
1943
  To: joe-22@example.com
2033
- Message-ID: <590df68394c1c_6a503fc67743f9b8488c4@Aarons-iMac.local.mail>
1944
+ Message-ID: <591de577d8c4f_161843fe237c339b8103178@Aarons-iMac.local.mail>
2034
1945
  Subject: [PushType] Confirm your account
2035
1946
  Mime-Version: 1.0
2036
1947
  Content-Type: multipart/alternative;
2037
- boundary="--==_mimepart_590df68394768_6a503fc67743f9b848719";
1948
+ boundary="--==_mimepart_591de577d883f_161843fe237c339b810305c";
2038
1949
  charset=UTF-8
2039
1950
  Content-Transfer-Encoding: 7bit
2040
1951
 
2041
1952
 
2042
- ----==_mimepart_590df68394768_6a503fc67743f9b848719
1953
+ ----==_mimepart_591de577d883f_161843fe237c339b810305c
2043
1954
  Content-Type: text/plain;
2044
1955
  charset=UTF-8
2045
1956
  Content-Transfer-Encoding: 7bit
@@ -2055,12 +1966,12 @@ To get started, confirm your account and set your own password by
2055
1966
  clicking the link below:
2056
1967
 
2057
1968
  Confirm my account
2058
- ( http://localhost:3000/admin/confirmation.556cdbd3-83d8-436b-88d9-e7b98978db0a?confirmation_token=NxTgzrh-bz632Q8QBzSq )
1969
+ ( http://localhost:3000/admin/confirmation.d7c03379-da8a-4e40-bed6-a81694f72249?confirmation_token=UJbUvJhe8sRxxLst4y4m )
2059
1970
 
2060
1971
 
2061
1972
  PushType CMS: www.pushtype.org
2062
1973
  ( http://www.pushtype.org ).
2063
- ----==_mimepart_590df68394768_6a503fc67743f9b848719
1974
+ ----==_mimepart_591de577d883f_161843fe237c339b810305c
2064
1975
  Content-Type: text/html;
2065
1976
  charset=UTF-8
2066
1977
  Content-Transfer-Encoding: 7bit
@@ -2105,7 +2016,7 @@ body {
2105
2016
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
2106
2017
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2107
2018
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2108
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.556cdbd3-83d8-436b-88d9-e7b98978db0a?confirmation_token=NxTgzrh-bz632Q8QBzSq" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2019
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.d7c03379-da8a-4e40-bed6-a81694f72249?confirmation_token=UJbUvJhe8sRxxLst4y4m" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2109
2020
  </td>
2110
2021
  </tr>
2111
2022
  </table>
@@ -2150,32 +2061,32 @@ body {
2150
2061
  </body>
2151
2062
  </html>
2152
2063
 
2153
- ----==_mimepart_590df68394768_6a503fc67743f9b848719--
2064
+ ----==_mimepart_591de577d883f_161843fe237c339b810305c--
2154
2065
 
2155
2066
  Processing by PushType::Admin::UsersController#invite as HTML
2156
- Parameters: {"id"=>"556cdbd3-83d8-436b-88d9-e7b98978db0a"}
2157
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "612f480f-707d-4505-acaa-de439ec89c29"], ["LIMIT", 1]]
2158
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "556cdbd3-83d8-436b-88d9-e7b98978db0a"], ["LIMIT", 1]]
2067
+ Parameters: {"id"=>"d7c03379-da8a-4e40-bed6-a81694f72249"}
2068
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "0f27b865-4454-488f-8a65-95adfb6cd83f"], ["LIMIT", 1]]
2069
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["id", "d7c03379-da8a-4e40-bed6-a81694f72249"], ["LIMIT", 1]]
2159
2070
   (0.1ms) SAVEPOINT active_record_2
2160
2071
   (0.1ms) RELEASE SAVEPOINT active_record_2
2161
2072
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2162
2073
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2163
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
2164
- Sent mail to joe-22@example.com (3.6ms)
2165
- Date: Sat, 06 May 2017 17:14:59 +0100
2074
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 3.0ms
2075
+ Sent mail to joe-22@example.com (4.0ms)
2076
+ Date: Thu, 18 May 2017 19:18:31 +0100
2166
2077
  From: pushtype@example.com
2167
2078
  Reply-To: pushtype@example.com
2168
2079
  To: joe-22@example.com
2169
- Message-ID: <590df6839efb1_6a503fc67743f9b849198@Aarons-iMac.local.mail>
2080
+ Message-ID: <591de577e227f_161843fe237c339b810347e@Aarons-iMac.local.mail>
2170
2081
  Subject: [PushType] Confirm your account
2171
2082
  Mime-Version: 1.0
2172
2083
  Content-Type: multipart/alternative;
2173
- boundary="--==_mimepart_590df6839eaf7_6a503fc67743f9b84908a";
2084
+ boundary="--==_mimepart_591de577e1e43_161843fe237c339b810337";
2174
2085
  charset=UTF-8
2175
2086
  Content-Transfer-Encoding: 7bit
2176
2087
 
2177
2088
 
2178
- ----==_mimepart_590df6839eaf7_6a503fc67743f9b84908a
2089
+ ----==_mimepart_591de577e1e43_161843fe237c339b810337
2179
2090
  Content-Type: text/plain;
2180
2091
  charset=UTF-8
2181
2092
  Content-Transfer-Encoding: 7bit
@@ -2191,12 +2102,12 @@ To get started, confirm your account and set your own password by
2191
2102
  clicking the link below:
2192
2103
 
2193
2104
  Confirm my account
2194
- ( http://localhost:3000/admin/confirmation.556cdbd3-83d8-436b-88d9-e7b98978db0a?confirmation_token=NxTgzrh-bz632Q8QBzSq )
2105
+ ( http://localhost:3000/admin/confirmation.d7c03379-da8a-4e40-bed6-a81694f72249?confirmation_token=UJbUvJhe8sRxxLst4y4m )
2195
2106
 
2196
2107
 
2197
2108
  PushType CMS: www.pushtype.org
2198
2109
  ( http://www.pushtype.org ).
2199
- ----==_mimepart_590df6839eaf7_6a503fc67743f9b84908a
2110
+ ----==_mimepart_591de577e1e43_161843fe237c339b810337
2200
2111
  Content-Type: text/html;
2201
2112
  charset=UTF-8
2202
2113
  Content-Transfer-Encoding: 7bit
@@ -2241,7 +2152,7 @@ body {
2241
2152
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
2242
2153
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2243
2154
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2244
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.556cdbd3-83d8-436b-88d9-e7b98978db0a?confirmation_token=NxTgzrh-bz632Q8QBzSq" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2155
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.d7c03379-da8a-4e40-bed6-a81694f72249?confirmation_token=UJbUvJhe8sRxxLst4y4m" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2245
2156
  </td>
2246
2157
  </tr>
2247
2158
  </table>
@@ -2286,42 +2197,42 @@ body {
2286
2197
  </body>
2287
2198
  </html>
2288
2199
 
2289
- ----==_mimepart_590df6839eaf7_6a503fc67743f9b84908a--
2200
+ ----==_mimepart_591de577e1e43_161843fe237c339b810337--
2290
2201
 
2291
2202
  Redirected to http://test.host/push_type/users
2292
- Completed 302 Found in 41ms (ActiveRecord: 0.5ms)
2203
+ Completed 302 Found in 39ms (ActiveRecord: 0.5ms)
2293
2204
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2294
2205
   (0.1ms) ROLLBACK
2295
-  (0.1ms) BEGIN
2296
- --------------------------------------------------------------------------------------------------------------
2297
- PushType::AuthenticatableTest::#password_required?::with existing user and clean password: test_0001_anonymous
2298
- --------------------------------------------------------------------------------------------------------------
2299
-  (0.1ms) SAVEPOINT active_record_1
2300
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2206
+  (0.0ms) BEGIN
2207
+ ------------------------------------------------------------------------------------------
2208
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0002_anonymous
2209
+ ------------------------------------------------------------------------------------------
2210
+  (0.0ms) SAVEPOINT active_record_1
2211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2301
2212
   (0.0ms) SAVEPOINT active_record_1
2302
2213
   (0.1ms) SAVEPOINT active_record_2
2303
2214
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-23@example.com"], ["LIMIT", 1]]
2304
2215
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-23@example.com"], ["LIMIT", 1]]
2305
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-23@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "FTw33B933cX1M1wsQa-b"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
2216
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-23@example.com"], ["created_at", 2017-05-18 18:18:31 UTC], ["updated_at", 2017-05-18 18:18:31 UTC], ["confirmation_token", "RcmevTvLn8-Zd9ERSoTG"], ["confirmation_sent_at", 2017-05-18 18:18:31 UTC]]
2306
2217
   (0.1ms) RELEASE SAVEPOINT active_record_2
2307
2218
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2308
2219
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2309
- Devise::Mailer#confirmation_instructions: processed outbound mail in 3.8ms
2310
- Sent mail to joe-23@example.com (3.6ms)
2311
- Date: Sat, 06 May 2017 17:14:59 +0100
2220
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.5ms
2221
+ Sent mail to joe-23@example.com (4.3ms)
2222
+ Date: Thu, 18 May 2017 19:18:31 +0100
2312
2223
  From: pushtype@example.com
2313
2224
  Reply-To: pushtype@example.com
2314
2225
  To: joe-23@example.com
2315
- Message-ID: <590df683aa5a5_6a503fc67743f9b84941f@Aarons-iMac.local.mail>
2226
+ Message-ID: <591de577f1088_161843fe237c339b8103741@Aarons-iMac.local.mail>
2316
2227
  Subject: [PushType] Confirm your account
2317
2228
  Mime-Version: 1.0
2318
2229
  Content-Type: multipart/alternative;
2319
- boundary="--==_mimepart_590df683aa0f1_6a503fc67743f9b8493cf";
2230
+ boundary="--==_mimepart_591de577f0a9d_161843fe237c339b810364";
2320
2231
  charset=UTF-8
2321
2232
  Content-Transfer-Encoding: 7bit
2322
2233
 
2323
2234
 
2324
- ----==_mimepart_590df683aa0f1_6a503fc67743f9b8493cf
2235
+ ----==_mimepart_591de577f0a9d_161843fe237c339b810364
2325
2236
  Content-Type: text/plain;
2326
2237
  charset=UTF-8
2327
2238
  Content-Transfer-Encoding: 7bit
@@ -2337,12 +2248,12 @@ To get started, confirm your account and set your own password by
2337
2248
  clicking the link below:
2338
2249
 
2339
2250
  Confirm my account
2340
- ( http://localhost:3000/admin/confirmation.67658820-b374-4a97-bcc0-28efd9a4918b?confirmation_token=FTw33B933cX1M1wsQa-b )
2251
+ ( http://localhost:3000/admin/confirmation.bad539f4-16cb-460c-9b91-7bfe0c754969?confirmation_token=RcmevTvLn8-Zd9ERSoTG )
2341
2252
 
2342
2253
 
2343
2254
  PushType CMS: www.pushtype.org
2344
2255
  ( http://www.pushtype.org ).
2345
- ----==_mimepart_590df683aa0f1_6a503fc67743f9b8493cf
2256
+ ----==_mimepart_591de577f0a9d_161843fe237c339b810364
2346
2257
  Content-Type: text/html;
2347
2258
  charset=UTF-8
2348
2259
  Content-Transfer-Encoding: 7bit
@@ -2387,7 +2298,7 @@ body {
2387
2298
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
2388
2299
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2389
2300
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2390
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.67658820-b374-4a97-bcc0-28efd9a4918b?confirmation_token=FTw33B933cX1M1wsQa-b" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2301
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.bad539f4-16cb-460c-9b91-7bfe0c754969?confirmation_token=RcmevTvLn8-Zd9ERSoTG" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2391
2302
  </td>
2392
2303
  </tr>
2393
2304
  </table>
@@ -2432,49 +2343,48 @@ body {
2432
2343
  </body>
2433
2344
  </html>
2434
2345
 
2435
- ----==_mimepart_590df683aa0f1_6a503fc67743f9b8493cf--
2346
+ ----==_mimepart_591de577f0a9d_161843fe237c339b810364--
2436
2347
 
2348
+ Processing by PushType::ConfirmationsController#update as HTML
2349
+ Parameters: {"user"=>{"confirmation_token"=>"RcmevTvLn8-Zd9ERSoTG", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2350
+ PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "RcmevTvLn8-Zd9ERSoTG"], ["LIMIT", 1]]
2351
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-23@example.com"], ["id", "bad539f4-16cb-460c-9b91-7bfe0c754969"], ["LIMIT", 1]]
2352
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2353
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (1.4ms)
2354
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (9.9ms)
2355
+ Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.5ms)
2437
2356
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2438
2357
   (0.1ms) ROLLBACK
2439
2358
   (0.1ms) BEGIN
2440
- -------------------------------------------------------------
2441
- PushType::AuthenticatableTest::trackable: test_0001_anonymous
2442
- -------------------------------------------------------------
2359
+ ------------------------------------------------------------------------------------------
2360
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0003_anonymous
2361
+ ------------------------------------------------------------------------------------------
2443
2362
   (0.1ms) SAVEPOINT active_record_1
2444
2363
   (0.1ms) RELEASE SAVEPOINT active_record_1
2445
2364
   (0.0ms) SAVEPOINT active_record_1
2446
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2447
-  (0.1ms) ROLLBACK
2448
-  (0.0ms) BEGIN
2449
- ----------------------------------------------------------------------------------------
2450
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0001_anonymous
2451
- ----------------------------------------------------------------------------------------
2452
-  (0.0ms) SAVEPOINT active_record_1
2453
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2454
-  (0.0ms) SAVEPOINT active_record_1
2455
2365
   (0.1ms) SAVEPOINT active_record_2
2456
2366
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-24@example.com"], ["LIMIT", 1]]
2457
2367
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-24@example.com"], ["LIMIT", 1]]
2458
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-24@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "ty98AhjH_fZawJrutqPw"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
2368
+ SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-24@example.com"], ["created_at", 2017-05-18 18:18:32 UTC], ["updated_at", 2017-05-18 18:18:32 UTC], ["confirmation_token", "f_XmzT6yyU9FpF8yo1AG"], ["confirmation_sent_at", 2017-05-18 18:18:32 UTC]]
2459
2369
   (0.1ms) RELEASE SAVEPOINT active_record_2
2460
2370
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2461
2371
  Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2462
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.7ms
2463
- Sent mail to joe-24@example.com (3.6ms)
2464
- Date: Sat, 06 May 2017 17:14:59 +0100
2372
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 2.9ms
2373
+ Sent mail to joe-24@example.com (4.5ms)
2374
+ Date: Thu, 18 May 2017 19:18:32 +0100
2465
2375
  From: pushtype@example.com
2466
2376
  Reply-To: pushtype@example.com
2467
2377
  To: joe-24@example.com
2468
- Message-ID: <590df683b5664_6a503fc67743f9b8497f4@Aarons-iMac.local.mail>
2378
+ Message-ID: <591de578fb1e_161843fe237c339b81040a7@Aarons-iMac.local.mail>
2469
2379
  Subject: [PushType] Confirm your account
2470
2380
  Mime-Version: 1.0
2471
2381
  Content-Type: multipart/alternative;
2472
- boundary="--==_mimepart_590df683b51cb_6a503fc67743f9b8496e9";
2382
+ boundary="--==_mimepart_591de578f56c_161843fe237c339b81039aa";
2473
2383
  charset=UTF-8
2474
2384
  Content-Transfer-Encoding: 7bit
2475
2385
 
2476
2386
 
2477
- ----==_mimepart_590df683b51cb_6a503fc67743f9b8496e9
2387
+ ----==_mimepart_591de578f56c_161843fe237c339b81039aa
2478
2388
  Content-Type: text/plain;
2479
2389
  charset=UTF-8
2480
2390
  Content-Transfer-Encoding: 7bit
@@ -2490,12 +2400,12 @@ To get started, confirm your account and set your own password by
2490
2400
  clicking the link below:
2491
2401
 
2492
2402
  Confirm my account
2493
- ( http://localhost:3000/admin/confirmation.49c976d1-800b-47b4-9ce4-b4ebba17d1a5?confirmation_token=ty98AhjH_fZawJrutqPw )
2403
+ ( http://localhost:3000/admin/confirmation.475ade60-9800-47d2-bf37-7e775239edf2?confirmation_token=f_XmzT6yyU9FpF8yo1AG )
2494
2404
 
2495
2405
 
2496
2406
  PushType CMS: www.pushtype.org
2497
2407
  ( http://www.pushtype.org ).
2498
- ----==_mimepart_590df683b51cb_6a503fc67743f9b8496e9
2408
+ ----==_mimepart_591de578f56c_161843fe237c339b81039aa
2499
2409
  Content-Type: text/html;
2500
2410
  charset=UTF-8
2501
2411
  Content-Transfer-Encoding: 7bit
@@ -2540,7 +2450,7 @@ body {
2540
2450
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
2541
2451
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2542
2452
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2543
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.49c976d1-800b-47b4-9ce4-b4ebba17d1a5?confirmation_token=ty98AhjH_fZawJrutqPw" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2453
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.475ade60-9800-47d2-bf37-7e775239edf2?confirmation_token=f_XmzT6yyU9FpF8yo1AG" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2544
2454
  </td>
2545
2455
  </tr>
2546
2456
  </table>
@@ -2585,53 +2495,48 @@ body {
2585
2495
  </body>
2586
2496
  </html>
2587
2497
 
2588
- ----==_mimepart_590df683b51cb_6a503fc67743f9b8496e9--
2498
+ ----==_mimepart_591de578f56c_161843fe237c339b81039aa--
2589
2499
 
2590
2500
  Processing by PushType::ConfirmationsController#update as HTML
2591
- Parameters: {"user"=>{"confirmation_token"=>"ty98AhjH_fZawJrutqPw", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2592
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "ty98AhjH_fZawJrutqPw"], ["LIMIT", 1]]
2593
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-24@example.com"], ["id", "49c976d1-800b-47b4-9ce4-b4ebba17d1a5"], ["LIMIT", 1]]
2594
-  (0.1ms) SAVEPOINT active_record_2
2595
- SQL (0.2ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$WiNjY95WC4uGxaEG8v.fWewFhhCAH0TNSFJ9XHty4MCUxwOXP.pPi"], ["confirmed_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["id", "49c976d1-800b-47b4-9ce4-b4ebba17d1a5"]]
2596
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2597
-  (0.1ms) SAVEPOINT active_record_2
2598
- SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2017-05-06 16:14:59 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2017-05-06 16:14:59 UTC], ["last_sign_in_at", 2017-05-06 16:14:59 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "49c976d1-800b-47b4-9ce4-b4ebba17d1a5"]]
2599
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2600
- Redirected to http://test.host/admin/
2601
- Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
2602
- PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT $2 [["id", "49c976d1-800b-47b4-9ce4-b4ebba17d1a5"], ["LIMIT", 1]]
2501
+ Parameters: {"user"=>{"confirmation_token"=>"f_XmzT6yyU9FpF8yo1AG", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2502
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "f_XmzT6yyU9FpF8yo1AG"], ["LIMIT", 1]]
2503
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-24@example.com"], ["id", "475ade60-9800-47d2-bf37-7e775239edf2"], ["LIMIT", 1]]
2504
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2505
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.4ms)
2506
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.9ms)
2507
+ Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.4ms)
2603
2508
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2604
2509
   (0.1ms) ROLLBACK
2605
2510
   (0.1ms) BEGIN
2606
- ----------------------------------------------------------------------------------------
2607
- PushType::ConfirmationsControllerTest::PUT #update::with valid user: test_0002_anonymous
2608
- ----------------------------------------------------------------------------------------
2609
-  (0.0ms) SAVEPOINT active_record_1
2610
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2511
+ ------------------------------------------------------------------------------------------
2512
+ PushType::ConfirmationsControllerTest::PUT #update::with invalid user: test_0001_anonymous
2513
+ ------------------------------------------------------------------------------------------
2514
+  (0.1ms) SAVEPOINT active_record_1
2515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2611
2516
   (0.0ms) SAVEPOINT active_record_1
2612
2517
   (0.1ms) SAVEPOINT active_record_2
2518
+ PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-25@example.com"], ["LIMIT", 1]]
2613
2519
  PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-25@example.com"], ["LIMIT", 1]]
2614
- PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-25@example.com"], ["LIMIT", 1]]
2615
- SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-25@example.com"], ["created_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["confirmation_token", "zxXjE29ga2SYvyHjHmAU"], ["confirmation_sent_at", 2017-05-06 16:14:59 UTC]]
2520
+ SQL (0.3ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-25@example.com"], ["created_at", 2017-05-18 18:18:32 UTC], ["updated_at", 2017-05-18 18:18:32 UTC], ["confirmation_token", "MMEZxksZu4XnV-sFD9TJ"], ["confirmation_sent_at", 2017-05-18 18:18:32 UTC]]
2616
2521
   (0.1ms) RELEASE SAVEPOINT active_record_2
2617
2522
  Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email
2618
- Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.3ms)
2619
- Devise::Mailer#confirmation_instructions: processed outbound mail in 2.6ms
2620
- Sent mail to joe-25@example.com (3.6ms)
2621
- Date: Sat, 06 May 2017 17:14:59 +0100
2523
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/mailer/confirmation_instructions.html.erb within layouts/push_type/email (0.6ms)
2524
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 4.0ms
2525
+ Sent mail to joe-25@example.com (4.6ms)
2526
+ Date: Thu, 18 May 2017 19:18:32 +0100
2622
2527
  From: pushtype@example.com
2623
2528
  Reply-To: pushtype@example.com
2624
2529
  To: joe-25@example.com
2625
- Message-ID: <590df683c140f_6a503fc67743f9b850025@Aarons-iMac.local.mail>
2530
+ Message-ID: <591de5781f04b_161843fe237c339b810435a@Aarons-iMac.local.mail>
2626
2531
  Subject: [PushType] Confirm your account
2627
2532
  Mime-Version: 1.0
2628
2533
  Content-Type: multipart/alternative;
2629
- boundary="--==_mimepart_590df683c0f53_6a503fc67743f9b8499cc";
2534
+ boundary="--==_mimepart_591de5781e97a_161843fe237c339b810421e";
2630
2535
  charset=UTF-8
2631
2536
  Content-Transfer-Encoding: 7bit
2632
2537
 
2633
2538
 
2634
- ----==_mimepart_590df683c0f53_6a503fc67743f9b8499cc
2539
+ ----==_mimepart_591de5781e97a_161843fe237c339b810421e
2635
2540
  Content-Type: text/plain;
2636
2541
  charset=UTF-8
2637
2542
  Content-Transfer-Encoding: 7bit
@@ -2647,12 +2552,12 @@ To get started, confirm your account and set your own password by
2647
2552
  clicking the link below:
2648
2553
 
2649
2554
  Confirm my account
2650
- ( http://localhost:3000/admin/confirmation.110d6d07-ccb8-4374-b733-cfe614068ae3?confirmation_token=zxXjE29ga2SYvyHjHmAU )
2555
+ ( http://localhost:3000/admin/confirmation.804578d5-8494-4196-ad36-32cdff6563c6?confirmation_token=MMEZxksZu4XnV-sFD9TJ )
2651
2556
 
2652
2557
 
2653
2558
  PushType CMS: www.pushtype.org
2654
2559
  ( http://www.pushtype.org ).
2655
- ----==_mimepart_590df683c0f53_6a503fc67743f9b8499cc
2560
+ ----==_mimepart_591de5781e97a_161843fe237c339b810421e
2656
2561
  Content-Type: text/html;
2657
2562
  charset=UTF-8
2658
2563
  Content-Transfer-Encoding: 7bit
@@ -2697,7 +2602,7 @@ body {
2697
2602
  <table style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; width: 100%; margin: 0; padding: 0;">
2698
2603
  <tr style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
2699
2604
  <td class="padding" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 10px 0;">
2700
- <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.110d6d07-ccb8-4374-b733-cfe614068ae3?confirmation_token=zxXjE29ga2SYvyHjHmAU" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2605
+ <p style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6; font-weight: normal; margin: 0 0 10px; padding: 0;"><a class="btn-primary" href="http://localhost:3000/admin/confirmation.804578d5-8494-4196-ad36-32cdff6563c6?confirmation_token=MMEZxksZu4XnV-sFD9TJ" style="font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif; margin: 0 10px 0 0; padding: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px; font-size: 100%; line-height: 2; color: #FFF; text-decoration: none; background-color: #348eda; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px;">Confirm my account</a></p>
2701
2606
  </td>
2702
2607
  </tr>
2703
2608
  </table>
@@ -2742,19 +2647,114 @@ body {
2742
2647
  </body>
2743
2648
  </html>
2744
2649
 
2745
- ----==_mimepart_590df683c0f53_6a503fc67743f9b8499cc--
2650
+ ----==_mimepart_591de5781e97a_161843fe237c339b810421e--
2746
2651
 
2747
2652
  Processing by PushType::ConfirmationsController#update as HTML
2748
- Parameters: {"user"=>{"confirmation_token"=>"zxXjE29ga2SYvyHjHmAU", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2749
- PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "zxXjE29ga2SYvyHjHmAU"], ["LIMIT", 1]]
2750
- PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-25@example.com"], ["id", "110d6d07-ccb8-4374-b733-cfe614068ae3"], ["LIMIT", 1]]
2751
-  (0.1ms) SAVEPOINT active_record_2
2752
- SQL (0.2ms) UPDATE "push_type_users" SET "encrypted_password" = $1, "confirmed_at" = $2, "updated_at" = $3 WHERE "push_type_users"."id" = $4 [["encrypted_password", "$2a$04$2z.GLMCA.KoQcdXH1yQyxOs1CVRzfYqAc7aVlQEyym0QjvLVICoYm"], ["confirmed_at", 2017-05-06 16:14:59 UTC], ["updated_at", 2017-05-06 16:14:59 UTC], ["id", "110d6d07-ccb8-4374-b733-cfe614068ae3"]]
2753
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2754
-  (0.1ms) SAVEPOINT active_record_2
2755
- SQL (0.2ms) UPDATE "push_type_users" SET "updated_at" = $1, "sign_in_count" = $2, "current_sign_in_at" = $3, "last_sign_in_at" = $4, "current_sign_in_ip" = $5, "last_sign_in_ip" = $6 WHERE "push_type_users"."id" = $7 [["updated_at", 2017-05-06 16:14:59 UTC], ["sign_in_count", 1], ["current_sign_in_at", 2017-05-06 16:14:59 UTC], ["last_sign_in_at", 2017-05-06 16:14:59 UTC], ["current_sign_in_ip", "0.0.0.0"], ["last_sign_in_ip", "0.0.0.0"], ["id", "110d6d07-ccb8-4374-b733-cfe614068ae3"]]
2756
-  (0.1ms) RELEASE SAVEPOINT active_record_2
2757
- Redirected to http://test.host/admin/
2758
- Completed 302 Found in 8ms (ActiveRecord: 1.3ms)
2653
+ Parameters: {"user"=>{"confirmation_token"=>"MMEZxksZu4XnV-sFD9TJ", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
2654
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "MMEZxksZu4XnV-sFD9TJ"], ["LIMIT", 1]]
2655
+ PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 AND ("push_type_users"."id" != $2) LIMIT $3 [["email", "joe-25@example.com"], ["id", "804578d5-8494-4196-ad36-32cdff6563c6"], ["LIMIT", 1]]
2656
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth
2657
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.4ms)
2658
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/show.html.haml within layouts/push_type/auth (1.8ms)
2659
+ Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.4ms)
2660
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2661
+  (0.1ms) ROLLBACK
2662
+  (0.1ms) BEGIN
2663
+ ----------------------------------------------------
2664
+ PushType::InvitationMethodsTest: test_0001_anonymous
2665
+ ----------------------------------------------------
2666
+  (0.1ms) SAVEPOINT active_record_1
2667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2668
+  (0.1ms) SAVEPOINT active_record_1
2669
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2670
+  (0.1ms) ROLLBACK
2671
+  (0.1ms) BEGIN
2672
+ ------------------------------------------------------------------------------------------------------
2673
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0002_anonymous
2674
+ ------------------------------------------------------------------------------------------------------
2675
+  (0.1ms) SAVEPOINT active_record_1
2676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2677
+  (0.1ms) SAVEPOINT active_record_1
2678
+ Processing by PushType::ConfirmationsController#show as HTML
2679
+ Parameters: {"confirmation_token"=>"invalid"}
2680
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2681
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2682
+ PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "22b7100c66bfb80eeb43f059f4a3da3686cc51062d89a24cc91eb7e580205b91"], ["LIMIT", 1]]
2683
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
2684
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2685
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (4.0ms)
2686
+ Completed 200 OK in 214ms (Views: 11.0ms | ActiveRecord: 0.5ms)
2687
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2688
+  (0.1ms) ROLLBACK
2689
+  (0.1ms) BEGIN
2690
+ ------------------------------------------------------------------------------------------------------
2691
+ PushType::ConfirmationsControllerTest::GET #show::with invalid confirmation token: test_0001_anonymous
2692
+ ------------------------------------------------------------------------------------------------------
2693
+  (0.0ms) SAVEPOINT active_record_1
2694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2695
+  (0.0ms) SAVEPOINT active_record_1
2696
+ Processing by PushType::ConfirmationsController#show as HTML
2697
+ Parameters: {"confirmation_token"=>"invalid"}
2698
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2699
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "invalid"], ["LIMIT", 1]]
2700
+ PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."confirmation_token" = $1 ORDER BY "push_type_users"."name" ASC LIMIT $2 [["confirmation_token", "22b7100c66bfb80eeb43f059f4a3da3686cc51062d89a24cc91eb7e580205b91"], ["LIMIT", 1]]
2701
+ Rendering /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth
2702
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/devise/shared/_links.html.erb (0.3ms)
2703
+ Rendered /Users/aaron/dev/pushcode/push_type/auth/app/views/push_type/confirmations/new.html.haml within layouts/push_type/auth (1.3ms)
2704
+ Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.3ms)
2705
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2706
+  (0.1ms) ROLLBACK
2707
+  (0.0ms) BEGIN
2708
+ ----------------------------------------------------------------------------
2709
+ AuthenticatedApiControllerTest::unauthenticated request: test_0001_anonymous
2710
+ ----------------------------------------------------------------------------
2711
+  (0.0ms) SAVEPOINT active_record_1
2712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2713
+  (0.0ms) SAVEPOINT active_record_1
2714
+ Started GET "/api/nodes" for 127.0.0.1 at 2017-05-18 19:18:32 +0100
2715
+ Processing by PushType::Api::NodesController#index as JSON
2716
+ Filter chain halted as :authenticate_user! rendered or redirected
2717
+ Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
2718
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2719
+  (0.1ms) ROLLBACK
2720
+  (0.1ms) BEGIN
2721
+ ---------------------------------------------------------------
2722
+ PushType::AuthenticatableTest::confirmable: test_0001_anonymous
2723
+ ---------------------------------------------------------------
2724
+  (0.1ms) SAVEPOINT active_record_1
2725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2726
+  (0.0ms) SAVEPOINT active_record_1
2727
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2728
+  (0.1ms) ROLLBACK
2729
+  (0.1ms) BEGIN
2730
+ ---------------------------------------------------------------
2731
+ PushType::AuthenticatableTest::validatable: test_0002_anonymous
2732
+ ---------------------------------------------------------------
2733
+  (0.0ms) SAVEPOINT active_record_1
2734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2735
+  (0.0ms) SAVEPOINT active_record_1
2736
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2737
+  (0.1ms) ROLLBACK
2738
+  (0.1ms) BEGIN
2739
+ ---------------------------------------------------------------
2740
+ PushType::AuthenticatableTest::validatable: test_0001_anonymous
2741
+ ---------------------------------------------------------------
2742
+  (0.0ms) SAVEPOINT active_record_1
2743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2744
+  (0.1ms) SAVEPOINT active_record_1
2745
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2746
+  (0.1ms) ROLLBACK
2747
+  (0.1ms) BEGIN
2748
+ -------------------------------------------------------------------------
2749
+ AuthenticatedControllerTest::unauthenticated request: test_0001_anonymous
2750
+ -------------------------------------------------------------------------
2751
+  (0.0ms) SAVEPOINT active_record_1
2752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2753
+  (0.0ms) SAVEPOINT active_record_1
2754
+ Started GET "/admin/nodes" for 127.0.0.1 at 2017-05-18 19:18:32 +0100
2755
+ Processing by PushType::Admin::NodesController#index as HTML
2756
+ Redirected to http://www.example.com/admin/sign_in
2757
+ Filter chain halted as :authenticate_user! rendered or redirected
2758
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2759
2759
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2760
2760
   (0.1ms) ROLLBACK