[1m[36m (24.1ms)[0m [1mCREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (16.4ms)[0m [1mCREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
[1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (16.8ms)[0m [1mCREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")[0m
[1m[35m (17.2ms)[0m CREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (17.0ms)[0m [1mCREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")[0m
[1m[35m (16.9ms)[0m CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (21.6ms)[0m [1mCREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")[0m
[1m[35m (17.9ms)[0m CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (18.0ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")[0m
[1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (16.6ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")[0m
[1m[35m (17.7ms)[0m CREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (18.6ms)[0m [1mCREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")[0m
[1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
[1m[36m (17.0ms)[0m [1mCREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")[0m
[1m[35m (17.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (22.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (37.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (16.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141222224905')
[1m[36m (16.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141117214323')[0m
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36m (22.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (14.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateProclaimPosts (20141108222616)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.4ms)[0m CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]
[1m[36m (15.2ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimComments (20141114235359)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.7ms)[0m [1mCREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114235359"]]
[1m[35m (20.1ms)[0m commit transaction
Migrating to CreateProclaimCommentHierarchies (20141115022230)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.5ms)[0m CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.2ms)[0m [1mCREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]
[1m[36m (20.6ms)[0m [1mcommit transaction[0m
Migrating to CreateUsers (20141117214323)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]
[1m[36m (22.4ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimSubscriptions (20141210234057)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.7ms)[0m [1mCREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[0m
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141210234057"]]
[1m[35m (16.8ms)[0m commit transaction
Migrating to CreateProclaimImages (20141222224905)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (1.4ms)[0m CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]
[1m[36m (15.7ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='comment_desc_idx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_desc_idx' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in
-----------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-04 02:20:20.929058"], ["updated_at", "2015-01-04 02:20:20.929058"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:20 -0500
Processing by Proclaim::SubscriptionsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (2001.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (2011.0ms)
Completed 200 OK in 3235ms (Views: 3194.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:24 -0500
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "commit"=>"Subscribe"}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "example@example.com"], ["created_at", "2015-01-04 02:20:24.309828"], ["updated_at", "2015-01-04 02:20:24.309828"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7d543ec3-c862-4a2b-811b-639b0f271b7d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (43.4ms)
[ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 421.5ms
[ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d]
Sent mail to example@example.com (51.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Date: Sat, 03 Jan 2015 21:20:24 -0500
From: from@example.com
To: example@example.com
Message-ID: <54a8a368eadc4_6f85104dffc741b3@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a368df5a6_6f85104dffc74076";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a368df5a6_6f85104dffc74076
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a368df5a6_6f85104dffc74076
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a368df5a6_6f85104dffc74076--
[ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 473.83ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://www.example.com/proclaim/subscriptions/subscribed
Completed 302 Found in 708ms (ActiveRecord: 1.0ms)
Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 21:20:24 -0500
Processing by Proclaim::SubscriptionsController#subscribed as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/subscribed.html.erb within layouts/application (0.3ms)
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_not_logged_in
---------------------------------------------------------------------------------------------
Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:24 -0500
Processing by Proclaim::SubscriptionsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:24 -0500
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "commit"=>"Subscribe"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-04 02:20:24.994970"], ["updated_at", "2015-01-04 02:20:24.994970"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4d198ced-7764-4c78-85c8-c040a2039e49) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.5ms)
[ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 63.1ms
[ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49]
Sent mail to example@example.com (3.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Date: Sat, 03 Jan 2015 21:20:25 -0500
From: from@example.com
To: example@example.com
Message-ID: <54a8a369f95c_6f85104dffc743e5@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a369ed5f_6f85104dffc742bb";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a369ed5f_6f85104dffc742bb
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a369ed5f_6f85104dffc742bb
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a369ed5f_6f85104dffc742bb--
[ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Performed ActionMailer::DeliveryJob from Inline(mailers) in 67.02ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://www.example.com/proclaim/subscriptions/subscribed
Completed 302 Found in 74ms (ActiveRecord: 0.8ms)
Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::SubscriptionsController#subscribed as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/subscribed.html.erb within layouts/application (0.1ms)
Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-04 02:20:25.074606"], ["updated_at", "2015-01-04 02:20:25.074606"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::SubscriptionsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"4"}, "commit"=>"Subscribe"}
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.3ms)
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
BlogSubscriptionTest: test_catch_bad_email_address
--------------------------------------------------
Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::SubscriptionsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"bad_email_address"}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "commit"=>"Subscribe"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------
Proclaim::PostTest: test_ensure_body_is_required
------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-04 02:20:25.129014"], ["updated_at", "2015-01-04 02:20:25.129014"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-04 02:20:25.135581"], ["updated_at", "2015-01-04 02:20:25.135581"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-04 02:20:25.139727"], ["updated_at", "2015-01-04 02:20:25.139727"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-04 02:20:25.144483"], ["updated_at", "2015-01-04 02:20:25.144483"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-04 02:20:25.148142"], ["updated_at", "2015-01-04 02:20:25.148142"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Proclaim::PostTest: test_verify_excerpt
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-04 02:20:25.153653"], ["updated_at", "2015-01-04 02:20:25.153653"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-04 02:20:25.156790"], ["updated_at", "2015-01-04 02:20:25.156790"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-04 02:20:25.160142"], ["updated_at", "2015-01-04 02:20:25.160142"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-04 02:20:25.163433"], ["updated_at", "2015-01-04 02:20:25.163433"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-04 02:20:25.203879"], ["updated_at", "2015-01-04 02:20:25.203879"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------
Proclaim::PostTest: test_ensure_title_is_required
-------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-04 02:20:25.207756"], ["updated_at", "2015-01-04 02:20:25.207756"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostTest: test_ensure_publication_date_when_published
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-04 02:20:25.213338"], ["updated_at", "2015-01-04 02:20:25.213338"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title11"], ["body", "body2"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.215063"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.217468"], ["updated_at", "2015-01-04 02:20:25.217468"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::PostTest: test_ensure_author_is_required
--------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_can't_be_taken_back
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-04 02:20:25.233242"], ["updated_at", "2015-01-04 02:20:25.233242"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title14"], ["body", "body5"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.235231"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.236841"], ["updated_at", "2015-01-04 02:20:25.236841"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Proclaim::PostTest: test_ensure_factory_is_good
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-04 02:20:25.241695"], ["updated_at", "2015-01-04 02:20:25.241695"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body6"], ["author_id", 1], ["created_at", "2015-01-04 02:20:25.244557"], ["updated_at", "2015-01-04 02:20:25.244557"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_date_requirement
------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-04 02:20:25.248556"], ["updated_at", "2015-01-04 02:20:25.248556"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title16"], ["body", "body7"], ["author_id", 1], ["created_at", "2015-01-04 02:20:25.251324"], ["updated_at", "2015-01-04 02:20:25.251324"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-04 02:20:25.254416"], ["updated_at", "2015-01-04 02:20:25.254416"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-04 02:20:25.258645"], ["updated_at", "2015-01-04 02:20:25.258645"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-04 02:20:25.263579"], ["updated_at", "2015-01-04 02:20:25.263579"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title19"], ["body", "body10"], ["author_id", 4], ["published_at", "2015-01-04 02:20:25.265226"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.266815"], ["updated_at", "2015-01-04 02:20:25.266815"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
PostTest: test_index_should_show_excerpts
-----------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-04 02:20:25.274486"], ["updated_at", "2015-01-04 02:20:25.274486"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title20"], ["body", "Molestiae ut minima veniam soluta quisquam. Voluptatem expedita beatae illo sed. Cupiditate delectus eum. Debitis et non. Dolor dolore esse reiciendis rerum ducimus impedit at. Ullam vel nulla et officia et cumque deserunt. Labore qui molestias sapiente a. Numquam nemo voluptatibus pariatur ut ex. Dolorem nisi qui consequuntur qui consectetur distinctio. Maxime commodi ut eius. Dicta unde minima et quae consectetur et dolores. Delectus itaque aut et placeat. Ipsa natus consequatur itaque debitis. In placeat omnis voluptatem praesentium molestias dolorem. Quasi dolores perferendis aut et eius quia. Voluptatem accusantium earum sit id dolores eos. Culpa et quod dolorum voluptate molestias nam. Voluptas sit totam non quos temporibus suscipit sed. Repudiandae nam illo vero nostrum qui quia ullam. Animi reprehenderit repudiandae. Impedit laboriosam minima voluptates omnis. Quos eum deserunt voluptatem. Reprehenderit quisquam deserunt consequatur nesciunt assumenda eum. Voluptatem omnis voluptatibus officiis et inventore unde dolores. Cum ut cupiditate eius. Suscipit dolorem a qui voluptas blanditiis totam ea. Dolorem et ab exercitationem. Fuga occaecati impedit debitis. Consequatur officiis quibusdam amet deserunt neque ex. Quasi reiciendis esse cupiditate veniam tempore. Eius ipsum minus non officiis. Sed id laboriosam earum accusantium et quibusdam. Cumque porro dolor ratione quis asperiores. Vel modi totam. Sapiente quaerat quisquam praesentium iure officia sunt recusandae. Rerum minima officia et qui accusantium eveniet molestiae. Deserunt beatae provident. Qui ipsa aut nobis dolor voluptatem ut nihil. Est incidunt molestiae sapiente porro ab ipsa. Totam reprehenderit assumenda sed. Earum ducimus odit. Dolore minima ex ut. Nemo facilis animi architecto. Libero impedit accusamus voluptatibus temporibus distinctio ullam. Molestias iure consequatur odit labore non commodi dolorem. Molestiae delectus dolorem ea consequatur quia. Officiis reiciendis veritatis tempora et. Architecto dignissimos quas voluptatum. Et rem in consequatur necessitatibus sunt autem neque. Ut aut laudantium laborum ea adipisci ut qui."], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.276424"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.278039"], ["updated_at", "2015-01-04 02:20:25.278039"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-04 02:20:25.282042"], ["updated_at", "2015-01-04 02:20:25.282042"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title21"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.283372"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.284767"], ["updated_at", "2015-01-04 02:20:25.284767"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (6.2ms)
Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
PostTest: test_show_should_show_author_name
-------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-04 02:20:25.316316"], ["updated_at", "2015-01-04 02:20:25.316316"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title22"], ["body", "body11"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.318121"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.319554"], ["updated_at", "2015-01-04 02:20:25.319554"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (47.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (73.4ms)
Completed 200 OK in 77ms (Views: 74.9ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
PostTest: test_index_should_give_option_to_create_new_post_if_logged_in
-----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-04 02:20:25.447900"], ["updated_at", "2015-01-04 02:20:25.447900"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (1.1ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-04 02:20:25.461579"], ["updated_at", "2015-01-04 02:20:25.461579"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title23"], ["body", "body12"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.463329"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.464792"], ["updated_at", "2015-01-04 02:20:25.464792"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.4ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in
-------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-04 02:20:25.482000"], ["updated_at", "2015-01-04 02:20:25.482000"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title24"], ["body", "body13"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.483744"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.485221"], ["updated_at", "2015-01-04 02:20:25.485221"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.0ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
PostTest: test_image_should_have_relative_source_path
-----------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-04 02:20:25.501116"], ["updated_at", "2015-01-04 02:20:25.501116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-04 02:20:25.509717"], ["updated_at", "2015-01-04 02:20:25.509717"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title25"], ["body", "body14"], ["author_id", 2], ["created_at", "2015-01-04 02:20:25.512471"], ["updated_at", "2015-01-04 02:20:25.512471"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:20:25.517891"], ["updated_at", "2015-01-04 02:20:25.517891"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-04 02:20:25.558492"], ["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
PostTest: test_index_should_give_option_to_delete_post_if_logged_in
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-04 02:20:25.565663"], ["updated_at", "2015-01-04 02:20:25.565663"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-04 02:20:25.568711"], ["updated_at", "2015-01-04 02:20:25.568711"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title26"], ["body", "body15"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.570110"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.571500"], ["updated_at", "2015-01-04 02:20:25.571500"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.3ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_create_new_post_if_not_logged_in
-------------------------------------------------------------------------------
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (1.0ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------
PostTest: test_index_should_show_authors
----------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-04 02:20:25.600142"], ["updated_at", "2015-01-04 02:20:25.600142"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title27"], ["body", "body16"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.601957"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.603352"], ["updated_at", "2015-01-04 02:20:25.603352"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-04 02:20:25.607170"], ["updated_at", "2015-01-04 02:20:25.607170"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title28"], ["body", "body17"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.608397"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.609912"], ["updated_at", "2015-01-04 02:20:25.609912"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.7ms)
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------
PostTest: test_index_should_show_post_titles
--------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-04 02:20:25.629534"], ["updated_at", "2015-01-04 02:20:25.629534"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title29"], ["body", "body18"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.631380"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.632840"], ["updated_at", "2015-01-04 02:20:25.632840"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-04 02:20:25.636590"], ["updated_at", "2015-01-04 02:20:25.636590"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title30"], ["body", "body19"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.637844"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.639211"], ["updated_at", "2015-01-04 02:20:25.639211"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.3ms)
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
PostTest: test_index_should_give_option_to_edit_post_if_logged_in
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-04 02:20:25.657634"], ["updated_at", "2015-01-04 02:20:25.657634"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-04 02:20:25.660768"], ["updated_at", "2015-01-04 02:20:25.660768"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title31"], ["body", "body20"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.662232"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.663625"], ["updated_at", "2015-01-04 02:20:25.663625"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.2ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------
PostTest: test_index_should_show_more_link
------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-04 02:20:25.682431"], ["updated_at", "2015-01-04 02:20:25.682431"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title32"], ["body", "At ut perspiciatis necessitatibus laudantium aut omnis aut. Qui minima laudantium. Iusto cum fuga ut. Voluptates velit aliquid. Suscipit ullam nisi praesentium ea omnis facere. Tempora aspernatur consequuntur. Est eum culpa modi praesentium est. Occaecati maxime amet. Maxime illum quia suscipit minima accusantium. Molestiae iusto velit. Qui dolores accusamus voluptates et minima praesentium. Dolores neque est repellendus nihil id optio commodi. Ut ea quidem reiciendis corrupti ab debitis. Animi eum voluptatem qui et porro officia aut. Praesentium est veniam nulla et at. Dicta et porro enim in et. Soluta fugit consectetur. Quae ab nemo quis dolorem. Omnis aspernatur tempore ab. Voluptatem in qui expedita voluptatum. Officiis perferendis qui quis id fuga excepturi saepe. Nihil optio rerum voluptate in est totam. Beatae veritatis maiores et similique vel possimus. Atque quia non rerum doloribus. Consequatur sed ratione id. Error ad doloremque et ut sed. Ipsum ut vero mollitia hic et doloremque adipisci. Odio rem culpa possimus fugiat facilis et quibusdam. Voluptas impedit nam est quas ipsum recusandae vel. Nisi aut ex et quia quis molestiae amet. Ratione magni vel optio aperiam. Harum est culpa qui alias inventore. Distinctio aliquid libero sed iste ullam veniam. Vel in cupiditate et perspiciatis. Ut dolor repellendus unde. Ut vel debitis est quidem asperiores. Mollitia explicabo commodi rerum. Alias voluptatem consequatur dolorem dolorem sit qui molestias. Dolorum delectus iure. Adipisci porro ut qui dolore cum natus. Quaerat minima vero itaque nihil sit. Eaque aut quasi id eos ut ipsum omnis. Quis ea labore architecto. Reiciendis eum aut nisi quos corporis commodi laudantium. Dolore magnam dolorum. Est fuga dolores optio recusandae. Dolor suscipit iure magnam impedit. Laboriosam molestiae nisi quo quis asperiores. Ea cupiditate sapiente repellat tempore. Veritatis sit in at inventore nisi."], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.684456"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.686146"], ["updated_at", "2015-01-04 02:20:25.686146"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-04 02:20:25.690228"], ["updated_at", "2015-01-04 02:20:25.690228"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title33"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.691577"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.693114"], ["updated_at", "2015-01-04 02:20:25.693114"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.3ms)
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
--------------------------------------------------------------------------
PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image
--------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-04 02:20:25.919060"], ["updated_at", "2015-01-04 02:20:25.919060"]]
[1m[35m (30.8ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-04 02:20:25.957807"], ["updated_at", "2015-01-04 02:20:25.957807"]]
[1m[36m (16.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title34"], ["body", "body21"], ["author_id", 2], ["created_at", "2015-01-04 02:20:25.983691"], ["updated_at", "2015-01-04 02:20:25.983691"]]
[1m[35m (21.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:20:26.018053"], ["updated_at", "2015-01-04 02:20:26.018053"]]
[1m[36m (16.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["updated_at", "2015-01-04 02:20:26.043287"], ["id", 1]]
[1m[35m (16.0ms)[0m commit transaction
Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 21:20:30 -0500
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.8ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (9.1ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (11.5ms)
Completed 200 OK in 18ms (Views: 14.4ms | ActiveRecord: 1.2ms)
Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 21:20:30 -0500
Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 21:20:30 -0500
Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-03 21:20:30 -0500
Started GET "/assets/resize-smaller.png" for 127.0.0.1 at 2015-01-03 21:20:31 -0500
Started GET "/assets/remove.png" for 127.0.0.1 at 2015-01-03 21:20:31 -0500
Started GET "/assets/link.png" for 127.0.0.1 at 2015-01-03 21:20:31 -0500
Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 21:20:31 -0500
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
[1m[36mProclaim::Image Load (0.3ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:31 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.5ms)
Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.8ms)
[1m[36m (41.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (34.7ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (32.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (38.1ms)[0m DELETE FROM "users";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (44.3ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (52.5ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (51.7ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------
PostFormTest: test_should_create_post
-------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-04 02:20:32.109158"], ["updated_at", "2015-01-04 02:20:32.109158"]]
[1m[36m (40.6ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 21:20:32 -0500
Processing by Proclaim::PostsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:32 -0500
Processing by Proclaim::PostsController#create as HTML
Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>"Paragraph 1
Paragraph 2
"}, "commit"=>"Create Post"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Post Title"], ["body", "Paragraph 1
Paragraph 2
"], ["author_id", 1], ["created_at", "2015-01-04 02:20:32.867110"], ["updated_at", "2015-01-04 02:20:32.867110"]]
[1m[36m (23.9ms)[0m [1mcommit transaction[0m
Redirected to http://127.0.0.1:60678/proclaim/posts/1
Completed 302 Found in 37ms (ActiveRecord: 24.6ms)
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:32 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.8ms)
Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (21.5ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (14.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (37.7ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (30.9ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (26.1ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (26.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (16.2ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (16.1ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------
PostFormTest: test_should_delete_cached_image
---------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-04 02:20:33.392408"], ["updated_at", "2015-01-04 02:20:33.392408"]]
[1m[35m (16.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-04 02:20:33.425529"], ["updated_at", "2015-01-04 02:20:33.425529"]]
[1m[36m (35.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title35"], ["body", ""], ["author_id", 2], ["created_at", "2015-01-04 02:20:33.470147"], ["updated_at", "2015-01-04 02:20:33.470147"]]
[1m[35m (23.2ms)[0m commit transaction
Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 21:20:33 -0500
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (3.1ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)
Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 21:20:33 -0500
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/tmp/1420338033-28549-3411/test.jpg"}
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (21.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (19.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (14.3ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (20.1ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (16.2ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (21.5ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (23.1ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (16.9ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------------
PostFormTest: test_should_show_error_without_title
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-04 02:20:34.030764"], ["updated_at", "2015-01-04 02:20:34.030764"]]
[1m[36m (16.8ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 21:20:34 -0500
Processing by Proclaim::PostsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:34 -0500
Processing by Proclaim::PostsController#create as HTML
Parameters: {"utf8"=>"✓", "post"=>{"title"=>"", "body"=>"Paragraph 1
Paragraph 2
"}, "commit"=>"Create Post"}
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (5.0ms)
Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (16.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (15.4ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (15.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (15.2ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (15.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (20.7ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (29.0ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------------------
PostFormTest: test_should_show_error_without_body
-------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-04 02:20:34.810749"], ["updated_at", "2015-01-04 02:20:34.810749"]]
[1m[35m (15.9ms)[0m commit transaction
Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 21:20:34 -0500
Processing by Proclaim::PostsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:35 -0500
Processing by Proclaim::PostsController#create as HTML
Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>""}, "commit"=>"Create Post"}
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 11ms (Views: 4.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (19.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (15.0ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (20.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (14.8ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (14.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (15.6ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (20.9ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------
PostFormTest: test_should_delete_saved_image
--------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-04 02:20:35.518248"], ["updated_at", "2015-01-04 02:20:35.518248"]]
[1m[36m (14.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-04 02:20:35.536433"], ["updated_at", "2015-01-04 02:20:35.536433"]]
[1m[35m (15.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title36"], ["body", "body22"], ["author_id", 2], ["created_at", "2015-01-04 02:20:35.554673"], ["updated_at", "2015-01-04 02:20:35.554673"]]
[1m[36m (14.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:20:35.575023"], ["updated_at", "2015-01-04 02:20:35.575023"]]
[1m[35m (16.9ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "test
"], ["updated_at", "2015-01-04 02:20:35.597133"], ["id", 1]]
[1m[36m (16.1ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 21:20:35 -0500
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.9ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.5ms)
Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 21:20:35 -0500
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
[1m[35mProclaim::Image Load (0.2ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
Started PATCH "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:35 -0500
Processing by Proclaim::PostsController#update as HTML
Parameters: {"utf8"=>"✓", "post"=>{"title"=>"title36", "body"=>"test
\r\n\t\t
", "images_attributes"=>{"1"=>{"id"=>"1", "_destroy"=>"true"}}}, "commit"=>"Update Post", "id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Image Load (0.2ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? AND "proclaim_images"."id" = 1 [["post_id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", "test
\r\n\t\t
"], ["updated_at", "2015-01-04 02:20:35.997403"], ["id", 1]]
[1m[35mSQL (0.3ms)[0m DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]
[1m[36m (32.8ms)[0m [1mcommit transaction[0m
Redirected to http://127.0.0.1:60678/proclaim/posts/1
Completed 302 Found in 49ms (ActiveRecord: 34.1ms)
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:36 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.8ms)
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms)
[1m[36m (24.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (22.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (18.0ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (18.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (17.6ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (21.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (22.0ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (16.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog
-------------------------------------------------------------
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email1@example.com"], ["created_at", "2015-01-04 02:20:36.488979"], ["updated_at", "2015-01-04 02:20:36.488979"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 408c48a1-fe9a-4be6-af69-1cedfc23be32) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.2ms
[ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32]
Sent mail to email1@example.com (3.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Date: Sat, 03 Jan 2015 21:20:36 -0500
From: from@example.com
To: email1@example.com
Message-ID: <54a8a3747faed_6f85104dffc74549@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3747efa0_6f85104dffc7444a";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3747efa0_6f85104dffc7444a
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a3747efa0_6f85104dffc7444a
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a3747efa0_6f85104dffc7444a--
[ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.25ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.9ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 21:20:36 -0500
Processing by Proclaim::SubscriptionsController#unsubscribed as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribed.html.erb within layouts/application (1.1ms)
Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.6ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post
-------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-04 02:20:36.575395"], ["updated_at", "2015-01-04 02:20:36.575395"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title37"], ["body", "body23"], ["author_id", 1], ["published_at", "2015-01-04 02:20:36.577212"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.578639"], ["updated_at", "2015-01-04 02:20:36.578639"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "email2@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.582882"], ["updated_at", "2015-01-04 02:20:36.582882"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eeff8e91-89b4-441f-98f1-74526ca8ce86) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.3ms
[ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86]
Sent mail to email2@example.com (43.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Date: Sat, 03 Jan 2015 21:20:36 -0500
From: from@example.com
To: email2@example.com
Message-ID: <54a8a37496f0a_6f85104dffc7474c@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a374963bb_6f85104dffc7466c";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a374963bb_6f85104dffc7466c
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a374963bb_6f85104dffc7466c
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a374963bb_6f85104dffc7466c--
[ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Performed ActionMailer::DeliveryJob from Inline(mailers) in 74.87ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 21:20:36 -0500
Processing by Proclaim::SubscriptionsController#unsubscribed as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribed.html.erb within layouts/application (0.1ms)
Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------
ProclaimTest: test_truth
------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-04 02:20:36.694726"], ["updated_at", "2015-01-04 02:20:36.694726"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-04 02:20:36.699095"], ["updated_at", "2015-01-04 02:20:36.699095"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title38"], ["body", "body24"], ["author_id", 2], ["created_at", "2015-01-04 02:20:36.701655"], ["updated_at", "2015-01-04 02:20:36.701655"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.704266"], ["updated_at", "2015-01-04 02:20:36.704266"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author1", "body"=>"body1", "post_id"=>1}, "id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (21.2ms)
Completed 200 OK in 42ms (Views: 0.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy
-------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-04 02:20:36.817528"], ["updated_at", "2015-01-04 02:20:36.817528"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title39"], ["body", "body25"], ["author_id", 1], ["published_at", "2015-01-04 02:20:36.819266"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.820695"], ["updated_at", "2015-01-04 02:20:36.820695"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author2", "body"=>"body2", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy
------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-04 02:20:36.834420"], ["updated_at", "2015-01-04 02:20:36.834420"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title40"], ["body", "body26"], ["author_id", 1], ["published_at", "2015-01-04 02:20:36.836195"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.837591"], ["updated_at", "2015-01-04 02:20:36.837591"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author3"], ["body", "body3"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.840971"], ["updated_at", "2015-01-04 02:20:36.840971"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author4", "body"=>"body4", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in
-------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-04 02:20:36.857910"], ["updated_at", "2015-01-04 02:20:36.857910"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-04 02:20:36.861890"], ["updated_at", "2015-01-04 02:20:36.861890"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title41"], ["body", "body27"], ["author_id", 2], ["created_at", "2015-01-04 02:20:36.864346"], ["updated_at", "2015-01-04 02:20:36.864346"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author5"], ["body", "body5"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.866836"], ["updated_at", "2015-01-04 02:20:36.866836"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-04 02:20:36.923533"], ["updated_at", "2015-01-04 02:20:36.923533"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body28"], ["author_id", 1], ["created_at", "2015-01-04 02:20:36.926481"], ["updated_at", "2015-01-04 02:20:36.926481"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author6"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.929084"], ["updated_at", "2015-01-04 02:20:36.929084"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-04 02:20:36.943678"], ["updated_at", "2015-01-04 02:20:36.943678"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title43"], ["body", "body29"], ["author_id", 1], ["created_at", "2015-01-04 02:20:36.946482"], ["updated_at", "2015-01-04 02:20:36.946482"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author7"], ["body", "body7"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.949280"], ["updated_at", "2015-01-04 02:20:36.949280"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author8", "body"=>"body8", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-04 02:20:36.964618"], ["updated_at", "2015-01-04 02:20:36.964618"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title44"], ["body", "body30"], ["author_id", 2], ["published_at", "2015-01-04 02:20:36.965962"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.967613"], ["updated_at", "2015-01-04 02:20:36.967613"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author9"], ["body", "body9"], ["post_id", 2], ["created_at", "2015-01-04 02:20:36.970984"], ["updated_at", "2015-01-04 02:20:36.970984"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author10", "body"=>"body10", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body10"], ["author", "author10"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-04 02:20:36.980838"], ["updated_at", "2015-01-04 02:20:36.980838"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 3, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 2
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.7ms)
Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 2]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in
----------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-04 02:20:37.004659"], ["updated_at", "2015-01-04 02:20:37.004659"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title45"], ["body", "body31"], ["author_id", 1], ["created_at", "2015-01-04 02:20:37.007553"], ["updated_at", "2015-01-04 02:20:37.007553"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-04 02:20:37.018873"], ["updated_at", "2015-01-04 02:20:37.018873"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title46"], ["body", "body32"], ["author_id", 2], ["published_at", "2015-01-04 02:20:37.020184"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.021583"], ["updated_at", "2015-01-04 02:20:37.021583"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "body12"], ["author", "author12"], ["post_id", 2], ["created_at", "2015-01-04 02:20:37.027933"], ["updated_at", "2015-01-04 02:20:37.027933"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.6ms)
Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in
-----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-04 02:20:37.046338"], ["updated_at", "2015-01-04 02:20:37.046338"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-04 02:20:37.050228"], ["updated_at", "2015-01-04 02:20:37.050228"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title47"], ["body", "body33"], ["author_id", 2], ["created_at", "2015-01-04 02:20:37.052640"], ["updated_at", "2015-01-04 02:20:37.052640"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author13"], ["body", "body13"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.055110"], ["updated_at", "2015-01-04 02:20:37.055110"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author14", "body"=>"body14", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "body14"], ["author", "author14"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:20:37.069045"], ["updated_at", "2015-01-04 02:20:37.069045"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.2ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.8ms)
Completed 200 OK in 26ms (Views: 0.7ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ?[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-04 02:20:37.097343"], ["updated_at", "2015-01-04 02:20:37.097343"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title48"], ["body", "body34"], ["author_id", 3], ["published_at", "2015-01-04 02:20:37.098641"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.100073"], ["updated_at", "2015-01-04 02:20:37.100073"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author15"], ["body", "body15"], ["post_id", 2], ["created_at", "2015-01-04 02:20:37.103027"], ["updated_at", "2015-01-04 02:20:37.103027"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author16", "body"=>"body16", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body16"], ["author", "author16"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-04 02:20:37.112737"], ["updated_at", "2015-01-04 02:20:37.112737"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36m (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 4, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 3
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 4]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 4]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms)
Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 1.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 3]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in
--------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-04 02:20:37.142536"], ["updated_at", "2015-01-04 02:20:37.142536"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title49"], ["body", "body35"], ["author_id", 1], ["created_at", "2015-01-04 02:20:37.145291"], ["updated_at", "2015-01-04 02:20:37.145291"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author17"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.147762"], ["updated_at", "2015-01-04 02:20:37.147762"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author17", "body"=>"body17", "post_id"=>1}, "id"=>"1"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-04 02:20:37.160013"], ["updated_at", "2015-01-04 02:20:37.160013"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-04 02:20:37.164060"], ["updated_at", "2015-01-04 02:20:37.164060"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title50"], ["body", "body36"], ["author_id", 2], ["created_at", "2015-01-04 02:20:37.166637"], ["updated_at", "2015-01-04 02:20:37.166637"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "body18"], ["author", "author18"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.175816"], ["updated_at", "2015-01-04 02:20:37.175816"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (15.0ms)
Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-04 02:20:37.200875"], ["updated_at", "2015-01-04 02:20:37.200875"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title51"], ["body", "body37"], ["author_id", 3], ["published_at", "2015-01-04 02:20:37.202251"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.203769"], ["updated_at", "2015-01-04 02:20:37.203769"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author19", "body"=>"body19", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body19"], ["author", "author19"], ["post_id", 2], ["created_at", "2015-01-04 02:20:37.210144"], ["updated_at", "2015-01-04 02:20:37.210144"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms)
Completed 200 OK in 22ms (Views: 0.7ms | ActiveRecord: 1.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
---------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in
---------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-04 02:20:37.235669"], ["updated_at", "2015-01-04 02:20:37.235669"]]
[1m[35m (23.2ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title52"], ["body", "body38"], ["author_id", 1], ["published_at", "2015-01-04 02:20:37.261703"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.266489"], ["updated_at", "2015-01-04 02:20:37.266489"]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (21.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author20"], ["body", "body20"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.295622"], ["updated_at", "2015-01-04 02:20:37.295622"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (14.8ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:37 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (16.0ms)
Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 0.8ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:38 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.4ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:20:38.185347"], ["updated_at", "2015-01-04 02:20:38.185347"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:38.195131"], ["updated_at", "2015-01-04 02:20:38.195131"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eda54ef5-15d7-400d-8c7f-1899bc0a72b8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.6ms)
[ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 72.8ms
[ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8]
Sent mail to example@example.com (3.4ms)
[ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Date: Sat, 03 Jan 2015 21:20:38 -0500
From: from@example.com
To: example@example.com
Message-ID: <54a8a37642ef1_6f8537f96007495e@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a37642302_6f8537f960074880";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a37642302_6f8537f960074880
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a37642302_6f8537f960074880
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a37642302_6f8537f960074880--
[ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 76.98ms
[1m[35m (41.9ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.5ms)
Completed 200 OK in 158ms (Views: 0.4ms | ActiveRecord: 45.9ms)
Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-03 21:20:38 -0500
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (28.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (14.9ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (14.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (20.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (22.7ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (26.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (20.4ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (17.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (17.3ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
----------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in
----------------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-04 02:20:38.650592"], ["updated_at", "2015-01-04 02:20:38.650592"]]
[1m[35m (16.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title53"], ["body", "body39"], ["author_id", 1], ["published_at", "2015-01-04 02:20:38.669456"], ["state", "published"], ["created_at", "2015-01-04 02:20:38.673602"], ["updated_at", "2015-01-04 02:20:38.673602"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (15.8ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:38 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.9ms)
Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:39 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"8", "solution"=>"8"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:39.856429"], ["updated_at", "2015-01-04 02:20:39.856429"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:39.866698"], ["updated_at", "2015-01-04 02:20:39.866698"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0a2a7d61-c8c6-4b73-8e73-2ecf8174f832) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.9ms)
[ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.7ms
[ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832]
Sent mail to example@example.com (5.4ms)
[ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Date: Sat, 03 Jan 2015 21:20:39 -0500
From: from@example.com
To: example@example.com
Message-ID: <54a8a377de328_6f8537f9600751b0@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a377dce69_6f8537f960075099";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a377dce69_6f8537f960075099
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a377dce69_6f8537f960075099
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a377dce69_6f8537f960075099--
[ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.66ms
[1m[36m (21.2ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.2ms)
Completed 200 OK in 98ms (Views: 0.5ms | ActiveRecord: 23.8ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (33.2ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (22.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (22.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (18.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (16.3ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (35.5ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (26.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (25.2ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy
-----------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-04 02:20:40.256869"], ["updated_at", "2015-01-04 02:20:40.256869"]]
[1m[36m (25.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title54"], ["body", "body40"], ["author_id", 1], ["published_at", "2015-01-04 02:20:40.284821"], ["state", "published"], ["created_at", "2015-01-04 02:20:40.290006"], ["updated_at", "2015-01-04 02:20:40.290006"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (16.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author21"], ["body", "body21"], ["post_id", 1], ["created_at", "2015-01-04 02:20:40.312141"], ["updated_at", "2015-01-04 02:20:40.312141"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (39.0ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:40 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (13.3ms)
Completed 200 OK in 18ms (Views: 14.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:41 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (28.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (14.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (15.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (15.9ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (15.8ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (14.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (15.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (15.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------------
PostSubscriptionTest: test_catch_bad_email_address
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-04 02:20:41.469500"], ["updated_at", "2015-01-04 02:20:41.469500"]]
[1m[36m (14.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title55"], ["body", "body41"], ["author_id", 1], ["published_at", "2015-01-04 02:20:41.486399"], ["state", "published"], ["created_at", "2015-01-04 02:20:41.488703"], ["updated_at", "2015-01-04 02:20:41.488703"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (15.4ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:41 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.7ms)
Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:42 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"bad_email"}, "commit"=>"Comment"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:42.283890"], ["updated_at", "2015-01-04 02:20:42.283890"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35m (0.3ms)[0m rollback transaction
Completed 422 Unprocessable Entity in 23ms (Views: 0.3ms | ActiveRecord: 2.3ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (26.5ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (15.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (15.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (36.1ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (37.9ms)[0m DELETE FROM "users";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (24.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (20.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (20.9ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment
------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-04 02:20:42.560735"], ["updated_at", "2015-01-04 02:20:42.560735"]]
[1m[36m (44.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title56"], ["body", "body42"], ["author_id", 1], ["published_at", "2015-01-04 02:20:42.607401"], ["state", "published"], ["created_at", "2015-01-04 02:20:42.609249"], ["updated_at", "2015-01-04 02:20:42.609249"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (32.4ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:42 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.6ms)
Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:43 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:43.499152"], ["updated_at", "2015-01-04 02:20:43.499152"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:43.509618"], ["updated_at", "2015-01-04 02:20:43.509618"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e9e3d87b-c309-4a1b-9317-00d25ef79e60) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.6ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.5ms
[ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60]
Sent mail to example@example.com (3.4ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Date: Sat, 03 Jan 2015 21:20:43 -0500
From: from@example.com
To: example@example.com
Message-ID: <54a8a37b87657_6f8537f9600753ad@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a37b86909_6f8537f960075223";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a37b86909_6f8537f960075223
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a37b86909_6f8537f960075223
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a37b86909_6f8537f960075223--
[ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.38ms
[1m[35m (28.8ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.1ms)
Completed 200 OK in 112ms (Views: 0.6ms | ActiveRecord: 31.8ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (27.0ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (25.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (15.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (39.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (29.2ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.3ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (51.5ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (24.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (33.8ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in
------------------------------------------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-04 02:20:43.951725"], ["updated_at", "2015-01-04 02:20:43.951725"]]
[1m[36m (53.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-04 02:20:44.012560"], ["updated_at", "2015-01-04 02:20:44.012560"]]
[1m[35m (37.6ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title57"], ["body", "body43"], ["author_id", 2], ["published_at", "2015-01-04 02:20:44.056110"], ["state", "published"], ["created_at", "2015-01-04 02:20:44.060455"], ["updated_at", "2015-01-04 02:20:44.060455"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (39.4ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:44 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.5ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.5ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:44 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:44.948147"], ["updated_at", "2015-01-04 02:20:44.948147"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:44.957045"], ["updated_at", "2015-01-04 02:20:44.957045"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5f00f8e1-d8d2-42e8-9760-ef75512075de) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms)
[ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.1ms
[ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de]
Sent mail to example@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Date: Sat, 03 Jan 2015 21:20:44 -0500
From: from@example.com
To: example@example.com
Message-ID: <54a8a37cf3ac1_6f8537f960075576@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a37cf2ee7_6f8537f960075435";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a37cf2ee7_6f8537f960075435
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a37cf2ee7_6f8537f960075435
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a37cf2ee7_6f8537f960075435--
[ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.21ms
[1m[36m (39.2ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.9ms)
Completed 200 OK in 159ms (Views: 0.7ms | ActiveRecord: 41.6ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (22.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (14.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (33.3ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (34.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (38.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (33.7ms)[0m DELETE FROM "users";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (37.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (34.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (26.5ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------------------------
PostSubscriptionTest: test_catch_lack_of_email_address
------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-04 02:20:45.463227"], ["updated_at", "2015-01-04 02:20:45.463227"]]
[1m[36m (19.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title58"], ["body", "body44"], ["author_id", 1], ["published_at", "2015-01-04 02:20:45.485430"], ["state", "published"], ["created_at", "2015-01-04 02:20:45.487546"], ["updated_at", "2015-01-04 02:20:45.487546"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (37.5ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:45 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.5ms)
Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:46 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>""}, "commit"=>"Comment"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:46.290803"], ["updated_at", "2015-01-04 02:20:46.290803"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35m (0.2ms)[0m rollback transaction
Completed 422 Unprocessable Entity in 18ms (Views: 0.2ms | ActiveRecord: 2.3ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (42.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (23.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (39.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (23.0ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (34.1ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (30.6ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (39.2ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (40.8ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in
-----------------------------------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-04 02:20:46.639162"], ["updated_at", "2015-01-04 02:20:46.639162"]]
[1m[36m (30.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-04 02:20:46.678827"], ["updated_at", "2015-01-04 02:20:46.678827"]]
[1m[35m (26.3ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title59"], ["body", "body45"], ["author_id", 2], ["published_at", "2015-01-04 02:20:46.710147"], ["state", "published"], ["created_at", "2015-01-04 02:20:46.711840"], ["updated_at", "2015-01-04 02:20:46.711840"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (37.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author22"], ["body", "body22"], ["post_id", 1], ["created_at", "2015-01-04 02:20:46.761664"], ["updated_at", "2015-01-04 02:20:46.761664"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (20.0ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:46 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (10.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (19.1ms)
Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:47 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:20:47.714076"], ["updated_at", "2015-01-04 02:20:47.714076"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:47.725331"], ["updated_at", "2015-01-04 02:20:47.725331"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 40af45b0-4804-4a03-ab57-b1f35ccdbd39) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.5ms)
[ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 72.6ms
[ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39]
Sent mail to example@example.com (3.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Date: Sat, 03 Jan 2015 21:20:47 -0500
From: from@example.com
To: example@example.com
Message-ID: <54a8a37fc4eec_6f8537f96007578f@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a37fc42b2_6f8537f9600756ad";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a37fc42b2_6f8537f9600756ad
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a37fc42b2_6f8537f9600756ad
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a37fc42b2_6f8537f9600756ad--
[ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Performed ActionMailer::DeliveryJob from Inline(mailers) in 78.06ms
[1m[35m (31.3ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.3ms)
Completed 200 OK in 154ms (Views: 0.7ms | ActiveRecord: 34.8ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (27.5ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (16.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (17.7ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (31.8ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (32.8ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (32.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (29.7ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (17.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (26.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
----------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy
----------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-04 02:20:48.188679"], ["updated_at", "2015-01-04 02:20:48.188679"]]
[1m[35m (37.3ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title60"], ["body", "body46"], ["author_id", 1], ["published_at", "2015-01-04 02:20:48.229198"], ["state", "published"], ["created_at", "2015-01-04 02:20:48.234152"], ["updated_at", "2015-01-04 02:20:48.234152"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (25.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author23"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-04 02:20:48.266664"], ["updated_at", "2015-01-04 02:20:48.266664"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (22.9ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:48 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.2ms)
Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:49 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (31.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (17.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (22.8ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (28.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (40.1ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (20.5ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (27.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (20.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (15.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
---------------------------------
PostPolicyTest: test_post_destroy
---------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-04 02:20:49.716368"], ["updated_at", "2015-01-04 02:20:49.716368"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-04 02:20:49.724411"], ["updated_at", "2015-01-04 02:20:49.724411"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title61"], ["body", "body47"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.726803"], ["updated_at", "2015-01-04 02:20:49.726803"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-04 02:20:49.729755"], ["updated_at", "2015-01-04 02:20:49.729755"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title62"], ["body", "body48"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.730968"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.732297"], ["updated_at", "2015-01-04 02:20:49.732297"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------
PostPolicyTest: test_post_update
--------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-04 02:20:49.735938"], ["updated_at", "2015-01-04 02:20:49.735938"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-04 02:20:49.738536"], ["updated_at", "2015-01-04 02:20:49.738536"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title63"], ["body", "body49"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.741020"], ["updated_at", "2015-01-04 02:20:49.741020"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-04 02:20:49.744312"], ["updated_at", "2015-01-04 02:20:49.744312"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title64"], ["body", "body50"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.745542"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.746900"], ["updated_at", "2015-01-04 02:20:49.746900"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------
PostPolicyTest: test_post_scope
-------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-04 02:20:49.750709"], ["updated_at", "2015-01-04 02:20:49.750709"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-04 02:20:49.753016"], ["updated_at", "2015-01-04 02:20:49.753016"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title65"], ["body", "body51"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.755252"], ["updated_at", "2015-01-04 02:20:49.755252"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-04 02:20:49.758126"], ["updated_at", "2015-01-04 02:20:49.758126"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title66"], ["body", "body52"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.759316"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.760641"], ["updated_at", "2015-01-04 02:20:49.760641"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------
PostPolicyTest: test_post_create
--------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-04 02:20:49.765864"], ["updated_at", "2015-01-04 02:20:49.765864"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-04 02:20:49.768164"], ["updated_at", "2015-01-04 02:20:49.768164"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title67"], ["body", "body53"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.770765"], ["updated_at", "2015-01-04 02:20:49.770765"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------
PostPolicyTest: test_post_show
------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-04 02:20:49.774439"], ["updated_at", "2015-01-04 02:20:49.774439"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-04 02:20:49.776746"], ["updated_at", "2015-01-04 02:20:49.776746"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title68"], ["body", "body54"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.778926"], ["updated_at", "2015-01-04 02:20:49.778926"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-04 02:20:49.781975"], ["updated_at", "2015-01-04 02:20:49.781975"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title69"], ["body", "body55"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.783283"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.784759"], ["updated_at", "2015-01-04 02:20:49.784759"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
-------------------------------------------------
CommentTest: test_reply_forms_should_be_exclusive
-------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-04 02:20:49.792272"], ["updated_at", "2015-01-04 02:20:49.792272"]]
[1m[35m (16.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title70"], ["body", "body56"], ["author_id", 1], ["published_at", "2015-01-04 02:20:49.810870"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.813806"], ["updated_at", "2015-01-04 02:20:49.813806"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (16.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-04 02:20:49.838803"], ["updated_at", "2015-01-04 02:20:49.838803"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (21.6ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-04 02:20:49.875031"], ["updated_at", "2015-01-04 02:20:49.875031"]]
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (22.5ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:49 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.3ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.5ms)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (16.6ms)
Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 0.7ms)
[1m[36m (28.7ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (16.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (16.5ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (22.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (23.3ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (17.5ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (27.2ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (20.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (29.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------
CommentTest: test_edit_root_comment
-----------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-04 02:20:50.605032"], ["updated_at", "2015-01-04 02:20:50.605032"]]
[1m[36m (17.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-04 02:20:50.634174"], ["updated_at", "2015-01-04 02:20:50.634174"]]
[1m[35m (16.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title71"], ["body", "body57"], ["author_id", 2], ["published_at", "2015-01-04 02:20:50.653961"], ["state", "published"], ["created_at", "2015-01-04 02:20:50.655669"], ["updated_at", "2015-01-04 02:20:50.655669"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (16.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-04 02:20:50.681003"], ["updated_at", "2015-01-04 02:20:50.681003"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (16.5ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:50 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.0ms)
Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 0.7ms)
Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 21:20:51 -0500
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"}
[1m[36mProclaim::Comment Load (0.3ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (0.6ms)[0m UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-04 02:20:51.369885"], ["id", 1]]
[1m[36m (21.5ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.8ms)
Completed 200 OK in 58ms (Views: 1.1ms | ActiveRecord: 23.4ms)
[1m[36m (43.6ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (16.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (16.3ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (20.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (17.7ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (17.2ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (16.3ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (17.9ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (17.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------------------------------------
CommentTest: test_should_not_have_option_to_delete_if_not_logged_in
-------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-04 02:20:51.814993"], ["updated_at", "2015-01-04 02:20:51.814993"]]
[1m[36m (15.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title72"], ["body", "body58"], ["author_id", 1], ["published_at", "2015-01-04 02:20:51.832921"], ["state", "published"], ["created_at", "2015-01-04 02:20:51.835946"], ["updated_at", "2015-01-04 02:20:51.835946"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (18.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author27"], ["body", "body27"], ["post_id", 1], ["created_at", "2015-01-04 02:20:51.863337"], ["updated_at", "2015-01-04 02:20:51.863337"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (16.0ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:51 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (12.6ms)
Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.6ms)
[1m[35m (20.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (16.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (14.7ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (14.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (25.8ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (19.3ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (14.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (14.6ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (14.6ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------
CommentTest: test_reply_should_fail_if_spammy
---------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-04 02:20:52.216376"], ["updated_at", "2015-01-04 02:20:52.216376"]]
[1m[35m (21.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title73"], ["body", "body59"], ["author_id", 1], ["published_at", "2015-01-04 02:20:52.240746"], ["state", "published"], ["created_at", "2015-01-04 02:20:52.243434"], ["updated_at", "2015-01-04 02:20:52.243434"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (19.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author28"], ["body", "body28"], ["post_id", 1], ["created_at", "2015-01-04 02:20:52.268174"], ["updated_at", "2015-01-04 02:20:52.268174"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (30.0ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:52 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.3ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (13.4ms)
Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.6ms)
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:52 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 1", "body"=>"Reply Body 1", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"4"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (41.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (24.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (17.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (35.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (22.1ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (16.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (27.2ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------
CommentTest: test_cancel_button_should_remove_errors
----------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-04 02:20:53.288919"], ["updated_at", "2015-01-04 02:20:53.288919"]]
[1m[36m (23.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title74"], ["body", "body60"], ["author_id", 1], ["published_at", "2015-01-04 02:20:53.315598"], ["state", "published"], ["created_at", "2015-01-04 02:20:53.320529"], ["updated_at", "2015-01-04 02:20:53.320529"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (20.6ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:53 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.5ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.5ms)
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:53 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"", "solution"=>"5"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (25.4ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (15.4ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (21.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (18.2ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (26.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (17.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (36.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------
CommentTest: test_delete_root_comment
-------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-04 02:20:54.016603"], ["updated_at", "2015-01-04 02:20:54.016603"]]
[1m[35m (21.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-04 02:20:54.048967"], ["updated_at", "2015-01-04 02:20:54.048967"]]
[1m[36m (16.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title75"], ["body", "body61"], ["author_id", 2], ["published_at", "2015-01-04 02:20:54.070012"], ["state", "published"], ["created_at", "2015-01-04 02:20:54.074758"], ["updated_at", "2015-01-04 02:20:54.074758"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (16.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author29"], ["body", "body29"], ["post_id", 1], ["created_at", "2015-01-04 02:20:54.101479"], ["updated_at", "2015-01-04 02:20:54.101479"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (16.3ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:54 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (14.5ms)
Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 21:20:54 -0500
Processing by Proclaim::CommentsController#destroy as JS
Parameters: {"id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (39.1ms)[0m commit transaction
Completed 200 OK in 50ms (Views: 0.2ms | ActiveRecord: 40.8ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (22.4ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (16.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (22.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (33.3ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (24.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (16.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (17.1ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (22.3ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
----------------------------------------------------
CommentTest: test_root_comment_should_fail_if_spammy
----------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-04 02:20:55.503566"], ["updated_at", "2015-01-04 02:20:55.503566"]]
[1m[35m (20.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title76"], ["body", "body62"], ["author_id", 1], ["published_at", "2015-01-04 02:20:55.529045"], ["state", "published"], ["created_at", "2015-01-04 02:20:55.531025"], ["updated_at", "2015-01-04 02:20:55.531025"]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (15.7ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:55 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.9ms)
Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.6ms)
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:56 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"8"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (28.4ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (22.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (15.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (20.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (15.1ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (16.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (38.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (18.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------
CommentTest: test_leave_root_comment
------------------------------------
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-04 02:20:56.540374"], ["updated_at", "2015-01-04 02:20:56.540374"]]
[1m[36m (15.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title77"], ["body", "body63"], ["author_id", 1], ["published_at", "2015-01-04 02:20:56.558983"], ["state", "published"], ["created_at", "2015-01-04 02:20:56.563293"], ["updated_at", "2015-01-04 02:20:56.563293"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (15.7ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:56 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.8ms)
Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.6ms)
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:57 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"8", "solution"=>"8"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:57.197462"], ["updated_at", "2015-01-04 02:20:57.197462"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (28.6ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.5ms)
Completed 200 OK in 65ms (Views: 0.7ms | ActiveRecord: 31.3ms)
[1m[36m (29.0ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (28.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (37.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (50.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (50.3ms)[0m DELETE FROM "users";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (26.4ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (30.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (39.0ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------
CommentTest: test_edit_parent_comment
-------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-04 02:20:57.749152"], ["updated_at", "2015-01-04 02:20:57.749152"]]
[1m[36m (25.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-04 02:20:57.781162"], ["updated_at", "2015-01-04 02:20:57.781162"]]
[1m[35m (43.8ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title78"], ["body", "body64"], ["author_id", 2], ["published_at", "2015-01-04 02:20:57.830493"], ["state", "published"], ["created_at", "2015-01-04 02:20:57.835240"], ["updated_at", "2015-01-04 02:20:57.835240"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (25.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author30"], ["body", "body30"], ["post_id", 1], ["created_at", "2015-01-04 02:20:57.867618"], ["updated_at", "2015-01-04 02:20:57.867618"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (31.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author31"], ["body", "body31"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:20:57.913222"], ["updated_at", "2015-01-04 02:20:57.913222"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.2ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (32.4ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:57 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.7ms)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (21.7ms)
Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.7ms)
Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 21:20:58 -0500
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"}
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.4ms)[0m [1mUPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-04 02:20:58.680871"], ["id", 1]]
[1m[35m (67.3ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.1ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.1ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.0ms)
Completed 200 OK in 118ms (Views: 1.6ms | ActiveRecord: 69.2ms)
[1m[36m (57.6ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (23.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (22.2ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (16.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (22.2ms)[0m DELETE FROM "users";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (34.5ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (27.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (19.9ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------
CommentTest: test_leave_two_replies
-----------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-04 02:20:59.290596"], ["updated_at", "2015-01-04 02:20:59.290596"]]
[1m[36m (23.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title79"], ["body", "body65"], ["author_id", 1], ["published_at", "2015-01-04 02:20:59.316673"], ["state", "published"], ["created_at", "2015-01-04 02:20:59.320542"], ["updated_at", "2015-01-04 02:20:59.320542"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (25.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author32"], ["body", "body32"], ["post_id", 1], ["created_at", "2015-01-04 02:20:59.356859"], ["updated_at", "2015-01-04 02:20:59.356859"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (21.3ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:59 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (9.3ms)
Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.4ms)
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:21:00 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 1", "body"=>"Reply Body 1", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"}
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:00.060645"], ["updated_at", "2015-01-04 02:21:00.060645"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.2ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (61.9ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.4ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.3ms)
Completed 200 OK in 96ms (Views: 0.5ms | ActiveRecord: 64.7ms)
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:21:00 -0500
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 2", "body"=>"Reply Body 2", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"}
[1m[36mProclaim::Comment Load (0.3ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 2"], ["author", "Reply Author 2"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:00.827960"], ["updated_at", "2015-01-04 02:21:00.827960"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36m (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 3, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (43.1ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.8ms)
Completed 200 OK in 123ms (Views: 41.3ms | ActiveRecord: 45.9ms)
[1m[35m (39.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.7ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (32.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (44.7ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (23.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (22.1ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (27.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (23.1ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (35.7ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------
CommentTest: test_delete_parent_comment
---------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-04 02:21:01.435182"], ["updated_at", "2015-01-04 02:21:01.435182"]]
[1m[35m (28.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-04 02:21:01.468066"], ["updated_at", "2015-01-04 02:21:01.468066"]]
[1m[36m (26.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title80"], ["body", "body66"], ["author_id", 2], ["published_at", "2015-01-04 02:21:01.499692"], ["state", "published"], ["created_at", "2015-01-04 02:21:01.504202"], ["updated_at", "2015-01-04 02:21:01.504202"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (32.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author33"], ["body", "body33"], ["post_id", 1], ["created_at", "2015-01-04 02:21:01.544812"], ["updated_at", "2015-01-04 02:21:01.544812"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (37.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["author", "author34"], ["body", "body34"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:01.599206"], ["updated_at", "2015-01-04 02:21:01.599206"]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (35.1ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:01 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.5ms)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (23.0ms)
Completed 200 OK in 29ms (Views: 24.5ms | ActiveRecord: 0.9ms)
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 21:21:02 -0500
Processing by Proclaim::CommentsController#destroy as JS
Parameters: {"id"=>"1"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.8ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.3ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mSQL (0.5ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (25.0ms)[0m commit transaction
Completed 200 OK in 40ms (Views: 0.2ms | ActiveRecord: 27.3ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (48.4ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (43.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (39.6ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (33.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (36.6ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (46.7ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (46.5ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (36.4ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-----------------------------------------------------------------
CommentTest: test_should_not_have_option_to_edit_if_not_logged_in
-----------------------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-04 02:21:03.606876"], ["updated_at", "2015-01-04 02:21:03.606876"]]
[1m[35m (41.3ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title81"], ["body", "body67"], ["author_id", 1], ["published_at", "2015-01-04 02:21:03.651119"], ["state", "published"], ["created_at", "2015-01-04 02:21:03.654428"], ["updated_at", "2015-01-04 02:21:03.654428"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (37.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author35"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-04 02:21:03.698794"], ["updated_at", "2015-01-04 02:21:03.698794"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (41.1ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:03 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.3ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.3ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.2ms)
Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 0.9ms)
[1m[36m (18.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (17.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (16.8ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (31.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (22.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (17.2ms)[0m DELETE FROM "users";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (16.6ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (23.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (17.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------
CommentTest: test_delete_child_comment
--------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-04 02:21:04.196625"], ["updated_at", "2015-01-04 02:21:04.196625"]]
[1m[36m (38.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-04 02:21:04.247400"], ["updated_at", "2015-01-04 02:21:04.247400"]]
[1m[35m (32.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title82"], ["body", "body68"], ["author_id", 2], ["published_at", "2015-01-04 02:21:04.285509"], ["state", "published"], ["created_at", "2015-01-04 02:21:04.290454"], ["updated_at", "2015-01-04 02:21:04.290454"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (21.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-04 02:21:04.320368"], ["updated_at", "2015-01-04 02:21:04.320368"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (23.5ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author37"], ["body", "body37"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:04.359872"], ["updated_at", "2015-01-04 02:21:04.359872"]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (24.2ms)[0m commit transaction
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:04 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]]
[1m[36mProclaim::Post Load (1.6ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (15.1ms)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (10.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (50.5ms)
Completed 200 OK in 55ms (Views: 50.5ms | ActiveRecord: 2.6ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Started DELETE "/proclaim/comments/2" for 127.0.0.1 at 2015-01-03 21:21:04 -0500
Processing by Proclaim::CommentsController#destroy as JS
Parameters: {"id"=>"2"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 2]]
[1m[35m (22.1ms)[0m commit transaction
Completed 200 OK in 32ms (Views: 0.2ms | ActiveRecord: 23.8ms)
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (39.4ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (25.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (31.9ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (26.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (32.4ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (34.8ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (30.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (40.3ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (34.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------
CommentTest: test_edit_child_comment
------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-04 02:21:06.018227"], ["updated_at", "2015-01-04 02:21:06.018227"]]
[1m[35m (16.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-04 02:21:06.044548"], ["updated_at", "2015-01-04 02:21:06.044548"]]
[1m[36m (27.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title83"], ["body", "body69"], ["author_id", 2], ["published_at", "2015-01-04 02:21:06.077966"], ["state", "published"], ["created_at", "2015-01-04 02:21:06.082810"], ["updated_at", "2015-01-04 02:21:06.082810"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (22.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author38"], ["body", "body38"], ["post_id", 1], ["created_at", "2015-01-04 02:21:06.116830"], ["updated_at", "2015-01-04 02:21:06.116830"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (17.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["author", "author39"], ["body", "body39"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:06.152628"], ["updated_at", "2015-01-04 02:21:06.152628"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (22.6ms)[0m [1mcommit transaction[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:06 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.2ms)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (63.9ms)
Completed 200 OK in 66ms (Views: 64.4ms | ActiveRecord: 0.8ms)
Started PATCH "/proclaim/comments/2.json" for 127.0.0.1 at 2015-01-03 21:21:06 -0500
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>"1"}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"2"}
[1m[36mProclaim::Comment Load (0.3ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.1ms)[0m [1mUPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-04 02:21:06.912738"], ["id", 2]]
[1m[35m (26.5ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.2ms)
Completed 200 OK in 61ms (Views: 0.8ms | ActiveRecord: 29.0ms)
[1m[36m (30.4ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (16.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (18.0ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (16.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (18.3ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (17.0ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (28.2ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (32.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (48.7ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
-------------------------------------
CommentPolicyTest: test_comment_scope
-------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-04 02:21:07.461046"], ["updated_at", "2015-01-04 02:21:07.461046"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-04 02:21:07.464145"], ["updated_at", "2015-01-04 02:21:07.464145"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title84"], ["body", "body70"], ["author_id", 2], ["created_at", "2015-01-04 02:21:07.466604"], ["updated_at", "2015-01-04 02:21:07.466604"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author40"], ["body", "body40"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.470202"], ["updated_at", "2015-01-04 02:21:07.470202"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-04 02:21:07.476369"], ["updated_at", "2015-01-04 02:21:07.476369"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title85"], ["body", "body71"], ["author_id", 3], ["created_at", "2015-01-04 02:21:07.478610"], ["updated_at", "2015-01-04 02:21:07.478610"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author41"], ["body", "body41"], ["post_id", 2], ["created_at", "2015-01-04 02:21:07.481116"], ["updated_at", "2015-01-04 02:21:07.481116"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
CommentPolicyTest: test_comment_destroy
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-04 02:21:07.488425"], ["updated_at", "2015-01-04 02:21:07.488425"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-04 02:21:07.491088"], ["updated_at", "2015-01-04 02:21:07.491088"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title86"], ["body", "body72"], ["author_id", 2], ["created_at", "2015-01-04 02:21:07.534385"], ["updated_at", "2015-01-04 02:21:07.534385"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author42"], ["body", "body42"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.537115"], ["updated_at", "2015-01-04 02:21:07.537115"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------
CommentPolicyTest: test_comment_update
--------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-04 02:21:07.543405"], ["updated_at", "2015-01-04 02:21:07.543405"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-04 02:21:07.546332"], ["updated_at", "2015-01-04 02:21:07.546332"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title87"], ["body", "body73"], ["author_id", 2], ["created_at", "2015-01-04 02:21:07.548601"], ["updated_at", "2015-01-04 02:21:07.548601"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author43"], ["body", "body43"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.551133"], ["updated_at", "2015-01-04 02:21:07.551133"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------
CommentPolicyTest: test_comment_creation
----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-04 02:21:07.557528"], ["updated_at", "2015-01-04 02:21:07.557528"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-04 02:21:07.560313"], ["updated_at", "2015-01-04 02:21:07.560313"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title88"], ["body", "body74"], ["author_id", 2], ["published_at", "2015-01-04 02:21:07.561489"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.562905"], ["updated_at", "2015-01-04 02:21:07.562905"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-04 02:21:07.567148"], ["updated_at", "2015-01-04 02:21:07.567148"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title89"], ["body", "body75"], ["author_id", 3], ["created_at", "2015-01-04 02:21:07.569628"], ["updated_at", "2015-01-04 02:21:07.569628"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription
-------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-04 02:21:07.575480"], ["updated_at", "2015-01-04 02:21:07.575480"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title90"], ["body", "body76"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.577298"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.578751"], ["updated_at", "2015-01-04 02:21:07.578751"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email3@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.583393"], ["updated_at", "2015-01-04 02:21:07.583393"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2a0e1937-f8de-424e-b215-00bb8ae25283) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.6ms
[ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283]
Sent mail to email3@example.com (3.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Date: Sat, 03 Jan 2015 21:21:07 -0500
From: from@example.com
To: email3@example.com
Message-ID: <54a8a39396e2c_6f85104dffc759e1@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a393961d7_6f85104dffc758f8";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a393961d7_6f85104dffc758f8
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a393961d7_6f85104dffc758f8
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a393961d7_6f85104dffc758f8--
[ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.46ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated
-------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email4@example.com"], ["created_at", "2015-01-04 02:21:07.624360"], ["updated_at", "2015-01-04 02:21:07.624360"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e5761369-5c2a-4b8b-b622-71a75ee94be3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 68.5ms
[ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3]
Sent mail to email4@example.com (3.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Date: Sat, 03 Jan 2015 21:21:07 -0500
From: from@example.com
To: email4@example.com
Message-ID: <54a8a393aa8c5_6f85104dffc76179@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3939ff67_6f85104dffc76085";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3939ff67_6f85104dffc76085
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a3939ff67_6f85104dffc76085
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a3939ff67_6f85104dffc76085--
[ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 73.07ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-04 02:21:07.703333"], ["updated_at", "2015-01-04 02:21:07.703333"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title91"], ["body", "body77"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.704990"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.706492"], ["updated_at", "2015-01-04 02:21:07.706492"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (4.6ms)
[ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9]
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 42.9ms
[ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9]
Sent mail to email4@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Date: Sat, 03 Jan 2015 21:21:07 -0500
From: from@example.com
To: email4@example.com
Message-ID: <54a8a393b8ad8_6f85104dffc7635@Pandora.mail>
Subject: New Post: title91
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a393b802c_6f85104dffc76296";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a393b802c_6f85104dffc76296
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******
title91
*******
body77
Written on January 04, 2015 at 02:21 AM UTC by first_name123
last_name123
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a393b802c_6f85104dffc76296
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
title91 |
body77 |
Written on January 04, 2015 at 02:21 AM UTC by first_name123 last_name123
|
|
----==_mimepart_54a8a393b802c_6f85104dffc76296--
[ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 46.73ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited
---------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-04 02:21:07.762752"], ["updated_at", "2015-01-04 02:21:07.762752"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title92"], ["body", "body78"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.764552"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.766072"], ["updated_at", "2015-01-04 02:21:07.766072"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email5@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.770486"], ["updated_at", "2015-01-04 02:21:07.770486"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: aa234077-9554-4faf-8ff8-faed4addcd67) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.0ms
[ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67]
Sent mail to email5@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Date: Sat, 03 Jan 2015 21:21:07 -0500
From: from@example.com
To: email5@example.com
Message-ID: <54a8a393c4766_6f85104dffc7659d@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a393c3cb0_6f85104dffc764df";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a393c3cb0_6f85104dffc764df
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a393c3cb0_6f85104dffc764df
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a393c3cb0_6f85104dffc764df--
[ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.79ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author46"], ["body", "body46"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.809136"], ["updated_at", "2015-01-04 02:21:07.809136"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d0139093-5f8b-4810-a932-5482eedf90c6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6]
Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 78.0ms
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6]
Sent mail to email5@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Date: Sat, 03 Jan 2015 21:21:07 -0500
From: from@example.com
To: email5@example.com
Message-ID: <54a8a393da280_6f85104dffc767a@Pandora.mail>
Subject: New Comment On "title92"
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a393d97b4_6f85104dffc7665";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a393d97b4_6f85104dffc7665
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
body46
Written on January 04, 2015 at 02:21 AM UTC by author46
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a393d97b4_6f85104dffc7665
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
body46 |
Written on January 04, 2015 at 02:21 AM UTC by author46
|
|
----==_mimepart_54a8a393d97b4_6f85104dffc7665--
[ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 81.73ms
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-04 02:21:07.900173"], ["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published
-----------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email6@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email6@example.com"], ["created_at", "2015-01-04 02:21:07.905104"], ["updated_at", "2015-01-04 02:21:07.905104"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a3f24d17-d0e2-4bee-971e-396724ccb9a5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (7.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.0ms
[ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5]
Sent mail to email6@example.com (3.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Date: Sat, 03 Jan 2015 21:21:07 -0500
From: from@example.com
To: email6@example.com
Message-ID: <54a8a393e750d_6f85104dffc7695a@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a393e69fa_6f85104dffc76883";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a393e69fa_6f85104dffc76883
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a393e69fa_6f85104dffc76883
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a393e69fa_6f85104dffc76883--
[ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.07ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-04 02:21:07.951964"], ["updated_at", "2015-01-04 02:21:07.951964"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title93"], ["body", "body79"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.953606"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.954990"], ["updated_at", "2015-01-04 02:21:07.954990"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8]
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 63.0ms
[ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8]
Sent mail to email6@example.com (4.6ms)
[ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Date: Sat, 03 Jan 2015 21:21:08 -0500
From: from@example.com
To: email6@example.com
Message-ID: <54a8a39462c3_6f85104dffc771b9@Pandora.mail>
Subject: New Post: title93
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a394562e_6f85104dffc77042";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a394562e_6f85104dffc77042
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******
title93
*******
body79
Written on January 04, 2015 at 02:21 AM UTC by first_name125
last_name125
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a394562e_6f85104dffc77042
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
title93 |
body79 |
Written on January 04, 2015 at 02:21 AM UTC by first_name125 last_name125
|
|
----==_mimepart_54a8a394562e_6f85104dffc77042--
[ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 68.4ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published
-----------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email7@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email7@example.com"], ["created_at", "2015-01-04 02:21:08.035277"], ["updated_at", "2015-01-04 02:21:08.035277"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e89ff73b-90d3-4589-9c43-9c13a908332f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (7.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 40.8ms
[ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f]
Sent mail to email7@example.com (3.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Date: Sat, 03 Jan 2015 21:21:08 -0500
From: from@example.com
To: email7@example.com
Message-ID: <54a8a39414927_6f85104dffc77315@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39413e29_6f85104dffc7727a";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39413e29_6f85104dffc7727a
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a39413e29_6f85104dffc7727a
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a39413e29_6f85104dffc7727a--
[ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 44.8ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-04 02:21:08.088660"], ["updated_at", "2015-01-04 02:21:08.088660"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title94"], ["body", "body80"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.091707"], ["updated_at", "2015-01-04 02:21:08.091707"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-04 02:21:08.093595"], ["state", "published"], ["updated_at", "2015-01-04 02:21:08.094931"], ["id", 1]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 503e7484-1a06-4a7f-a76b-7194e6852768) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768]
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 62.4ms
[ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768]
Sent mail to email7@example.com (3.4ms)
[ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Date: Sat, 03 Jan 2015 21:21:08 -0500
From: from@example.com
To: email7@example.com
Message-ID: <54a8a39428015_6f85104dffc77583@Pandora.mail>
Subject: New Post: title94
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a394274ef_6f85104dffc77456";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a394274ef_6f85104dffc77456
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******
title94
*******
body80
Written on January 04, 2015 at 02:21 AM UTC by first_name126
last_name126
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a394274ef_6f85104dffc77456
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
title94 |
body80 |
Written on January 04, 2015 at 02:21 AM UTC by first_name126 last_name126
|
|
----==_mimepart_54a8a394274ef_6f85104dffc77456--
[ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Performed ActionMailer::DeliveryJob from Inline(mailers) in 66.58ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made
-------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-04 02:21:08.171098"], ["updated_at", "2015-01-04 02:21:08.171098"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title95"], ["body", "body81"], ["author_id", 1], ["published_at", "2015-01-04 02:21:08.173668"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.175411"], ["updated_at", "2015-01-04 02:21:08.175411"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "email8@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:08.181558"], ["updated_at", "2015-01-04 02:21:08.181558"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 66dbab60-b11f-490e-a1c5-3b7b5990ebf7) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.5ms)
[ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 38.9ms
[ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7]
Sent mail to email8@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Date: Sat, 03 Jan 2015 21:21:08 -0500
From: from@example.com
To: email8@example.com
Message-ID: <54a8a394375bc_6f85104dffc77716@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39436a80_6f85104dffc77631";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39436a80_6f85104dffc77631
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a39436a80_6f85104dffc77631
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a39436a80_6f85104dffc77631--
[ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.89ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author47"], ["body", "body47"], ["post_id", 1], ["created_at", "2015-01-04 02:21:08.231297"], ["updated_at", "2015-01-04 02:21:08.231297"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 916d0631-4be5-492b-b41f-740fc31a883a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a]
Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 25.6ms
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a]
Sent mail to email8@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Date: Sat, 03 Jan 2015 21:21:08 -0500
From: from@example.com
To: email8@example.com
Message-ID: <54a8a394405b4_6f85104dffc77985@Pandora.mail>
Subject: New Comment On "title95"
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3943fb1a_6f85104dffc77828";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3943fb1a_6f85104dffc77828
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
body47
Written on January 04, 2015 at 02:21 AM UTC by author47
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a3943fb1a_6f85104dffc77828
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
body47 |
Written on January 04, 2015 at 02:21 AM UTC by author47
|
|
----==_mimepart_54a8a3943fb1a_6f85104dffc77828--
[ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.32ms
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-04 02:21:08.272708"], ["updated_at", "2015-01-04 02:21:08.272708"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-04 02:21:08.276223"], ["updated_at", "2015-01-04 02:21:08.276223"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title96"], ["body", "body82"], ["author_id", 2], ["published_at", "2015-01-04 02:21:08.277675"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.279053"], ["updated_at", "2015-01-04 02:21:08.279053"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (8.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (53.3ms)
Completed 200 OK in 56ms (Views: 54.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-04 02:21:08.343086"], ["updated_at", "2015-01-04 02:21:08.343086"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title97"], ["body", "body83"], ["author_id", 3], ["created_at", "2015-01-04 02:21:08.347090"], ["updated_at", "2015-01-04 02:21:08.347090"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (7.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (12.7ms)
Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_new_if_logged_in
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-04 02:21:08.371528"], ["updated_at", "2015-01-04 02:21:08.371528"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (9.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (9.9ms)
Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in
----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-04 02:21:08.394336"], ["updated_at", "2015-01-04 02:21:08.394336"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-04 02:21:08.398430"], ["updated_at", "2015-01-04 02:21:08.398430"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title98"], ["body", "body84"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.401282"], ["updated_at", "2015-01-04 02:21:08.401282"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (7.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (7.6ms)
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in
------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-04 02:21:08.420318"], ["updated_at", "2015-01-04 02:21:08.420318"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title99"], ["body", "body85"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.423113"], ["updated_at", "2015-01-04 02:21:08.423113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-04 02:21:08.435765"], ["updated_at", "2015-01-04 02:21:08.435765"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-04 02:21:08.439649"], ["updated_at", "2015-01-04 02:21:08.439649"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title100"}}
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title100"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.452972"], ["updated_at", "2015-01-04 02:21:08.452972"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:08.454965"], ["updated_at", "2015-01-04 02:21:08.454965"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["updated_at", "2015-01-04 02:21:08.462215"], ["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 20ms (ActiveRecord: 1.1ms)
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_if_logged_in
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-04 02:21:08.473660"], ["updated_at", "2015-01-04 02:21:08.473660"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-04 02:21:08.477170"], ["updated_at", "2015-01-04 02:21:08.477170"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title101"], ["body", "body87"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.479569"], ["updated_at", "2015-01-04 02:21:08.479569"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-04 02:21:08.482406"], ["updated_at", "2015-01-04 02:21:08.482406"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title102"], ["body", "body88"], ["author_id", 3], ["published_at", "2015-01-04 02:21:08.483626"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.484986"], ["updated_at", "2015-01-04 02:21:08.484986"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (17.5ms)
Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-04 02:21:08.513099"], ["updated_at", "2015-01-04 02:21:08.513099"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-04 02:21:08.516534"], ["updated_at", "2015-01-04 02:21:08.516534"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title103"], ["body", "body89"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.519049"], ["updated_at", "2015-01-04 02:21:08.519049"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body89", "title"=>"title103"}, "publish"=>"true", "id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["published_at", "2015-01-04 02:21:08.526727"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-04 02:21:08.529568"], ["id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 9ms (ActiveRecord: 0.4ms)
[1m[35m (1.6ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-04 02:21:08.581756"], ["updated_at", "2015-01-04 02:21:08.581756"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"1", "body"=>"body90", "title"=>"title104"}}
Unpermitted parameter: author_id
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_post_if_logged_in
-------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-04 02:21:08.595797"], ["updated_at", "2015-01-04 02:21:08.595797"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-04 02:21:08.599364"], ["updated_at", "2015-01-04 02:21:08.599364"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body91", "title"=>"title105"}}
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title105"], ["body", "body91"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.608824"], ["updated_at", "2015-01-04 02:21:08.608824"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in
-----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-04 02:21:08.619886"], ["updated_at", "2015-01-04 02:21:08.619886"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-04 02:21:08.623692"], ["updated_at", "2015-01-04 02:21:08.623692"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body92", "title"=>"title106"}, "publish"=>"true"}
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title106"], ["body", "body92"], ["author_id", 1], ["published_at", "2015-01-04 02:21:08.630446"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.633113"], ["updated_at", "2015-01-04 02:21:08.633113"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 10ms (ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_get_new_if_not_logged_in
-----------------------------------------------------------------------
Processing by Proclaim::PostsController#new as HTML
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in
----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-04 02:21:08.654040"], ["updated_at", "2015-01-04 02:21:08.654040"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title107"], ["body", "body93"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.656804"], ["updated_at", "2015-01-04 02:21:08.656804"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-04 02:21:08.670745"], ["updated_at", "2015-01-04 02:21:08.670745"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title108"], ["body", "body94"], ["author_id", 1], ["published_at", "2015-01-04 02:21:08.672722"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.674171"], ["updated_at", "2015-01-04 02:21:08.674171"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.9ms)
Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-04 02:21:08.691497"], ["updated_at", "2015-01-04 02:21:08.691497"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title109"], ["body", "body95"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.694047"], ["updated_at", "2015-01-04 02:21:08.694047"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Completed 404 Not Found in 1ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-04 02:21:08.701199"], ["updated_at", "2015-01-04 02:21:08.701199"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-04 02:21:08.704944"], ["updated_at", "2015-01-04 02:21:08.704944"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title110"], ["body", "body96"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.707581"], ["updated_at", "2015-01-04 02:21:08.707581"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-04 02:21:08.727201"], ["updated_at", "2015-01-04 02:21:08.727201"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title111"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.730528"], ["updated_at", "2015-01-04 02:21:08.730528"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"1", "body"=>"body97", "title"=>"title111"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
Redirected to http://test.host/proclaim/
Completed 302 Found in 5ms (ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_update_post_if_logged_in
-------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-04 02:21:08.744243"], ["updated_at", "2015-01-04 02:21:08.744243"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-04 02:21:08.747734"], ["updated_at", "2015-01-04 02:21:08.747734"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title112"], ["body", "body98"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.750213"], ["updated_at", "2015-01-04 02:21:08.750213"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body98", "title"=>"title112"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 8ms (ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in
--------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-04 02:21:08.769619"], ["updated_at", "2015-01-04 02:21:08.769619"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title113"], ["body", "body99"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.772988"], ["updated_at", "2015-01-04 02:21:08.772988"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-04 02:21:08.776015"], ["updated_at", "2015-01-04 02:21:08.776015"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title114"], ["body", "body100"], ["author_id", 2], ["published_at", "2015-01-04 02:21:08.777190"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.778535"], ["updated_at", "2015-01-04 02:21:08.778535"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (5.2ms)
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post
-----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-04 02:21:08.794357"], ["updated_at", "2015-01-04 02:21:08.794357"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-04 02:21:08.797957"], ["updated_at", "2015-01-04 02:21:08.797957"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title115"], ["body", "body101"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.801625"], ["updated_at", "2015-01-04 02:21:08.801625"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title115"}, "id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Unpermitted parameter: author_id
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:08.858349"], ["updated_at", "2015-01-04 02:21:08.858349"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["updated_at", "2015-01-04 02:21:08.864403"], ["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 59ms (ActiveRecord: 0.8ms)
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
SubscriptionPolicyTest: test_subscription_creation
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-04 02:21:08.875532"], ["updated_at", "2015-01-04 02:21:08.875532"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-04 02:21:08.879074"], ["updated_at", "2015-01-04 02:21:08.879074"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title116"], ["body", "body102"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.881517"], ["updated_at", "2015-01-04 02:21:08.881517"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-04 02:21:08.884897"], ["updated_at", "2015-01-04 02:21:08.884897"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title117"], ["body", "body103"], ["author_id", 3], ["published_at", "2015-01-04 02:21:08.886108"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.887474"], ["updated_at", "2015-01-04 02:21:08.887474"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-04 02:21:08.891829"], ["updated_at", "2015-01-04 02:21:08.891829"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title118"], ["body", "body104"], ["author_id", 4], ["created_at", "2015-01-04 02:21:08.894211"], ["updated_at", "2015-01-04 02:21:08.894211"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-04 02:21:08.897271"], ["updated_at", "2015-01-04 02:21:08.897271"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title119"], ["body", "body105"], ["author_id", 5], ["published_at", "2015-01-04 02:21:08.898455"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.899968"], ["updated_at", "2015-01-04 02:21:08.899968"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------
SubscriptionPolicyTest: test_subscription_update
------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-04 02:21:08.904392"], ["updated_at", "2015-01-04 02:21:08.904392"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email15@example.com"], ["created_at", "2015-01-04 02:21:08.907178"], ["updated_at", "2015-01-04 02:21:08.907178"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f79a8ac7-5ef3-4b38-9293-47bbca948bdb) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.7ms
[ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb]
Sent mail to email15@example.com (3.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Date: Sat, 03 Jan 2015 21:21:08 -0500
From: from@example.com
To: email15@example.com
Message-ID: <54a8a394e54fb_6f85104dffc781b6@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a394e494f_6f85104dffc78022";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a394e494f_6f85104dffc78022
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a394e494f_6f85104dffc78022
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a394e494f_6f85104dffc78022--
[ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.76ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------
SubscriptionPolicyTest: test_subscription_destroy
-------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-04 02:21:08.943957"], ["updated_at", "2015-01-04 02:21:08.943957"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email16@example.com"], ["created_at", "2015-01-04 02:21:08.946894"], ["updated_at", "2015-01-04 02:21:08.946894"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ec7b47e4-d27a-46b1-b614-2df41666564d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.6ms)
[ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 67.7ms
[ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d]
Sent mail to email16@example.com (3.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email16@example.com
Message-ID: <54a8a3954cbb_6f85104dffc783f5@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39541bc_6f85104dffc782db";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39541bc_6f85104dffc782db
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a39541bc_6f85104dffc782db
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a39541bc_6f85104dffc782db--
[ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 71.5ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
SubscriptionPolicyTest: test_subscription_scope
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-04 02:21:09.024262"], ["updated_at", "2015-01-04 02:21:09.024262"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email17@example.com"], ["created_at", "2015-01-04 02:21:09.027162"], ["updated_at", "2015-01-04 02:21:09.027162"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 28140294-0242-422b-bbd9-415267a35968) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.1ms
[ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968]
Sent mail to email17@example.com (3.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email17@example.com
Message-ID: <54a8a395ebc4_6f85104dffc785f8@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a395e069_6f85104dffc7841";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a395e069_6f85104dffc7841
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a395e069_6f85104dffc7841
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a395e069_6f85104dffc7841--
[ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.81ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email18@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email18@example.com"], ["created_at", "2015-01-04 02:21:09.064766"], ["updated_at", "2015-01-04 02:21:09.064766"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d06239dc-9863-4f27-b3de-7df109d7ba4a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.6ms
[ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a]
Sent mail to email18@example.com (3.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email18@example.com
Message-ID: <54a8a3951777a_6f85104dffc787db@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39516cd0_6f85104dffc78651";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39516cd0_6f85104dffc78651
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ).
----==_mimepart_54a8a39516cd0_6f85104dffc78651
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a39516cd0_6f85104dffc78651--
[ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.24ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
SubscriptionPolicyTest: test_subscription_unsubscribe
-----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-04 02:21:09.101356"], ["updated_at", "2015-01-04 02:21:09.101356"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email19@example.com"], ["created_at", "2015-01-04 02:21:09.103993"], ["updated_at", "2015-01-04 02:21:09.103993"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e10b6aa7-346b-4d4e-ae97-4db964bc8b10) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.4ms
[ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10]
Sent mail to email19@example.com (3.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email19@example.com
Message-ID: <54a8a3952b822_6f85104dffc78917@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3952ad20_6f85104dffc78810";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3952ad20_6f85104dffc78810
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a3952ad20_6f85104dffc78810
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a3952ad20_6f85104dffc78810--
[ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.11ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Proclaim::CommentTest: test_ensure_body_is_required
---------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-04 02:21:09.184200"], ["updated_at", "2015-01-04 02:21:09.184200"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title120"], ["body", "body106"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.187106"], ["updated_at", "2015-01-04 02:21:09.187106"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
Proclaim::CommentTest: test_ensure_factory_is_good
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-04 02:21:09.193555"], ["updated_at", "2015-01-04 02:21:09.193555"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title121"], ["body", "body107"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.196234"], ["updated_at", "2015-01-04 02:21:09.196234"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author49"], ["body", "body48"], ["post_id", 1], ["created_at", "2015-01-04 02:21:09.198896"], ["updated_at", "2015-01-04 02:21:09.198896"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Proclaim::CommentTest: test_ensure_post_is_required
---------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID
----------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-04 02:21:09.212260"], ["updated_at", "2015-01-04 02:21:09.212260"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-04 02:21:09.216158"], ["updated_at", "2015-01-04 02:21:09.216158"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title122"], ["body", "body108"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.218658"], ["updated_at", "2015-01-04 02:21:09.218658"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.223365"], ["updated_at", "2015-01-04 02:21:09.223365"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-04 02:21:09.234452"], ["updated_at", "2015-01-04 02:21:09.234452"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title123"], ["body", "body109"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.236984"], ["updated_at", "2015-01-04 02:21:09.236984"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in
--------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-04 02:21:09.242115"], ["updated_at", "2015-01-04 02:21:09.242115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-04 02:21:09.246073"], ["updated_at", "2015-01-04 02:21:09.246073"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.248592"], ["updated_at", "2015-01-04 02:21:09.248592"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#cache as JSON
Parameters: {"file"=>#>}
Unpermitted parameter: format
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-04 02:21:09.260070"], ["updated_at", "2015-01-04 02:21:09.260070"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title125"], ["body", "body111"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.262484"], ["updated_at", "2015-01-04 02:21:09.262484"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in
----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-04 02:21:09.267393"], ["updated_at", "2015-01-04 02:21:09.267393"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-04 02:21:09.271262"], ["updated_at", "2015-01-04 02:21:09.271262"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title126"], ["body", "body112"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.274107"], ["updated_at", "2015-01-04 02:21:09.274107"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/tmp/1420338069-28549-3485/test.jpg"}
Unpermitted parameter: format
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-04 02:21:09.285888"], ["updated_at", "2015-01-04 02:21:09.285888"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title127"], ["body", "body113"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.329312"], ["updated_at", "2015-01-04 02:21:09.329312"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-04 02:21:09.335311"], ["updated_at", "2015-01-04 02:21:09.335311"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title128"], ["body", "body114"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.338142"], ["updated_at", "2015-01-04 02:21:09.338142"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/tmp/1420338069-28549-1178/test.jpg"}
Unpermitted parameter: format
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-04 02:21:09.349671"], ["updated_at", "2015-01-04 02:21:09.349671"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title129"], ["body", "body115"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.352185"], ["updated_at", "2015-01-04 02:21:09.352185"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in
----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#cache as JSON
Parameters: {"file"=>#>}
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-04 02:21:09.364658"], ["updated_at", "2015-01-04 02:21:09.364658"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title130"], ["body", "body116"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.367429"], ["updated_at", "2015-01-04 02:21:09.367429"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-04 02:21:09.372542"], ["updated_at", "2015-01-04 02:21:09.372542"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-04 02:21:09.376649"], ["updated_at", "2015-01-04 02:21:09.376649"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title131"], ["body", "body117"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.379098"], ["updated_at", "2015-01-04 02:21:09.379098"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.390290"], ["updated_at", "2015-01-04 02:21:09.390290"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-04 02:21:09.397182"], ["updated_at", "2015-01-04 02:21:09.397182"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.399650"], ["updated_at", "2015-01-04 02:21:09.399650"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in
-----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-04 02:21:09.405037"], ["updated_at", "2015-01-04 02:21:09.405037"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.408152"], ["updated_at", "2015-01-04 02:21:09.408152"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-04 02:21:09.418349"], ["updated_at", "2015-01-04 02:21:09.418349"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.420992"], ["updated_at", "2015-01-04 02:21:09.420992"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-04 02:21:09.427085"], ["updated_at", "2015-01-04 02:21:09.427085"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title135"], ["body", "body121"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.429832"], ["updated_at", "2015-01-04 02:21:09.429832"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.434427"], ["updated_at", "2015-01-04 02:21:09.434427"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-04 02:21:09.445079"], ["updated_at", "2015-01-04 02:21:09.445079"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title136"], ["body", "body122"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.447534"], ["updated_at", "2015-01-04 02:21:09.447534"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_post_notification_email
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email20@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email20@example.com"], ["created_at", "2015-01-04 02:21:09.453897"], ["updated_at", "2015-01-04 02:21:09.453897"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5c53669c-be6a-4c20-addf-74501b8cb3e5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 68.3ms
[ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5]
Sent mail to email20@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email20@example.com
Message-ID: <54a8a39580ea8_6f85104dffc791c@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39580376_6f85104dffc7908c";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39580376_6f85104dffc7908c
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a39580376_6f85104dffc7908c
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a39580376_6f85104dffc7908c--
[ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 72.18ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-04 02:21:09.532233"], ["updated_at", "2015-01-04 02:21:09.532233"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title137"], ["body", "body123"], ["author_id", 1], ["published_at", "2015-01-04 02:21:09.533799"], ["state", "published"], ["created_at", "2015-01-04 02:21:09.535224"], ["updated_at", "2015-01-04 02:21:09.535224"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 57191f19-0dab-46c7-92b5-2e6d877dfaef) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef]
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.8ms
[ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef]
Sent mail to email20@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email20@example.com
Message-ID: <54a8a39589ee1_6f85104dffc7931c@Pandora.mail>
Subject: New Post: title137
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3958942f_6f85104dffc792ed";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3958942f_6f85104dffc792ed
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
********
title137
********
body123
Written on January 04, 2015 at 02:21 AM UTC by first_name189
last_name189
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a3958942f_6f85104dffc792ed
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
title137 |
body123 |
Written on January 04, 2015 at 02:21 AM UTC by first_name189 last_name189
|
|
----==_mimepart_54a8a3958942f_6f85104dffc792ed--
[ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.45ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.1ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs
------------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email21@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email21@example.com"], ["created_at", "2015-01-04 02:21:09.599958"], ["updated_at", "2015-01-04 02:21:09.599958"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 472253aa-9ca0-4f47-b9f1-a915ac60bcc7) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.8ms
[ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7]
Sent mail to email21@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email21@example.com
Message-ID: <54a8a395a46aa_6f85104dffc79660@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a395a3bc8_6f85104dffc795e2";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a395a3bc8_6f85104dffc795e2
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a395a3bc8_6f85104dffc795e2
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a395a3bc8_6f85104dffc795e2--
[ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 71.95ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-04 02:21:09.677848"], ["updated_at", "2015-01-04 02:21:09.677848"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.680448"], ["updated_at", "2015-01-04 02:21:09.680448"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.685397"], ["updated_at", "2015-01-04 02:21:09.685397"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["published_at", "2015-01-04 02:21:09.688855"], ["state", "published"], ["updated_at", "2015-01-04 02:21:09.690740"], ["id", 1]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e9393915-3531-4ecd-92d1-658d279fbc42) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1
[ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42]
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 24.9ms
[ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42]
Sent mail to email21@example.com (43.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email21@example.com
Message-ID: <54a8a395b0568_6f85104dffc7981@Pandora.mail>
Subject: New Post: title138
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a395afaea_6f85104dffc79762";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a395afaea_6f85104dffc79762
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
********
title138
********
Written on January 04, 2015 at 02:21 AM UTC by first_name190
last_name190
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a395afaea_6f85104dffc79762
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
title138 |
|
Written on January 04, 2015 at 02:21 AM UTC by first_name190 last_name190
|
|
----==_mimepart_54a8a395afaea_6f85104dffc79762--
[ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Performed ActionMailer::DeliveryJob from Inline(mailers) in 69.04ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 23.9ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_comment_notification_email
---------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-04 02:21:09.793869"], ["updated_at", "2015-01-04 02:21:09.793869"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title139"], ["body", "body125"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.796697"], ["updated_at", "2015-01-04 02:21:09.796697"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email22@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email22@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:09.800007"], ["updated_at", "2015-01-04 02:21:09.800007"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3a733667-a613-46ae-ab0c-0dc203ecde2b) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.1ms
[ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b]
Sent mail to email22@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email22@example.com
Message-ID: <54a8a395cb9ff_6f85104dffc80180@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a395caf15_6f85104dffc800d8";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a395caf15_6f85104dffc800d8
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a395caf15_6f85104dffc800d8
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a395caf15_6f85104dffc800d8--
[ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.84ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-04 02:21:09.838624"], ["updated_at", "2015-01-04 02:21:09.838624"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title140"], ["body", "body126"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.841163"], ["updated_at", "2015-01-04 02:21:09.841163"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author52"], ["body", "body51"], ["post_id", 2], ["created_at", "2015-01-04 02:21:09.843439"], ["updated_at", "2015-01-04 02:21:09.843439"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.1ms)
Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 62.1ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Proclaim::SubscriptionMailerTest: test_welcome_email
----------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email23@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email23@example.com"], ["created_at", "2015-01-04 02:21:09.920219"], ["updated_at", "2015-01-04 02:21:09.920219"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6a44d73d-6be7-4260-bea2-2e5c67d8970f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.5ms
[ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f]
Sent mail to email23@example.com (3.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Date: Sat, 03 Jan 2015 21:21:09 -0500
From: from@example.com
To: email23@example.com
Message-ID: <54a8a395e8ae7_6f85104dffc804b9@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a395e803e_6f85104dffc803eb";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a395e803e_6f85104dffc803eb
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a395e803e_6f85104dffc803eb
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a395e803e_6f85104dffc803eb--
[ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.21ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.6ms)
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.5ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email24@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email24@example.com"], ["created_at", "2015-01-04 02:21:09.991881"], ["updated_at", "2015-01-04 02:21:09.991881"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms)
[ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 68.0ms
[ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8]
Sent mail to email24@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email24@example.com
Message-ID: <54a8a396fffd_6f85104dffc8071e@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a396f4d4_6f85104dffc8063a";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a396f4d4_6f85104dffc8063a
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a396f4d4_6f85104dffc8063a
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a396f4d4_6f85104dffc8063a--
[ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 71.79ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email25@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email25@example.com"], ["created_at", "2015-01-04 02:21:10.069998"], ["updated_at", "2015-01-04 02:21:10.069998"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2dd60c01-729e-4fe5-9b6c-f905d949730c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.6ms
[ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c]
Sent mail to email25@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email25@example.com
Message-ID: <54a8a39618d52_6f85104dffc809d4@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39618278_6f85104dffc808cd";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39618278_6f85104dffc808cd
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ).
----==_mimepart_54a8a39618278_6f85104dffc808cd
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a39618278_6f85104dffc808cd--
[ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.44ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::SubscriptionTest: test_subscriptions_should_be_unique
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-01-04 02:21:10.112697"], ["updated_at", "2015-01-04 02:21:10.112697"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 91de0b32-c5e7-4cae-a9bc-e5c65e7b6306) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 69.7ms
[ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306]
Sent mail to foo@bar.com (3.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: foo@bar.com
Message-ID: <54a8a3962ddba_6f85104dffc81178@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3962d284_6f85104dffc810e4";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3962d284_6f85104dffc810e4
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a3962d284_6f85104dffc810e4
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a3962d284_6f85104dffc810e4--
[ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Performed ActionMailer::DeliveryJob from Inline(mailers) in 73.71ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-04 02:21:10.195079"], ["updated_at", "2015-01-04 02:21:10.195079"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title141"], ["body", "body127"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.197762"], ["updated_at", "2015-01-04 02:21:10.197762"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:10.200931"], ["updated_at", "2015-01-04 02:21:10.200931"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 31.2ms
[ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612]
Sent mail to foo@bar.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: foo@bar.com
Message-ID: <54a8a39639dc1_6f85104dffc81316@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39639309_6f85104dffc81238";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39639309_6f85104dffc81238
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ).
----==_mimepart_54a8a39639309_6f85104dffc81238
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a39639309_6f85104dffc81238--
[ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.95ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email26@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1[0m
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-04 02:21:10.247423"], ["updated_at", "2015-01-04 02:21:10.247423"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title142"], ["body", "body128"], ["author_id", 1], ["published_at", "2015-01-04 02:21:10.249041"], ["state", "published"], ["created_at", "2015-01-04 02:21:10.250502"], ["updated_at", "2015-01-04 02:21:10.250502"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "email27@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:10.255695"], ["updated_at", "2015-01-04 02:21:10.255695"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2980b976-659e-438b-a366-deadf2a42a96) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.5ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 70.9ms
[ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96]
Sent mail to email27@example.com (3.3ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email27@example.com
Message-ID: <54a8a39651289_6f85104dffc815db@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39650739_6f85104dffc814d7";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39650739_6f85104dffc814d7
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
*******************
You'll be notified!
*******************
You signed up to be notified of any new comments on this
post ( http://localhost:3000/proclaim/posts/1 ).
You're receiving this email because you requested to be
notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 )
at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a39650739_6f85104dffc814d7
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
You'll be notified!
|
You signed up to be notified of any new comments on this post.
|
|
----==_mimepart_54a8a39650739_6f85104dffc814d7--
[ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Performed ActionMailer::DeliveryJob from Inline(mailers) in 74.92ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email28@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email28@example.com"], ["created_at", "2015-01-04 02:21:10.337287"], ["updated_at", "2015-01-04 02:21:10.337287"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a6fcc865-5f15-4643-80c0-bf1bf7c04477) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.3ms
[ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477]
Sent mail to email28@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email28@example.com
Message-ID: <54a8a3965a0c6_6f85104dffc81719@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3965961d_6f85104dffc81691";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3965961d_6f85104dffc81691
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ).
----==_mimepart_54a8a3965961d_6f85104dffc81691
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a3965961d_6f85104dffc81691--
[ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.03ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Proclaim::ImageTest: test_ensure_post_validity_is_verified
----------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-04 02:21:10.380915"], ["updated_at", "2015-01-04 02:21:10.380915"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title143"], ["body", "body129"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.384341"], ["updated_at", "2015-01-04 02:21:10.384341"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:10.390147"], ["updated_at", "2015-01-04 02:21:10.390147"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------
Proclaim::ImageTest: test_ensure_factory_is_good
------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-04 02:21:10.396967"], ["updated_at", "2015-01-04 02:21:10.396967"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title144"], ["body", "body130"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.399583"], ["updated_at", "2015-01-04 02:21:10.399583"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:10.404958"], ["updated_at", "2015-01-04 02:21:10.404958"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------
Proclaim::ImageTest: test_ensure_post_is_required
-------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_required
--------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-04 02:21:10.456511"], ["updated_at", "2015-01-04 02:21:10.456511"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.459355"], ["updated_at", "2015-01-04 02:21:10.459355"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription
------------------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email29@example.com"], ["created_at", "2015-01-04 02:21:10.468122"], ["updated_at", "2015-01-04 02:21:10.468122"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 72ab750a-a110-4892-98ad-7e3decfcce1d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.7ms
[ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d]
Sent mail to email29@example.com (3.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email29@example.com
Message-ID: <54a8a3967a783_6f85104dffc8195c@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39679b68_6f85104dffc8182";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39679b68_6f85104dffc8182
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a39679b68_6f85104dffc8182
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a39679b68_6f85104dffc8182--
[ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.81ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email30@example.com"], ["created_at", "2015-01-04 02:21:10.506079"], ["updated_at", "2015-01-04 02:21:10.506079"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3dcf7998-c4d1-4b94-bd20-aae11d07e2a4) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.6ms
[ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4]
Sent mail to email30@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email30@example.com
Message-ID: <54a8a3968341d_6f85104dffc82148@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a39682970_6f85104dffc8201f";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a39682970_6f85104dffc8201f
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ).
----==_mimepart_54a8a39682970_6f85104dffc8201f
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a39682970_6f85104dffc8201f--
[ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.31ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy
------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email31@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}}
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (3.1ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (3.4ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in
-----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-04 02:21:10.615336"], ["updated_at", "2015-01-04 02:21:10.615336"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email32@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email32@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email32@example.com"], ["created_at", "2015-01-04 02:21:10.624298"], ["updated_at", "2015-01-04 02:21:10.624298"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 40a761bf-cf0e-473e-a401-496a0e9695c2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.8ms)
[ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.2ms
[ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2]
Sent mail to email32@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email32@example.com
Message-ID: <54a8a396a0722_6f85104dffc82327@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a3969fbdb_6f85104dffc82244";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a3969fbdb_6f85104dffc82244
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a3969fbdb_6f85104dffc82244
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a3969fbdb_6f85104dffc82244--
[ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.03ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 40ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email33@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email33@example.com"], ["created_at", "2015-01-04 02:21:10.673305"], ["updated_at", "2015-01-04 02:21:10.673305"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (7.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 32.9ms
[ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0]
Sent mail to email33@example.com (3.0ms)
[ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email33@example.com
Message-ID: <54a8a396aed07_6f85104dffc8254e@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a396ae1fc_6f85104dffc8246f";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a396ae1fc_6f85104dffc8246f
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a396ae1fc_6f85104dffc8246f
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a396ae1fc_6f85104dffc8246f--
[ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.41ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 50ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription
-----------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email34@example.com"], ["created_at", "2015-01-04 02:21:10.727256"], ["updated_at", "2015-01-04 02:21:10.727256"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6ae81ddf-721d-4753-84f1-0cee6cc9ee07) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1
[ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms)
[ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.6ms
[ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07]
Sent mail to email34@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email34@example.com
Message-ID: <54a8a396c3afa_6f85104dffc82793@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a396c2fd1_6f85104dffc826eb";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a396c2fd1_6f85104dffc826eb
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ).
----==_mimepart_54a8a396c2fd1_6f85104dffc826eb
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a396c2fd1_6f85104dffc826eb--
[ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.45ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email35@example.com"], ["created_at", "2015-01-04 02:21:10.805946"], ["updated_at", "2015-01-04 02:21:10.805946"]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2c4a33e6-15df-4209-aaa2-0d29c411c995) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2
[ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995]
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.3ms
[ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995]
Sent mail to email35@example.com (3.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Date: Sat, 03 Jan 2015 21:21:10 -0500
From: from@example.com
To: email35@example.com
Message-ID: <54a8a396cc64f_6f85104dffc8291@Pandora.mail>
Subject: Welcome to localhost:3000/proclaim!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_54a8a396cbb9f_6f85104dffc8283f";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_54a8a396cbb9f_6f85104dffc8283f
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
***********************
Thanks for subscribing!
***********************
You'll now begin receiving a notification each time a new
post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
You're receiving this email because you requested to be
notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ).
If you no longer wish to receive these emails, simply
unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ).
----==_mimepart_54a8a396cbb9f_6f85104dffc8283f
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thanks for subscribing!
|
You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.
|
|
----==_mimepart_54a8a396cbb9f_6f85104dffc8283f--
[ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.03ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction